Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
io.h File Reference

Go to the source code of this file.

Macros

#define inb(p)   __inb8(p)
 
#define outb(v, p)   __outb8(v,p)
 
#define inw(p)   __inw(p)
 
#define outw(v, p)   __outw(v,p)
 
#define inl(p)   __inl(p)
 
#define outl(v, p)   __outl(v,p)
 
#define readb(b)   __readb(b)
 
#define readw(b)   __readw(b)
 
#define readl(b)   __readl(b)
 
#define readb_relaxed(addr)   readb(addr)
 
#define readw_relaxed(addr)   readw(addr)
 
#define readl_relaxed(addr)   readl(addr)
 
#define writeb(v, b)   __writeb(v,b)
 
#define writew(v, b)   __writew(v,b)
 
#define writel(v, b)   __writel(v,b)
 

Functions

u8 __inb8 (unsigned int port)
 
void __outb8 (u8 val, unsigned int port)
 
u8 __inb16 (unsigned int port)
 
void __outb16 (u8 val, unsigned int port)
 
u16 __inw (unsigned int port)
 
void __outw (u16 val, unsigned int port)
 
u32 __inl (unsigned int port)
 
void __outl (u32 val, unsigned int port)
 
u8 __readb (const volatile void __iomem *addr)
 
u16 __readw (const volatile void __iomem *addr)
 
u32 __readl (const volatile void __iomem *addr)
 
void __writeb (u8 val, void __iomem *addr)
 
void __writew (u16 val, void __iomem *addr)
 
void __writel (u32 val, void __iomem *addr)
 
void insb (unsigned int port, void *buf, int sz)
 
void insw (unsigned int port, void *buf, int sz)
 
void insl (unsigned int port, void *buf, int sz)
 
void outsb (unsigned int port, const void *buf, int sz)
 
void outsw (unsigned int port, const void *buf, int sz)
 
void outsl (unsigned int port, const void *buf, int sz)
 
void writesw (void __iomem *addr, const void *data, int wordlen)
 
void writesl (void __iomem *addr, const void *data, int longlen)
 
void readsw (const void __iomem *addr, void *data, int wordlen)
 
void readsl (const void __iomem *addr, void *data, int longlen)
 

Macro Definition Documentation

#define inb (   p)    __inb8(p)

Definition at line 44 of file io.h.

#define inl (   p)    __inl(p)

Definition at line 51 of file io.h.

#define inw (   p)    __inw(p)

Definition at line 48 of file io.h.

#define outb (   v,
  p 
)    __outb8(v,p)

Definition at line 45 of file io.h.

#define outl (   v,
  p 
)    __outl(v,p)

Definition at line 52 of file io.h.

#define outw (   v,
  p 
)    __outw(v,p)

Definition at line 49 of file io.h.

#define readb (   b)    __readb(b)

Definition at line 54 of file io.h.

#define readb_relaxed (   addr)    readb(addr)

Definition at line 57 of file io.h.

#define readl (   b)    __readl(b)

Definition at line 56 of file io.h.

#define readl_relaxed (   addr)    readl(addr)

Definition at line 59 of file io.h.

#define readw (   b)    __readw(b)

Definition at line 55 of file io.h.

#define readw_relaxed (   addr)    readw(addr)

Definition at line 58 of file io.h.

#define writeb (   v,
  b 
)    __writeb(v,b)

Definition at line 61 of file io.h.

#define writel (   v,
  b 
)    __writel(v,b)

Definition at line 63 of file io.h.

#define writew (   v,
  b 
)    __writew(v,b)

Definition at line 62 of file io.h.

Function Documentation

u8 __inb16 ( unsigned int  port)

Definition at line 236 of file io.c.

u8 __inb8 ( unsigned int  port)

Definition at line 209 of file io.c.

u32 __inl ( unsigned int  port)

Definition at line 270 of file io.c.

u16 __inw ( unsigned int  port)

Definition at line 251 of file io.c.

void __outb16 ( u8  val,
unsigned int  port 
)

Definition at line 307 of file io.c.

void __outb8 ( u8  val,
unsigned int  port 
)

Definition at line 287 of file io.c.

void __outl ( u32  val,
unsigned int  port 
)

Definition at line 338 of file io.c.

void __outw ( u16  val,
unsigned int  port 
)

Definition at line 322 of file io.c.

u8 __readb ( const volatile void __iomem addr)

Definition at line 66 of file io.c.

u32 __readl ( const volatile void __iomem addr)

Definition at line 88 of file io.c.

u16 __readw ( const volatile void __iomem addr)

Definition at line 78 of file io.c.

void __writeb ( u8  val,
void __iomem addr 
)

Definition at line 125 of file io.c.

void __writel ( u32  val,
void __iomem addr 
)

Definition at line 145 of file io.c.

void __writew ( u16  val,
void __iomem addr 
)

Definition at line 135 of file io.c.

void insb ( unsigned int  port,
void buf,
int  sz 
)

Definition at line 363 of file io.c.

void insl ( unsigned int  port,
void buf,
int  sz 
)

Definition at line 428 of file io.c.

void insw ( unsigned int  port,
void buf,
int  sz 
)

Definition at line 396 of file io.c.

void outsb ( unsigned int  port,
const void buf,
int  sz 
)

Definition at line 348 of file io.c.

void outsl ( unsigned int  port,
const void buf,
int  sz 
)

Definition at line 418 of file io.c.

void outsw ( unsigned int  port,
const void buf,
int  sz 
)

Definition at line 381 of file io.c.

void readsl ( const void __iomem addr,
void data,
int  longlen 
)

Definition at line 115 of file io.c.

void readsw ( const void __iomem addr,
void data,
int  wordlen 
)

Definition at line 105 of file io.c.

void writesl ( void __iomem addr,
const void data,
int  longlen 
)

Definition at line 170 of file io.c.

void writesw ( void __iomem addr,
const void data,
int  wordlen 
)

Definition at line 160 of file io.c.