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 <linux/types.h>
#include <asm/pgtable.h>
#include <asm-generic/iomap.h>

Go to the source code of this file.

Macros

#define virt_to_phys(a)   ((unsigned long)__pa(a))
 
#define phys_to_virt(a)   __va(a)
 
#define virt_to_bus   virt_to_phys
 
#define bus_to_virt   phys_to_virt
 
#define ioremap_nocache(off, sz)   ioremap((off), (sz))
 
#define readb   readb
 
#define readw   readw
 
#define readl   readl
 
#define readq   readq
 
#define writeb   writeb
 
#define writew   writew
 
#define writel   writel
 
#define writeq   writeq
 
#define readb_relaxed(addr)   readb(addr)
 
#define readw_relaxed(addr)   readw(addr)
 
#define readl_relaxed(addr)   readl(addr)
 
#define readq_relaxed(addr)   readq(addr)
 
#define mmiowb()   do { } while (0)
 
#define inb_p   inb
 
#define inw_p   inw
 
#define inl_p   inl
 
#define outb_p   outb
 
#define outw_p   outw
 
#define outl_p   outl
 
#define outb(x, y)   BUG()
 
#define outw(x, y)   BUG()
 
#define outl(x, y)   BUG()
 
#define IO_SPACE_LIMIT   0x00ffffff
 
#define F_EXTEND(x)   ((unsigned long)((x) | (0xffffffff00000000ULL)))
 
#define xlate_dev_mem_ptr(p)   __va(p)
 
#define xlate_dev_kmem_ptr(p)   p
 

Functions

void __iomem__ioremap (unsigned long offset, unsigned long size, unsigned long flags)
 
void iounmap (const volatile void __iomem *addr)
 
void memset_io (volatile void __iomem *addr, unsigned char val, int count)
 
void memcpy_fromio (void *dst, const volatile void __iomem *src, int count)
 
void memcpy_toio (volatile void __iomem *dst, const void *src, int count)
 
unsigned char eisa_in8 (unsigned short port)
 
unsigned short eisa_in16 (unsigned short port)
 
unsigned int eisa_in32 (unsigned short port)
 
void eisa_out8 (unsigned char data, unsigned short port)
 
void eisa_out16 (unsigned short data, unsigned short port)
 
void eisa_out32 (unsigned int data, unsigned short port)
 
void insb (unsigned long port, void *dst, unsigned long count)
 
void insw (unsigned long port, void *dst, unsigned long count)
 
void insl (unsigned long port, void *dst, unsigned long count)
 
void outsb (unsigned long port, const void *src, unsigned long count)
 
void outsw (unsigned long port, const void *src, unsigned long count)
 
void outsl (unsigned long port, const void *src, unsigned long count)
 

Macro Definition Documentation

#define bus_to_virt   phys_to_virt

Definition at line 10 of file io.h.

#define F_EXTEND (   x)    ((unsigned long)((x) | (0xffffffff00000000ULL)))

Definition at line 305 of file io.h.

#define inb_p   inb

Definition at line 233 of file io.h.

#define inl_p   inl

Definition at line 235 of file io.h.

#define inw_p   inw

Definition at line 234 of file io.h.

#define IO_SPACE_LIMIT   0x00ffffff

Definition at line 298 of file io.h.

#define ioremap_nocache (   off,
  sz 
)    ioremap((off), (sz))

Definition at line 139 of file io.h.

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

Definition at line 225 of file io.h.

#define outb (   x,
  y 
)    BUG()

Definition at line 281 of file io.h.

#define outb_p   outb

Definition at line 236 of file io.h.

#define outl (   x,
  y 
)    BUG()

Definition at line 283 of file io.h.

#define outl_p   outl

Definition at line 238 of file io.h.

#define outw (   x,
  y 
)    BUG()

Definition at line 282 of file io.h.

#define outw_p   outw

Definition at line 237 of file io.h.

#define phys_to_virt (   a)    __va(a)

Definition at line 8 of file io.h.

#define readb   readb

Definition at line 211 of file io.h.

#define readb_relaxed (   addr)    readb(addr)

Definition at line 220 of file io.h.

#define readl   readl

Definition at line 213 of file io.h.

#define readl_relaxed (   addr)    readl(addr)

Definition at line 222 of file io.h.

#define readq   readq

Definition at line 214 of file io.h.

#define readq_relaxed (   addr)    readq(addr)

Definition at line 223 of file io.h.

#define readw   readw

Definition at line 212 of file io.h.

#define readw_relaxed (   addr)    readw(addr)

Definition at line 221 of file io.h.

#define virt_to_bus   virt_to_phys

Definition at line 9 of file io.h.

#define virt_to_phys (   a)    ((unsigned long)__pa(a))

Definition at line 7 of file io.h.

#define writeb   writeb

Definition at line 215 of file io.h.

#define writel   writel

Definition at line 217 of file io.h.

#define writeq   writeq

Definition at line 218 of file io.h.

#define writew   writew

Definition at line 216 of file io.h.

#define xlate_dev_kmem_ptr (   p)    p

Definition at line 318 of file io.h.

#define xlate_dev_mem_ptr (   p)    __va(p)

Definition at line 313 of file io.h.

Function Documentation

void __iomem* __ioremap ( unsigned long  offset,
unsigned long  size,
unsigned long  flags 
)

Definition at line 22 of file ioremap.c.

unsigned short eisa_in16 ( unsigned short  port)

Definition at line 89 of file eisa.c.

unsigned int eisa_in32 ( unsigned short  port)

Definition at line 96 of file eisa.c.

unsigned char eisa_in8 ( unsigned short  port)

Definition at line 82 of file eisa.c.

void eisa_out16 ( unsigned short  data,
unsigned short  port 
)

Definition at line 109 of file eisa.c.

void eisa_out32 ( unsigned int  data,
unsigned short  port 
)

Definition at line 115 of file eisa.c.

void eisa_out8 ( unsigned char  data,
unsigned short  port 
)

Definition at line 103 of file eisa.c.

void insb ( unsigned long  port,
void dst,
unsigned long  count 
)

Definition at line 241 of file io.c.

void insl ( unsigned long  port,
void dst,
unsigned long  count 
)

Definition at line 313 of file io.c.

void insw ( unsigned long  port,
void dst,
unsigned long  count 
)

Definition at line 281 of file io.c.

void iounmap ( const volatile void __iomem addr)

Definition at line 94 of file ioremap.c.

void memcpy_fromio ( void dst,
const volatile void __iomem src,
int  count 
)

Definition at line 53 of file io.c.

void memcpy_toio ( volatile void __iomem dst,
const void src,
int  count 
)

Definition at line 18 of file io.c.

void memset_io ( volatile void __iomem addr,
unsigned char  val,
int  count 
)

Definition at line 105 of file io.c.

void outsb ( unsigned long  port,
const void src,
unsigned long  count 
)

Definition at line 335 of file io.c.

void outsl ( unsigned long  port,
const void src,
unsigned long  count 
)

Definition at line 407 of file io.c.

void outsw ( unsigned long  port,
const void src,
unsigned long  count 
)

Definition at line 375 of file io.c.