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

Go to the source code of this file.

Macros

#define __SLOW_DOWN_IO   do { } while (0)
 
#define SLOW_DOWN_IO   do { } while (0)
 
#define page_to_phys(page)   (page_to_pfn(page) << PAGE_SHIFT)
 
#define inb(__addr)   (_inb((unsigned long)(__addr)))
 
#define inw(__addr)   (_inw((unsigned long)(__addr)))
 
#define inl(__addr)   (_inl((unsigned long)(__addr)))
 
#define outb(__b, __addr)   (_outb((u8)(__b), (unsigned long)(__addr)))
 
#define outw(__w, __addr)   (_outw((u16)(__w), (unsigned long)(__addr)))
 
#define outl(__l, __addr)   (_outl((u32)(__l), (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 readb(__addr)   _readb(__addr)
 
#define readw(__addr)   _readw(__addr)
 
#define readl(__addr)   _readl(__addr)
 
#define readq(__addr)   _readq(__addr)
 
#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 writeb(__b, __addr)   _writeb(__b, __addr)
 
#define writew(__w, __addr)   _writew(__w, __addr)
 
#define writel(__l, __addr)   _writel(__l, __addr)
 
#define writeq(__q, __addr)   _writeq(__q, __addr)
 
#define __raw_readb(__addr)   (_raw_readb((unsigned long)(__addr)))
 
#define __raw_readw(__addr)   (_raw_readw((unsigned long)(__addr)))
 
#define __raw_readl(__addr)   (_raw_readl((unsigned long)(__addr)))
 
#define __raw_readq(__addr)   (_raw_readq((unsigned long)(__addr)))
 
#define __raw_writeb(__b, __addr)   (_raw_writeb((u8)(__b), (unsigned long)(__addr)))
 
#define __raw_writew(__w, __addr)   (_raw_writew((u16)(__w), (unsigned long)(__addr)))
 
#define __raw_writel(__l, __addr)   (_raw_writel((u32)(__l), (unsigned long)(__addr)))
 
#define __raw_writeq(__q, __addr)   (_raw_writeq((u64)(__q), (unsigned long)(__addr)))
 
#define IO_SPACE_LIMIT   0xffffffffffffffffUL
 
#define sbus_readb(__addr)   _sbus_readb(__addr)
 
#define sbus_readw(__addr)   _sbus_readw(__addr)
 
#define sbus_readl(__addr)   _sbus_readl(__addr)
 
#define sbus_readq(__addr)   _sbus_readq(__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 sbus_writeq(__l, __addr)   _sbus_writeq(__l, __addr)
 
#define sbus_memset_io(d, c, sz)   _sbus_memset_io(d,c,sz)
 
#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 mmiowb()
 

Functions

void outsb (unsigned long, const void *, unsigned long)
 
void outsw (unsigned long, const void *, unsigned long)
 
void outsl (unsigned long, const void *, unsigned long)
 
void insb (unsigned long, void *, unsigned long)
 
void insw (unsigned long, void *, unsigned long)
 
void insl (unsigned long, void *, unsigned long)
 

Variables

unsigned long kern_base
 
unsigned long kern_size
 

Macro Definition Documentation

#define __raw_readb (   __addr)    (_raw_readb((unsigned long)(__addr)))

Definition at line 292 of file io_64.h.

#define __raw_readl (   __addr)    (_raw_readl((unsigned long)(__addr)))

Definition at line 294 of file io_64.h.

#define __raw_readq (   __addr)    (_raw_readq((unsigned long)(__addr)))

Definition at line 295 of file io_64.h.

#define __raw_readw (   __addr)    (_raw_readw((unsigned long)(__addr)))

Definition at line 293 of file io_64.h.

#define __raw_writeb (   __b,
  __addr 
)    (_raw_writeb((u8)(__b), (unsigned long)(__addr)))

Definition at line 296 of file io_64.h.

#define __raw_writel (   __l,
  __addr 
)    (_raw_writel((u32)(__l), (unsigned long)(__addr)))

Definition at line 298 of file io_64.h.

#define __raw_writeq (   __q,
  __addr 
)    (_raw_writeq((u64)(__q), (unsigned long)(__addr)))

Definition at line 299 of file io_64.h.

#define __raw_writew (   __w,
  __addr 
)    (_raw_writew((u16)(__w), (unsigned long)(__addr)))

Definition at line 297 of file io_64.h.

#define __SLOW_DOWN_IO   do { } while (0)

Definition at line 13 of file io_64.h.

#define inb (   __addr)    (_inb((unsigned long)(__addr)))

Definition at line 80 of file io_64.h.

#define inb_p (   __addr)    inb(__addr)

Definition at line 87 of file io_64.h.

#define inl (   __addr)    (_inl((unsigned long)(__addr)))

Definition at line 82 of file io_64.h.

#define inl_p (   __addr)    inl(__addr)

Definition at line 91 of file io_64.h.

#define inw (   __addr)    (_inw((unsigned long)(__addr)))

Definition at line 81 of file io_64.h.

#define inw_p (   __addr)    inw(__addr)

Definition at line 89 of file io_64.h.

#define IO_SPACE_LIMIT   0xffffffffffffffffUL

Definition at line 304 of file io_64.h.

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

Definition at line 448 of file io_64.h.

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

Definition at line 479 of file io_64.h.

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

Definition at line 419 of file io_64.h.

#define mmiowb ( )

Definition at line 481 of file io_64.h.

#define outb (   __b,
  __addr 
)    (_outb((u8)(__b), (unsigned long)(__addr)))

Definition at line 83 of file io_64.h.

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

Definition at line 88 of file io_64.h.

#define outl (   __l,
  __addr 
)    (_outl((u32)(__l), (unsigned long)(__addr)))

Definition at line 85 of file io_64.h.

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

Definition at line 92 of file io_64.h.

#define outw (   __w,
  __addr 
)    (_outw((u16)(__w), (unsigned long)(__addr)))

Definition at line 84 of file io_64.h.

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

Definition at line 90 of file io_64.h.

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

Definition at line 18 of file io_64.h.

#define readb (   __addr)    _readb(__addr)

Definition at line 206 of file io_64.h.

#define readb_relaxed (   __addr)    _readb(__addr)

Definition at line 210 of file io_64.h.

#define readl (   __addr)    _readl(__addr)

Definition at line 208 of file io_64.h.

#define readl_relaxed (   __addr)    _readl(__addr)

Definition at line 212 of file io_64.h.

#define readq (   __addr)    _readq(__addr)

Definition at line 209 of file io_64.h.

#define readq_relaxed (   __addr)    _readq(__addr)

Definition at line 213 of file io_64.h.

#define readw (   __addr)    _readw(__addr)

Definition at line 207 of file io_64.h.

#define readw_relaxed (   __addr)    _readw(__addr)

Definition at line 211 of file io_64.h.

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

Definition at line 434 of file io_64.h.

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

Definition at line 464 of file io_64.h.

#define sbus_memset_io (   d,
  c,
  sz 
)    _sbus_memset_io(d,c,sz)

Definition at line 406 of file io_64.h.

#define sbus_readb (   __addr)    _sbus_readb(__addr)

Definition at line 389 of file io_64.h.

#define sbus_readl (   __addr)    _sbus_readl(__addr)

Definition at line 391 of file io_64.h.

#define sbus_readq (   __addr)    _sbus_readq(__addr)

Definition at line 392 of file io_64.h.

#define sbus_readw (   __addr)    _sbus_readw(__addr)

Definition at line 390 of file io_64.h.

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

Definition at line 393 of file io_64.h.

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

Definition at line 395 of file io_64.h.

#define sbus_writeq (   __l,
  __addr 
)    _sbus_writeq(__l, __addr)

Definition at line 396 of file io_64.h.

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

Definition at line 394 of file io_64.h.

#define SLOW_DOWN_IO   do { } while (0)

Definition at line 14 of file io_64.h.

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

Definition at line 214 of file io_64.h.

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

Definition at line 216 of file io_64.h.

#define writeq (   __q,
  __addr 
)    _writeq(__q, __addr)

Definition at line 217 of file io_64.h.

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

Definition at line 215 of file io_64.h.

Function Documentation

void insb ( unsigned  long,
void ,
unsigned  long 
)

Definition at line 241 of file io.c.

void insl ( unsigned  long,
void ,
unsigned  long 
)

Definition at line 313 of file io.c.

void insw ( unsigned  long,
void ,
unsigned  long 
)

Definition at line 281 of file io.c.

void outsb ( unsigned  long,
const void ,
unsigned  long 
)

Definition at line 335 of file io.c.

void outsl ( unsigned  long,
const void ,
unsigned  long 
)

Definition at line 407 of file io.c.

void outsw ( unsigned  long,
const void ,
unsigned  long 
)

Definition at line 375 of file io.c.

Variable Documentation

unsigned long kern_base
unsigned long kern_size