Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
io.h File Reference
#include <asm/page.h>
#include <asm/cacheflush.h>
#include <linux/types.h>
#include <asm-generic/pci_iomap.h>

Go to the source code of this file.

Macros

#define mmiowb()   do {} while (0)
 
#define readb   __raw_readb
 
#define readw(addr)   __le16_to_cpu(__raw_readw(addr))
 
#define readl(addr)   __le32_to_cpu(__raw_readl(addr))
 
#define writeb   __raw_writeb
 
#define writew(b, addr)   __raw_writew(__cpu_to_le16(b),addr)
 
#define writel(b, addr)   __raw_writel(__cpu_to_le32(b),addr)
 
#define PCI_IOBASE   ((void __iomem *) 0)
 
#define inb_p(addr)   inb(addr)
 
#define inw_p(addr)   inw(addr)
 
#define inl_p(addr)   inl(addr)
 
#define outb_p(x, addr)   outb((x), (addr))
 
#define outw_p(x, addr)   outw((x), (addr))
 
#define outl_p(x, addr)   outl((x), (addr))
 
#define ioread8(addr)   readb(addr)
 
#define ioread16(addr)   readw(addr)
 
#define ioread16be(addr)   be16_to_cpu(ioread16(addr))
 
#define ioread32(addr)   readl(addr)
 
#define ioread32be(addr)   be32_to_cpu(ioread32(addr))
 
#define iowrite8(v, addr)   writeb((v), (addr))
 
#define iowrite16(v, addr)   writew((v), (addr))
 
#define iowrite16be(v, addr)   iowrite16(be16_to_cpu(v), (addr))
 
#define iowrite32(v, addr)   writel((v), (addr))
 
#define iowrite32be(v, addr)   iowrite32(be32_to_cpu(v), (addr))
 
#define ioread8_rep(p, dst, count)   insb((unsigned long) (p), (dst), (count))
 
#define ioread16_rep(p, dst, count)   insw((unsigned long) (p), (dst), (count))
 
#define ioread32_rep(p, dst, count)   insl((unsigned long) (p), (dst), (count))
 
#define iowrite8_rep(p, src, count)   outsb((unsigned long) (p), (src), (count))
 
#define iowrite16_rep(p, src, count)   outsw((unsigned long) (p), (src), (count))
 
#define iowrite32_rep(p, src, count)   outsl((unsigned long) (p), (src), (count))
 
#define IO_SPACE_LIMIT   0xffff
 

Macro Definition Documentation

#define inb_p (   addr)    inb(addr)

Definition at line 138 of file io.h.

#define inl_p (   addr)    inl(addr)

Definition at line 140 of file io.h.

#define inw_p (   addr)    inw(addr)

Definition at line 139 of file io.h.

#define IO_SPACE_LIMIT   0xffff

Definition at line 279 of file io.h.

#define ioread16 (   addr)    readw(addr)

Definition at line 252 of file io.h.

#define ioread16_rep (   p,
  dst,
  count 
)    insw((unsigned long) (p), (dst), (count))

Definition at line 265 of file io.h.

#define ioread16be (   addr)    be16_to_cpu(ioread16(addr))

Definition at line 253 of file io.h.

#define ioread32 (   addr)    readl(addr)

Definition at line 254 of file io.h.

#define ioread32_rep (   p,
  dst,
  count 
)    insl((unsigned long) (p), (dst), (count))

Definition at line 267 of file io.h.

#define ioread32be (   addr)    be32_to_cpu(ioread32(addr))

Definition at line 255 of file io.h.

#define ioread8 (   addr)    readb(addr)

Definition at line 251 of file io.h.

#define ioread8_rep (   p,
  dst,
  count 
)    insb((unsigned long) (p), (dst), (count))

Definition at line 263 of file io.h.

#define iowrite16 (   v,
  addr 
)    writew((v), (addr))

Definition at line 258 of file io.h.

#define iowrite16_rep (   p,
  src,
  count 
)    outsw((unsigned long) (p), (src), (count))

Definition at line 272 of file io.h.

#define iowrite16be (   v,
  addr 
)    iowrite16(be16_to_cpu(v), (addr))

Definition at line 259 of file io.h.

#define iowrite32 (   v,
  addr 
)    writel((v), (addr))

Definition at line 260 of file io.h.

#define iowrite32_rep (   p,
  src,
  count 
)    outsl((unsigned long) (p), (src), (count))

Definition at line 274 of file io.h.

#define iowrite32be (   v,
  addr 
)    iowrite32(be32_to_cpu(v), (addr))

Definition at line 261 of file io.h.

#define iowrite8 (   v,
  addr 
)    writeb((v), (addr))

Definition at line 257 of file io.h.

#define iowrite8_rep (   p,
  src,
  count 
)    outsb((unsigned long) (p), (src), (count))

Definition at line 270 of file io.h.

#define mmiowb ( )    do {} while (0)

Definition at line 25 of file io.h.

#define outb_p (   x,
  addr 
)    outb((x), (addr))

Definition at line 141 of file io.h.

#define outl_p (   x,
  addr 
)    outl((x), (addr))

Definition at line 143 of file io.h.

#define outw_p (   x,
  addr 
)    outw((x), (addr))

Definition at line 142 of file io.h.

#define PCI_IOBASE   ((void __iomem *) 0)

Definition at line 100 of file io.h.

#define readb   __raw_readb

Definition at line 56 of file io.h.

#define readl (   addr)    __le32_to_cpu(__raw_readl(addr))

Definition at line 58 of file io.h.

#define readw (   addr)    __le16_to_cpu(__raw_readw(addr))

Definition at line 57 of file io.h.

#define writeb   __raw_writeb

Definition at line 81 of file io.h.

#define writel (   b,
  addr 
)    __raw_writel(__cpu_to_le32(b),addr)

Definition at line 83 of file io.h.

#define writew (   b,
  addr 
)    __raw_writew(__cpu_to_le16(b),addr)

Definition at line 82 of file io.h.