Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
io_32.h File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <asm/page.h>
#include <asm-generic/pci_iomap.h>

Go to the source code of this file.

Macros

#define page_to_phys(page)   (page_to_pfn(page) << PAGE_SHIFT)
 
#define mmiowb()
 
#define readb(__addr)   __readb(__addr)
 
#define readw(__addr)   __readw(__addr)
 
#define readl(__addr)   __readl(__addr)
 
#define readb_relaxed(__addr)   readb(__addr)
 
#define readw_relaxed(__addr)   readw(__addr)
 
#define readl_relaxed(__addr)   readl(__addr)
 
#define writeb(__b, __addr)   __writeb((__b),(__addr))
 
#define writew(__w, __addr)   __writew((__w),(__addr))
 
#define writel(__l, __addr)   __writel((__l),(__addr))
 
#define inb_local(__addr)   __readb((void __iomem *)(unsigned long)(__addr))
 
#define inb(__addr)   __readb((void __iomem *)(unsigned long)(__addr))
 
#define inw(__addr)   __readw((void __iomem *)(unsigned long)(__addr))
 
#define inl(__addr)   __readl((void __iomem *)(unsigned long)(__addr))
 
#define outb_local(__b, __addr)   __writeb(__b, (void __iomem *)(unsigned long)(__addr))
 
#define outb(__b, __addr)   __writeb(__b, (void __iomem *)(unsigned long)(__addr))
 
#define outw(__w, __addr)   __writew(__w, (void __iomem *)(unsigned long)(__addr))
 
#define outl(__l, __addr)   __writel(__l, (void __iomem *)(unsigned long)(__addr))
 
#define inb_p(__addr)   inb(__addr)
 
#define outb_p(__b, __addr)   outb(__b, __addr)
 
#define inw_p(__addr)   inw(__addr)
 
#define outw_p(__w, __addr)   outw(__w, __addr)
 
#define inl_p(__addr)   inl(__addr)
 
#define outl_p(__l, __addr)   outl(__l, __addr)
 
#define IO_SPACE_LIMIT   0xffffffff
 
#define sbus_readb(__addr)   _sbus_readb(__addr)
 
#define sbus_readw(__addr)   _sbus_readw(__addr)
 
#define sbus_readl(__addr)   _sbus_readl(__addr)
 
#define sbus_writeb(__b, __addr)   _sbus_writeb(__b, __addr)
 
#define sbus_writew(__w, __addr)   _sbus_writew(__w, __addr)
 
#define sbus_writel(__l, __addr)   _sbus_writel(__l, __addr)
 
#define memset_io(d, c, sz)   _memset_io(d,c,sz)
 
#define sbus_memcpy_fromio(d, s, sz)   _sbus_memcpy_fromio(d, s, sz)
 
#define memcpy_fromio(d, s, sz)   _memcpy_fromio(d,s,sz)
 
#define sbus_memcpy_toio(d, s, sz)   _sbus_memcpy_toio(d, s, sz)
 
#define memcpy_toio(d, s, sz)   _memcpy_toio(d,s,sz)
 
#define __ARCH_HAS_NO_PAGE_ZERO_MAPPED   1
 
#define xlate_dev_mem_ptr(p)   __va(p)
 
#define xlate_dev_kmem_ptr(p)   p
 

Functions

void outsb (unsigned long addr, const void *src, unsigned long cnt)
 
void outsw (unsigned long addr, const void *src, unsigned long cnt)
 
void outsl (unsigned long addr, const void *src, unsigned long cnt)
 
void insb (unsigned long addr, void *dst, unsigned long count)
 
void insw (unsigned long addr, void *dst, unsigned long count)
 
void insl (unsigned long addr, void *dst, unsigned long count)
 

Macro Definition Documentation

#define __ARCH_HAS_NO_PAGE_ZERO_MAPPED   1

Definition at line 350 of file io_32.h.

#define inb (   __addr)    __readb((void __iomem *)(unsigned long)(__addr))

Definition at line 118 of file io_32.h.

#define inb_local (   __addr)    __readb((void __iomem *)(unsigned long)(__addr))

Definition at line 117 of file io_32.h.

#define inb_p (   __addr)    inb(__addr)

Definition at line 127 of file io_32.h.

#define inl (   __addr)    __readl((void __iomem *)(unsigned long)(__addr))

Definition at line 120 of file io_32.h.

#define inl_p (   __addr)    inl(__addr)

Definition at line 131 of file io_32.h.

#define inw (   __addr)    __readw((void __iomem *)(unsigned long)(__addr))

Definition at line 119 of file io_32.h.

#define inw_p (   __addr)    inw(__addr)

Definition at line 129 of file io_32.h.

#define IO_SPACE_LIMIT   0xffffffff

Definition at line 141 of file io_32.h.

#define memcpy_fromio (   d,
  s,
  sz 
)    _memcpy_fromio(d,s,sz)

Definition at line 237 of file io_32.h.

#define memcpy_toio (   d,
  s,
  sz 
)    _memcpy_toio(d,s,sz)

Definition at line 268 of file io_32.h.

#define memset_io (   d,
  c,
  sz 
)    _memset_io(d,c,sz)

Definition at line 208 of file io_32.h.

#define mmiowb ( )

Definition at line 23 of file io_32.h.

#define outb (   __b,
  __addr 
)    __writeb(__b, (void __iomem *)(unsigned long)(__addr))

Definition at line 123 of file io_32.h.

#define outb_local (   __b,
  __addr 
)    __writeb(__b, (void __iomem *)(unsigned long)(__addr))

Definition at line 122 of file io_32.h.

#define outb_p (   __b,
  __addr 
)    outb(__b, __addr)

Definition at line 128 of file io_32.h.

#define outl (   __l,
  __addr 
)    __writel(__l, (void __iomem *)(unsigned long)(__addr))

Definition at line 125 of file io_32.h.

#define outl_p (   __l,
  __addr 
)    outl(__l, __addr)

Definition at line 132 of file io_32.h.

#define outw (   __w,
  __addr 
)    __writew(__w, (void __iomem *)(unsigned long)(__addr))

Definition at line 124 of file io_32.h.

#define outw_p (   __w,
  __addr 
)    outw(__w, __addr)

Definition at line 130 of file io_32.h.

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

Definition at line 11 of file io_32.h.

#define readb (   __addr)    __readb(__addr)

Definition at line 89 of file io_32.h.

#define readb_relaxed (   __addr)    readb(__addr)

Definition at line 92 of file io_32.h.

#define readl (   __addr)    __readl(__addr)

Definition at line 91 of file io_32.h.

#define readl_relaxed (   __addr)    readl(__addr)

Definition at line 94 of file io_32.h.

#define readw (   __addr)    __readw(__addr)

Definition at line 90 of file io_32.h.

#define readw_relaxed (   __addr)    readw(__addr)

Definition at line 93 of file io_32.h.

#define sbus_memcpy_fromio (   d,
  s,
  sz 
)    _sbus_memcpy_fromio(d, s, sz)

Definition at line 223 of file io_32.h.

#define sbus_memcpy_toio (   d,
  s,
  sz 
)    _sbus_memcpy_toio(d, s, sz)

Definition at line 253 of file io_32.h.

#define sbus_readb (   __addr)    _sbus_readb(__addr)

Definition at line 182 of file io_32.h.

#define sbus_readl (   __addr)    _sbus_readl(__addr)

Definition at line 184 of file io_32.h.

#define sbus_readw (   __addr)    _sbus_readw(__addr)

Definition at line 183 of file io_32.h.

#define sbus_writeb (   __b,
  __addr 
)    _sbus_writeb(__b, __addr)

Definition at line 185 of file io_32.h.

#define sbus_writel (   __l,
  __addr 
)    _sbus_writel(__l, __addr)

Definition at line 187 of file io_32.h.

#define sbus_writew (   __w,
  __addr 
)    _sbus_writew(__w, __addr)

Definition at line 186 of file io_32.h.

#define writeb (   __b,
  __addr 
)    __writeb((__b),(__addr))

Definition at line 96 of file io_32.h.

#define writel (   __l,
  __addr 
)    __writel((__l),(__addr))

Definition at line 98 of file io_32.h.

#define writew (   __w,
  __addr 
)    __writew((__w),(__addr))

Definition at line 97 of file io_32.h.

#define xlate_dev_kmem_ptr (   p)    p

Definition at line 361 of file io_32.h.

#define xlate_dev_mem_ptr (   p)    __va(p)

Definition at line 356 of file io_32.h.

Function Documentation

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

Definition at line 241 of file io.c.

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

Definition at line 313 of file io.c.

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

Definition at line 281 of file io.c.

void outsb ( unsigned long  addr,
const void src,
unsigned long  cnt 
)

Definition at line 335 of file io.c.

void outsl ( unsigned long  addr,
const void src,
unsigned long  cnt 
)

Definition at line 407 of file io.c.

void outsw ( unsigned long  addr,
const void src,
unsigned long  cnt 
)

Definition at line 375 of file io.c.