2 #include <linux/kernel.h>
3 #include <linux/export.h>
6 #if defined(CONFIG_ARM) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) || \
7 defined(CONFIG_PARISC) || defined(CONFIG_PPC) || defined(CONFIG_SPARC)
17 static u8 ide_inb(
unsigned long port)
19 return (
u8)
inb(port);
22 static void ide_outb(
u8 val,
unsigned long port)
31 static u8 ide_mm_inb(
unsigned long port)
36 static void ide_mm_outb(
u8 value,
unsigned long port)
97 tf_outb = ide_mm_outb;
120 u8 (*tf_inb)(
unsigned long port);
150 static void ata_vlb_sync(
unsigned long port)
170 unsigned int words = (len + 1) >> 1;
177 if ((io_32bit & 2) && !mmio) {
186 insl(data_addr, buf, words);
188 if ((io_32bit & 2) && !mmio)
191 if (((len + 1) & 3) < 2)
201 insw(data_addr, buf, words);
214 unsigned int words = (len + 1) >> 1;
221 if ((io_32bit & 2) && !mmio) {
230 outsl(data_addr, buf, words);
232 if ((io_32bit & 2) && !mmio)
235 if (((len + 1) & 3) < 2)
245 outsw(data_addr, buf, words);