#include <asm/io.h> #define ioremap(cookie,size) __arm_ioremap(cookie, size, MT_DEVICE) //cookie indicates the physical address, size indicates the mapping size. ioremap maps the specified physical address to an idle virtual address void __iomem * __arm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) { return __arm_ioremap_caller(phys_addr, size, mtype, __builtin_return_address(0)); } 1. Virtual address after mapping from physical address
2. ioread8(address)/readb() ioread16(address)/readw() ioread32(address)/readl() iowrite8(value, address) / writeb iowrite16(value, address) / writew iowrite32(value, address) / writel #include <asm/sizes.h> SZ_4K SZ_1M Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Tutorial on how to remotely connect to MySQL database under Linux system
>>: Example of downloading files with vue+django
This article uses an example to illustrate the us...
Table of contents 1. for loop 2. Double for loop ...
1. Compare the old virtual DOM with the new virtu...
This article mainly introduces the binary type op...
It is standard for websites to enable SSL nowaday...
Preface You should often see this kind of special...
The effect to be achieved is: fixed zoom in twice...
Copy code The code is as follows: <!--[if !IE]...
Table of contents 1. Flink Overview 1.1 Basic Int...
Learning objectives: Learn to use Windows system ...
Anyone who has used the Linux system should know ...
I recently came into contact with MySQL. Yesterda...
Table of contents 1. Scenario 2. Solution 3. Conc...
Solution: Directly in the directory where you dow...
Some projects have relatively simple business, bu...