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

Go to the source code of this file.

Macros

#define mmiowb()   do {} while (0)
 
#define __raw_readb   readb
 
#define __raw_readw   readw
 
#define __raw_readl   readl
 
#define readb_relaxed   readb
 
#define readw_relaxed   readw
 
#define readl_relaxed   readl
 
#define __raw_writeb   writeb
 
#define __raw_writew   writew
 
#define __raw_writel   writel
 
#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 ioread32(addr)   readl(addr)
 
#define iowrite8(v, addr)   writeb((v), (addr))
 
#define iowrite16(v, addr)   writew((v), (addr))
 
#define iowrite32(v, addr)   writel((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 readsb(p, dst, count)   insb((unsigned long) (p), (dst), (count))
 
#define readsw(p, dst, count)   insw((unsigned long) (p), (dst), (count))
 
#define readsl(p, dst, count)   insl((unsigned long) (p), (dst), (count))
 
#define writesb(p, src, count)   outsb((unsigned long) (p), (src), (count))
 
#define writesw(p, src, count)   outsw((unsigned long) (p), (src), (count))
 
#define writesl(p, src, count)   outsl((unsigned long) (p), (src), (count))
 
#define IO_SPACE_LIMIT   0xffffffff
 

Functions

void __outsl (unsigned long addr, const void *buffer, int count)
 

Macro Definition Documentation

#define __raw_readb   readb

Definition at line 42 of file io.h.

#define __raw_readl   readl

Definition at line 44 of file io.h.

#define __raw_readw   readw

Definition at line 43 of file io.h.

#define __raw_writeb   writeb

Definition at line 65 of file io.h.

#define __raw_writel   writel

Definition at line 67 of file io.h.

#define __raw_writew   writew

Definition at line 66 of file io.h.

#define inb_p (   addr)    inb(addr)

Definition at line 113 of file io.h.

#define inl_p (   addr)    inl(addr)

Definition at line 115 of file io.h.

#define inw_p (   addr)    inw(addr)

Definition at line 114 of file io.h.

#define IO_SPACE_LIMIT   0xffffffff

Definition at line 223 of file io.h.

#define ioread16 (   addr)    readw(addr)

Definition at line 188 of file io.h.

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

Definition at line 197 of file io.h.

#define ioread32 (   addr)    readl(addr)

Definition at line 189 of file io.h.

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

Definition at line 199 of file io.h.

#define ioread8 (   addr)    readb(addr)

Definition at line 187 of file io.h.

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

Definition at line 195 of file io.h.

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

Definition at line 192 of file io.h.

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

Definition at line 204 of file io.h.

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

Definition at line 193 of file io.h.

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

Definition at line 206 of file io.h.

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

Definition at line 191 of file io.h.

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

Definition at line 202 of file io.h.

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

Definition at line 18 of file io.h.

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

Definition at line 116 of file io.h.

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

Definition at line 118 of file io.h.

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

Definition at line 117 of file io.h.

#define readb_relaxed   readb

Definition at line 46 of file io.h.

#define readl_relaxed   readl

Definition at line 48 of file io.h.

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

Definition at line 209 of file io.h.

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

Definition at line 213 of file io.h.

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

Definition at line 211 of file io.h.

#define readw_relaxed   readw

Definition at line 47 of file io.h.

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

Definition at line 216 of file io.h.

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

Definition at line 220 of file io.h.

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

Definition at line 218 of file io.h.

Function Documentation

void __outsl ( unsigned long  addr,
const void buffer,
int  count 
)

Definition at line 19 of file io.c.