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

Go to the source code of this file.

Macros

#define IO_SPACE_LIMIT   0xfffffffful
 
#define xlate_dev_mem_ptr(p)   __va(p)
 
#define xlate_dev_kmem_ptr(p)   p
 
#define page_to_phys(page)   ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
 
#define ioremap(physaddr, size)   ((void __iomem *)(unsigned long)(physaddr))
 
#define iounmap(addr)   ((void)0)
 
#define ioremap_nocache(physaddr, size)   ioremap(physaddr, size)
 
#define ioremap_wc(physaddr, size)   ioremap(physaddr, size)
 
#define ioremap_writethrough(physaddr, size)   ioremap(physaddr, size)
 
#define ioremap_fullcache(physaddr, size)   ioremap(physaddr, size)
 
#define mmiowb()
 
#define mm_ptov(addr)   ((void *)phys_to_virt(addr))
 
#define mm_vtop(addr)   ((unsigned long)virt_to_phys(addr))
 
#define readb   __raw_readb
 
#define readw   __raw_readw
 
#define readl   __raw_readl
 
#define readq   __raw_readq
 
#define writeb   __raw_writeb
 
#define writew   __raw_writew
 
#define writel   __raw_writel
 
#define writeq   __raw_writeq
 
#define readb_relaxed   readb
 
#define readw_relaxed   readw
 
#define readl_relaxed   readl
 
#define readq_relaxed   readq
 
#define ioread8   readb
 
#define ioread16   readw
 
#define ioread32   readl
 
#define ioread64   readq
 
#define iowrite8   writeb
 
#define iowrite16   writew
 
#define iowrite32   writel
 
#define iowrite64   writeq
 
#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 ioread16be(addr)   be16_to_cpu(ioread16(addr))
 
#define ioread32be(addr)   be32_to_cpu(ioread32(addr))
 
#define iowrite16be(v, addr)   iowrite16(be16_to_cpu(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 virt_to_bus   virt_to_phys
 
#define bus_to_virt   phys_to_virt
 

Macro Definition Documentation

#define bus_to_virt   phys_to_virt

Definition at line 391 of file io.h.

#define inb_p (   addr)    inb(addr)

Definition at line 334 of file io.h.

#define inl_p (   addr)    inl(addr)

Definition at line 336 of file io.h.

#define inw_p (   addr)    inw(addr)

Definition at line 335 of file io.h.

#define IO_SPACE_LIMIT   0xfffffffful

Definition at line 22 of file io.h.

#define ioread16   readw

Definition at line 245 of file io.h.

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

Definition at line 378 of file io.h.

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

Definition at line 371 of file io.h.

#define ioread32   readl

Definition at line 246 of file io.h.

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

Definition at line 380 of file io.h.

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

Definition at line 372 of file io.h.

#define ioread64   readq

Definition at line 247 of file io.h.

#define ioread8   readb

Definition at line 244 of file io.h.

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

Definition at line 376 of file io.h.

#define ioremap (   physaddr,
  size 
)    ((void __iomem *)(unsigned long)(physaddr))

Definition at line 50 of file io.h.

#define ioremap_fullcache (   physaddr,
  size 
)    ioremap(physaddr, size)

Definition at line 57 of file io.h.

#define ioremap_nocache (   physaddr,
  size 
)    ioremap(physaddr, size)

Definition at line 54 of file io.h.

#define ioremap_wc (   physaddr,
  size 
)    ioremap(physaddr, size)

Definition at line 55 of file io.h.

#define ioremap_writethrough (   physaddr,
  size 
)    ioremap(physaddr, size)

Definition at line 56 of file io.h.

#define iounmap (   addr)    ((void)0)

Definition at line 51 of file io.h.

#define iowrite16   writew

Definition at line 249 of file io.h.

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

Definition at line 385 of file io.h.

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

Definition at line 373 of file io.h.

#define iowrite32   writel

Definition at line 250 of file io.h.

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

Definition at line 387 of file io.h.

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

Definition at line 374 of file io.h.

#define iowrite64   writeq

Definition at line 251 of file io.h.

#define iowrite8   writeb

Definition at line 248 of file io.h.

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

Definition at line 383 of file io.h.

#define mm_ptov (   addr)    ((void *)phys_to_virt(addr))

Definition at line 62 of file io.h.

#define mm_vtop (   addr)    ((unsigned long)virt_to_phys(addr))

Definition at line 63 of file io.h.

#define mmiowb ( )

Definition at line 59 of file io.h.

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

Definition at line 337 of file io.h.

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

Definition at line 339 of file io.h.

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

Definition at line 338 of file io.h.

#define page_to_phys (   page)    ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)

Definition at line 38 of file io.h.

#define readb   __raw_readb

Definition at line 230 of file io.h.

#define readb_relaxed   readb

Definition at line 239 of file io.h.

#define readl   __raw_readl

Definition at line 232 of file io.h.

#define readl_relaxed   readl

Definition at line 241 of file io.h.

#define readq   __raw_readq

Definition at line 233 of file io.h.

#define readq_relaxed   readq

Definition at line 242 of file io.h.

#define readw   __raw_readw

Definition at line 231 of file io.h.

#define readw_relaxed   readw

Definition at line 240 of file io.h.

#define virt_to_bus   virt_to_phys

Definition at line 390 of file io.h.

#define writeb   __raw_writeb

Definition at line 234 of file io.h.

#define writel   __raw_writel

Definition at line 236 of file io.h.

#define writeq   __raw_writeq

Definition at line 237 of file io.h.

#define writew   __raw_writew

Definition at line 235 of file io.h.

#define xlate_dev_kmem_ptr (   p)    p

Definition at line 33 of file io.h.

#define xlate_dev_mem_ptr (   p)    __va(p)

Definition at line 28 of file io.h.