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

Go to the source code of this file.

Macros

#define ARCH_HAS_IOREMAP_WC
 
#define build_mmio_read(name, size, type, reg, barrier)
 
#define build_mmio_write(name, size, type, reg, barrier)
 
#define readb_relaxed(a)   __readb(a)
 
#define readw_relaxed(a)   __readw(a)
 
#define readl_relaxed(a)   __readl(a)
 
#define __raw_readb   __readb
 
#define __raw_readw   __readw
 
#define __raw_readl   __readl
 
#define __raw_writeb   __writeb
 
#define __raw_writew   __writew
 
#define __raw_writel   __writel
 
#define mmiowb()   barrier()
 
#define page_to_phys(page)   ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
 
#define isa_page_to_bus(page)   ((unsigned int)page_to_phys(page))
 
#define isa_bus_to_virt   phys_to_virt
 
#define virt_to_bus   virt_to_phys
 
#define bus_to_virt   phys_to_virt
 
#define BUILDIO(bwl, bw, type)
 
#define IO_SPACE_LIMIT   0xffff
 

Functions

 build_mmio_read (readb,"b", unsigned char,"=q",:"memory") build_mmio_read(readw
 

Variables

 w
 
unsigned short
 

Macro Definition Documentation

#define __raw_readb   __readb
#define __raw_readl   __readl
#define __raw_readw   __readw
#define __raw_writeb   __writeb
#define __raw_writel   __writel
#define __raw_writew   __writew
#define ARCH_HAS_IOREMAP_WC

Definition at line 37 of file io.h.

#define build_mmio_read (   name,
  size,
  type,
  reg,
  barrier 
)
Value:
static inline type name(const volatile void __iomem *addr) \
{ type ret; asm volatile("mov" size " %1,%0":reg (ret) \
:"m" (*(volatile type __force *)addr) barrier); return ret; }

Definition at line 43 of file io.h.

#define build_mmio_write (   name,
  size,
  type,
  reg,
  barrier 
)
Value:
static inline void name(type val, volatile void __iomem *addr) \
{ asm volatile("mov" size " %0,%1": :reg (val), \
"m" (*(volatile type __force *)addr) barrier); }

Definition at line 48 of file io.h.

#define BUILDIO (   bwl,
  bw,
  type 
)
#define bus_to_virt   phys_to_virt
#define IO_SPACE_LIMIT   0xffff
#define isa_bus_to_virt   phys_to_virt
#define isa_page_to_bus (   page)    ((unsigned int)page_to_phys(page))
#define mmiowb ( )    barrier()
#define page_to_phys (   page)    ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
#define readb_relaxed (   a)    __readb(a)
#define readl_relaxed (   a)    __readl(a)
#define readw_relaxed (   a)    __readw(a)
#define virt_to_bus   virt_to_phys

Function Documentation

build_mmio_read ( readb  ,
"b"  ,
unsigned  char 
)

Variable Documentation

unsigned short

Definition at line 54 of file io.h.

w

Definition at line 54 of file io.h.