0001
0002
0003
0004
0005 DEF_PCI_AC_RET(readb, u8, (const PCI_IO_ADDR addr), (addr), mem, addr)
0006 DEF_PCI_AC_RET(readw, u16, (const PCI_IO_ADDR addr), (addr), mem, addr)
0007 DEF_PCI_AC_RET(readl, u32, (const PCI_IO_ADDR addr), (addr), mem, addr)
0008 DEF_PCI_AC_RET(readw_be, u16, (const PCI_IO_ADDR addr), (addr), mem, addr)
0009 DEF_PCI_AC_RET(readl_be, u32, (const PCI_IO_ADDR addr), (addr), mem, addr)
0010 DEF_PCI_AC_NORET(writeb, (u8 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0011 DEF_PCI_AC_NORET(writew, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0012 DEF_PCI_AC_NORET(writel, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0013 DEF_PCI_AC_NORET(writew_be, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0014 DEF_PCI_AC_NORET(writel_be, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0015
0016 #ifdef __powerpc64__
0017 DEF_PCI_AC_RET(readq, u64, (const PCI_IO_ADDR addr), (addr), mem, addr)
0018 DEF_PCI_AC_RET(readq_be, u64, (const PCI_IO_ADDR addr), (addr), mem, addr)
0019 DEF_PCI_AC_NORET(writeq, (u64 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0020 DEF_PCI_AC_NORET(writeq_be, (u64 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
0021 #endif
0022
0023 DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
0024 DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
0025 DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
0026 DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port), pio, port)
0027 DEF_PCI_AC_NORET(outw, (u16 val, unsigned long port), (val, port), pio, port)
0028 DEF_PCI_AC_NORET(outl, (u32 val, unsigned long port), (val, port), pio, port)
0029
0030 DEF_PCI_AC_NORET(readsb, (const PCI_IO_ADDR a, void *b, unsigned long c),
0031 (a, b, c), mem, a)
0032 DEF_PCI_AC_NORET(readsw, (const PCI_IO_ADDR a, void *b, unsigned long c),
0033 (a, b, c), mem, a)
0034 DEF_PCI_AC_NORET(readsl, (const PCI_IO_ADDR a, void *b, unsigned long c),
0035 (a, b, c), mem, a)
0036 DEF_PCI_AC_NORET(writesb, (PCI_IO_ADDR a, const void *b, unsigned long c),
0037 (a, b, c), mem, a)
0038 DEF_PCI_AC_NORET(writesw, (PCI_IO_ADDR a, const void *b, unsigned long c),
0039 (a, b, c), mem, a)
0040 DEF_PCI_AC_NORET(writesl, (PCI_IO_ADDR a, const void *b, unsigned long c),
0041 (a, b, c), mem, a)
0042
0043 DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
0044 (p, b, c), pio, p)
0045 DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
0046 (p, b, c), pio, p)
0047 DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
0048 (p, b, c), pio, p)
0049 DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
0050 (p, b, c), pio, p)
0051 DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
0052 (p, b, c), pio, p)
0053 DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
0054 (p, b, c), pio, p)
0055
0056 DEF_PCI_AC_NORET(memset_io, (PCI_IO_ADDR a, int c, unsigned long n),
0057 (a, c, n), mem, a)
0058 DEF_PCI_AC_NORET(memcpy_fromio, (void *d, const PCI_IO_ADDR s, unsigned long n),
0059 (d, s, n), mem, s)
0060 DEF_PCI_AC_NORET(memcpy_toio, (PCI_IO_ADDR d, const void *s, unsigned long n),
0061 (d, s, n), mem, d)