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

Go to the source code of this file.

Functions

unsigned int ioread8 (void __iomem *addr)
 
unsigned int ioread16 (void __iomem *addr)
 
unsigned int ioread32 (void __iomem *addr)
 
void iowrite8 (u8 b, void __iomem *addr)
 
void iowrite16 (u16 b, void __iomem *addr)
 
void iowrite32 (u32 b, void __iomem *addr)
 
 EXPORT_SYMBOL (ioread8)
 
 EXPORT_SYMBOL (ioread16)
 
 EXPORT_SYMBOL (ioread32)
 
 EXPORT_SYMBOL (iowrite8)
 
 EXPORT_SYMBOL (iowrite16)
 
 EXPORT_SYMBOL (iowrite32)
 
u8 inb (unsigned long port)
 
u16 inw (unsigned long port)
 
u32 inl (unsigned long port)
 
void outb (u8 b, unsigned long port)
 
void outw (u16 b, unsigned long port)
 
void outl (u32 b, unsigned long port)
 
 EXPORT_SYMBOL (inb)
 
 EXPORT_SYMBOL (inw)
 
 EXPORT_SYMBOL (inl)
 
 EXPORT_SYMBOL (outb)
 
 EXPORT_SYMBOL (outw)
 
 EXPORT_SYMBOL (outl)
 
u8 __raw_readb (const volatile void __iomem *addr)
 
u16 __raw_readw (const volatile void __iomem *addr)
 
u32 __raw_readl (const volatile void __iomem *addr)
 
u64 __raw_readq (const volatile void __iomem *addr)
 
void __raw_writeb (u8 b, volatile void __iomem *addr)
 
void __raw_writew (u16 b, volatile void __iomem *addr)
 
void __raw_writel (u32 b, volatile void __iomem *addr)
 
void __raw_writeq (u64 b, volatile void __iomem *addr)
 
 EXPORT_SYMBOL (__raw_readb)
 
 EXPORT_SYMBOL (__raw_readw)
 
 EXPORT_SYMBOL (__raw_readl)
 
 EXPORT_SYMBOL (__raw_readq)
 
 EXPORT_SYMBOL (__raw_writeb)
 
 EXPORT_SYMBOL (__raw_writew)
 
 EXPORT_SYMBOL (__raw_writel)
 
 EXPORT_SYMBOL (__raw_writeq)
 
u8 readb (const volatile void __iomem *addr)
 
u16 readw (const volatile void __iomem *addr)
 
u32 readl (const volatile void __iomem *addr)
 
u64 readq (const volatile void __iomem *addr)
 
void writeb (u8 b, volatile void __iomem *addr)
 
void writew (u16 b, volatile void __iomem *addr)
 
void writel (u32 b, volatile void __iomem *addr)
 
void writeq (u64 b, volatile void __iomem *addr)
 
 EXPORT_SYMBOL (readb)
 
 EXPORT_SYMBOL (readw)
 
 EXPORT_SYMBOL (readl)
 
 EXPORT_SYMBOL (readq)
 
 EXPORT_SYMBOL (writeb)
 
 EXPORT_SYMBOL (writew)
 
 EXPORT_SYMBOL (writel)
 
 EXPORT_SYMBOL (writeq)
 
void ioread8_rep (void __iomem *port, void *dst, unsigned long count)
 
void insb (unsigned long port, void *dst, unsigned long count)
 
 EXPORT_SYMBOL (ioread8_rep)
 
 EXPORT_SYMBOL (insb)
 
void ioread16_rep (void __iomem *port, void *dst, unsigned long count)
 
void insw (unsigned long port, void *dst, unsigned long count)
 
 EXPORT_SYMBOL (ioread16_rep)
 
 EXPORT_SYMBOL (insw)
 
void ioread32_rep (void __iomem *port, void *dst, unsigned long count)
 
void insl (unsigned long port, void *dst, unsigned long count)
 
 EXPORT_SYMBOL (ioread32_rep)
 
 EXPORT_SYMBOL (insl)
 
void iowrite8_rep (void __iomem *port, const void *xsrc, unsigned long count)
 
void outsb (unsigned long port, const void *src, unsigned long count)
 
 EXPORT_SYMBOL (iowrite8_rep)
 
 EXPORT_SYMBOL (outsb)
 
void iowrite16_rep (void __iomem *port, const void *src, unsigned long count)
 
void outsw (unsigned long port, const void *src, unsigned long count)
 
 EXPORT_SYMBOL (iowrite16_rep)
 
 EXPORT_SYMBOL (outsw)
 
void iowrite32_rep (void __iomem *port, const void *src, unsigned long count)
 
void outsl (unsigned long port, const void *src, unsigned long count)
 
 EXPORT_SYMBOL (iowrite32_rep)
 
 EXPORT_SYMBOL (outsl)
 
void memcpy_fromio (void *to, const volatile void __iomem *from, long count)
 
 EXPORT_SYMBOL (memcpy_fromio)
 
void memcpy_toio (volatile void __iomem *to, const void *from, long count)
 
 EXPORT_SYMBOL (memcpy_toio)
 
void _memset_c_io (volatile void __iomem *to, unsigned long c, long count)
 
 EXPORT_SYMBOL (_memset_c_io)
 
void scr_memcpyw (u16 *d, const u16 *s, unsigned int count)
 
 EXPORT_SYMBOL (scr_memcpyw)
 
void __iomemioport_map (unsigned long port, unsigned int size)
 
void ioport_unmap (void __iomem *addr)
 
 EXPORT_SYMBOL (ioport_map)
 
 EXPORT_SYMBOL (ioport_unmap)
 

Function Documentation

u8 __raw_readb ( const volatile void __iomem addr)

Definition at line 99 of file io.c.

u32 __raw_readl ( const volatile void __iomem addr)

Definition at line 109 of file io.c.

u64 __raw_readq ( const volatile void __iomem addr)

Definition at line 114 of file io.c.

u16 __raw_readw ( const volatile void __iomem addr)

Definition at line 104 of file io.c.

void __raw_writeb ( u8  b,
volatile void __iomem addr 
)

Definition at line 119 of file io.c.

void __raw_writel ( u32  b,
volatile void __iomem addr 
)

Definition at line 129 of file io.c.

void __raw_writeq ( u64  b,
volatile void __iomem addr 
)

Definition at line 134 of file io.c.

void __raw_writew ( u16  b,
volatile void __iomem addr 
)

Definition at line 124 of file io.c.

void _memset_c_io ( volatile void __iomem to,
unsigned long  c,
long  count 
)

Definition at line 528 of file io.c.

EXPORT_SYMBOL ( ioread8  )
EXPORT_SYMBOL ( ioread16  )
EXPORT_SYMBOL ( ioread32  )
EXPORT_SYMBOL ( iowrite8  )
EXPORT_SYMBOL ( iowrite16  )
EXPORT_SYMBOL ( iowrite32  )
EXPORT_SYMBOL ( inb  )
EXPORT_SYMBOL ( inw  )
EXPORT_SYMBOL ( inl  )
EXPORT_SYMBOL ( outb  )
EXPORT_SYMBOL ( outw  )
EXPORT_SYMBOL ( outl  )
EXPORT_SYMBOL ( __raw_readb  )
EXPORT_SYMBOL ( __raw_readw  )
EXPORT_SYMBOL ( __raw_readl  )
EXPORT_SYMBOL ( __raw_readq  )
EXPORT_SYMBOL ( __raw_writeb  )
EXPORT_SYMBOL ( __raw_writew  )
EXPORT_SYMBOL ( __raw_writel  )
EXPORT_SYMBOL ( __raw_writeq  )
EXPORT_SYMBOL ( readb  )
EXPORT_SYMBOL ( readw  )
EXPORT_SYMBOL ( readl  )
EXPORT_SYMBOL ( readq  )
EXPORT_SYMBOL ( writeb  )
EXPORT_SYMBOL ( writew  )
EXPORT_SYMBOL ( writel  )
EXPORT_SYMBOL ( writeq  )
EXPORT_SYMBOL ( ioread8_rep  )
EXPORT_SYMBOL ( insb  )
EXPORT_SYMBOL ( ioread16_rep  )
EXPORT_SYMBOL ( insw  )
EXPORT_SYMBOL ( ioread32_rep  )
EXPORT_SYMBOL ( insl  )
EXPORT_SYMBOL ( iowrite8_rep  )
EXPORT_SYMBOL ( outsb  )
EXPORT_SYMBOL ( iowrite16_rep  )
EXPORT_SYMBOL ( outsw  )
EXPORT_SYMBOL ( iowrite32_rep  )
EXPORT_SYMBOL ( outsl  )
EXPORT_SYMBOL ( memcpy_fromio  )
EXPORT_SYMBOL ( memcpy_toio  )
EXPORT_SYMBOL ( _memset_c_io  )
EXPORT_SYMBOL ( scr_memcpyw  )
EXPORT_SYMBOL ( ioport_map  )
EXPORT_SYMBOL ( ioport_unmap  )
u8 inb ( unsigned long  port)

Definition at line 62 of file io.c.

u32 inl ( unsigned long  port)

Definition at line 72 of file io.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.

u16 inw ( unsigned long  port)

Definition at line 67 of file io.c.

void __iomem* ioport_map ( unsigned long  port,
unsigned int  size 
)

Definition at line 620 of file io.c.

void ioport_unmap ( void __iomem addr)

Definition at line 625 of file io.c.

unsigned int ioread16 ( void __iomem addr)

Definition at line 23 of file io.c.

void ioread16_rep ( void __iomem port,
void dst,
unsigned long  count 
)

Definition at line 256 of file io.c.

unsigned int ioread32 ( void __iomem addr)

Definition at line 30 of file io.c.

void ioread32_rep ( void __iomem port,
void dst,
unsigned long  count 
)

Definition at line 296 of file io.c.

unsigned int ioread8 ( void __iomem addr)

Definition at line 16 of file io.c.

void ioread8_rep ( void __iomem port,
void dst,
unsigned long  count 
)

Definition at line 213 of file io.c.

void iowrite16 ( u16  b,
void __iomem addr 
)

Definition at line 43 of file io.c.

void iowrite16_rep ( void __iomem port,
const void src,
unsigned long  count 
)

Definition at line 350 of file io.c.

void iowrite32 ( u32  b,
void __iomem addr 
)

Definition at line 49 of file io.c.

void iowrite32_rep ( void __iomem port,
const void src,
unsigned long  count 
)

Definition at line 390 of file io.c.

void iowrite8 ( u8  b,
void __iomem addr 
)

Definition at line 37 of file io.c.

void iowrite8_rep ( void __iomem port,
const void xsrc,
unsigned long  count 
)

Definition at line 328 of file io.c.

void memcpy_fromio ( void to,
const volatile void __iomem from,
long  count 
)

Definition at line 420 of file io.c.

void memcpy_toio ( volatile void __iomem to,
const void from,
long  count 
)

Definition at line 474 of file io.c.

void outb ( u8  b,
unsigned long  port 
)

Definition at line 77 of file io.c.

void outl ( u32  b,
unsigned long  port 
)

Definition at line 87 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.

void outw ( u16  b,
unsigned long  port 
)

Definition at line 82 of file io.c.

u8 readb ( const volatile void __iomem addr)

Definition at line 148 of file io.c.

u32 readl ( const volatile void __iomem addr)

Definition at line 162 of file io.c.

u64 readq ( const volatile void __iomem addr)

Definition at line 169 of file io.c.

u16 readw ( const volatile void __iomem addr)

Definition at line 155 of file io.c.

void scr_memcpyw ( u16 d,
const u16 s,
unsigned int  count 
)

Definition at line 590 of file io.c.

void writeb ( u8  b,
volatile void __iomem addr 
)

Definition at line 176 of file io.c.

void writel ( u32  b,
volatile void __iomem addr 
)

Definition at line 188 of file io.c.

void writeq ( u64  b,
volatile void __iomem addr 
)

Definition at line 194 of file io.c.

void writew ( u16  b,
volatile void __iomem addr 
)

Definition at line 182 of file io.c.