23 #include <linux/module.h>
24 #include <linux/kernel.h>
25 #include <linux/types.h>
28 #include <mach/hardware.h>
51 ret = (a & 0xf803fe) << 1;
52 ret |= (a & 0x03fc00) << 2;
56 if ((a & 0x20000) == (a & 0x40000) >> 1)
68 void __iomem *a = __isamem_convert_addr(addr);
71 if ((
unsigned long)addr & 1)
80 void __iomem *a = __isamem_convert_addr(addr);
82 if ((
unsigned long)addr & 1)
90 void __iomem *a = __isamem_convert_addr(addr);
93 if ((
unsigned long)addr & 3)
107 void __iomem *a = __isamem_convert_addr(addr);
109 BUG_ON((
unsigned long)addr & 1);
117 void __iomem *a = __isamem_convert_addr(addr);
119 BUG_ON((
unsigned long)addr & 3);
127 void __iomem *a = __isamem_convert_addr(addr);
129 if ((
unsigned long)addr & 1)
137 void __iomem *a = __isamem_convert_addr(addr);
139 if ((
unsigned long)addr & 1)
147 void __iomem *a = __isamem_convert_addr(addr);
149 if ((
unsigned long)addr & 3)
162 void __iomem *a = __isamem_convert_addr(addr);
164 BUG_ON((
unsigned long)addr & 1);
172 void __iomem *a = __isamem_convert_addr(addr);
174 BUG_ON((
unsigned long)addr & 3);
200 #define SUPERIO_PORT(p) \
201 (((p) >> 3) == (0x3f8 >> 3) || \
202 ((p) >> 3) == (0x2f8 >> 3) || \
203 ((p) >> 3) == (0x378 >> 3))
246 offset = (port & ~1) << 1 | (port & 1);
317 offset = (port & ~1) << 1 | (port & 1);
355 off = (port & ~1) << 1;
370 off = (port & ~1) << 1;
388 off = (port & ~1) << 1;
403 off = (port & ~1) << 1;