189 {
190 __raw_writel(b, addr);
191 mb();
192 }
130 {
131 IO_CONCAT(__IO_PREFIX,writel)(
132 }
135 #define _IO_CONCAT(a,b) a ## _ ## b
502 #define __IO_PREFIX apecs
件里面寻找答案。对于你的apsec,看看以下代码段(
arch/alpha/include/asm/core_
------------------------------
#undef __IO_PREFIX
#define __IO_PREFIX apecs
#define apecs_trivial_io_bw 0
#define apecs_trivial_io_lq 0
#define apecs_trivial_rw_bw 2
#define apecs_trivial_rw_lq 1
#define apecs_trivial_iounmap 1
#include <asm/io_trivial.h>
------------------------------
前往arch/alpha/include/asm/io_
------------------------------
__EXTERN_INLINE void
IO_CONCAT(__IO_PREFIX,writel)(
{
*(volatile u32 __force *)a = b;
}
来写入数据的。
writel()
#include
void
readl()
原型:
#include
unsigned
变量
返回值
定义
#define
#define
#define
#ifndef
static
{
}
#endif
#ifndef
static
{
}
#endif
#ifndef
static
{
}
#endif
#define
#define
#define