Go to the documentation of this file.
21 #ifndef __MANTIS_COMMON_H
22 #define __MANTIS_COMMON_H
32 #define MANTIS_ERROR 0
33 #define MANTIS_NOTICE 1
35 #define MANTIS_DEBUG 3
38 #define dprintk(y, z, format, arg...) do { \
40 if ((mantis->verbose > MANTIS_ERROR) && (mantis->verbose > y)) \
41 printk(KERN_ERR "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
42 else if ((mantis->verbose > MANTIS_NOTICE) && (mantis->verbose > y)) \
43 printk(KERN_NOTICE "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
44 else if ((mantis->verbose > MANTIS_INFO) && (mantis->verbose > y)) \
45 printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
46 else if ((mantis->verbose > MANTIS_DEBUG) && (mantis->verbose > y)) \
47 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
48 else if ((mantis->verbose > MANTIS_TMG) && (mantis->verbose > y)) \
49 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
51 if (mantis->verbose > y) \
52 printk(format , ##arg); \
56 #define mwrite(dat, addr) writel((dat), addr)
57 #define mread(addr) readl(addr)
59 #define mmwrite(dat, addr) mwrite((dat), (mantis->mmio + (addr)))
60 #define mmread(addr) mread(mantis->mmio + (addr))
62 #define MANTIS_TS_188 0
63 #define MANTIS_TS_204 1
65 #define TWINHAN_TECHNOLOGIES 0x1822
68 #define TECHNISAT 0x1ae4
69 #define TERRATEC 0x153b
71 #define MAKE_ENTRY(__subven, __subdev, __configptr) { \
72 .vendor = TWINHAN_TECHNOLOGIES, \
74 .subvendor = (__subven), \
75 .subdevice = (__subdev), \
76 .driver_data = (unsigned long) (__configptr) \
177 #define MANTIS_HIF_STATUS (mantis->gpio_status)