#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
Table of contents event Page Loading Event Delega...
In the following example, when the width of the td...
1. Stop the MySQL service in the command line: ne...
Negative distance refers to empathy. Preface (rai...
CSS issues about background gradient and automati...
This article example shares the specific code of ...
Preface This article mainly introduces the releva...
It’s great to use CSS to realize various graphics...
Table of contents 1. Component Registration 2. Us...
When you first learn MySQL, you may not understan...
This article shares a dynamic loading progress ba...
This article shares the specific code for JavaScr...
Table of contents Preface 1. Array traversal meth...
There are some problems with the compressed versi...
Enter the mysql command: mysql -u+(user name) -p+...