writel专题

Linux中readl和writel函数的使用方法

readX/writeX() are used to access memory mapped devices. On some  * architectures the memory mapped IO stuff needs to be accessed  * differently. On the simple architectures, we just read/write t

_raw_writel, writel_relaxed 和 writel的区别

因为对别的平台不了解,下面仅谈它们在ARM上的区别 __raw_writel: 因为有volatile关键字, 所以编译器不会打乱多个__raw_writel的执行顺序。 对于ARM而言,当多个写以代码的顺序到达相同设备时,执行的顺序也是被保证的,不过 对于不同的设备,执行的顺序就不被保证了。 write_relaxed: 在ARM平台上与__raw_writel一样,因为与__