#include <asm/arch/asm_generic_gpio.h>
#include <asm/arch/chip_drv_common_io.h>
-#define KERN_WARNING ""
-#define WARN(nmu, fmt...) printf(fmt)
-#define WARN_ON(num)
-#define BUG_ON(__cond__) if(__cond__) printf("%s line: %d bug on\n", __FUNCTION__, __LINE__)
-#define pr_err(fmt...) printf(fmt)
-#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
-#define pr_debug(fmt...) printf(fmt)
-
-//#define DEBUG
-
-
-#ifdef DEBUG
-#define GPIO_DBG(fmt...) pr_debug(fmt)
-#else
-#define GPIO_DBG(fmt...)
-#endif
-
#ifndef GPO_TRI
#define GPO_TRI 0xFFFF
#endif
int irq_num;
};
-#define GPIO_INVALID_ID 0xffff
#define INVALID_REG (~(u32)0)
//static struct gpio_irq_map gpio_irq_table[NR_GPIO_IRQS];