重新开始,做回自我,爱拼的男人最牛!
分类: LINUX
2010-02-02 14:25:34
readb :从 I/O 读取 8 位数据 ( 1 字节 );
readw :从 I/O 读取 16 位数据 ( 2 字节 );
readl :从 I/O 读取 32 位数据 ( 4 字节 );
writeb :从I/O 上写入 8 位数据 (1字节) ;
writew :从I/O 上写入 16 位数据 (2字节) ;
wirtel :从I/O 上写入 32 位数据 (4字节);
原型:
#include
unsigned char readb (unsigned int addr )
unsigned char readw (unsigned int addr )
unsigned char readl (unsigned int addr )
void writeb (unsigned char data, unsigned short addr)
void writew (unsigned char data, unsigned short addr)
void writel (unsigned char data, unsigned short addr)
变量:
addr:I/O地址
data:数据