加入收藏
举报
当前仅显示指定条件回帖 [ 展开查看全部 ]
02-14 20:02
#
文件名称:
osal_io-h.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
6.06 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# osal\_io.h
## **Overview**
**Related Modules:**
[OSAL](OSAL.md)
**Description:**
Declares I/O interfaces.
This file provides operations, such as reading data from and writing data into an I/O address space, remapping an I/O address space to its virtual address space, and unmapping an I/O virtual address associated with the physical address.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Macros
























Macro Name and Value


Description


OSAL_WRITEB(value, address)   writeb(value, address)


Writes one byte of data into an I/O address space.


OSAL_WRITEW(value, address)   writew(value, address)


Writes a short integer into an I/O address space.


OSAL_WRITEL(value, address)   writel(value, address)


Writes an integer into an I/O address space.


OSAL_READB(address)   readb(address)


Reads one byte of data from an I/O address space.


OSAL_READW(address)   readw(address)


Reads a short integer from an I/O address space.


OSAL_READL(address)   readl(address)


Reads an integer from an I/O address space.



## Functions












Function Name


Description


OsalIoRemap (unsigned long phys_addr, unsigned long size)


static void * 


Remaps an I/O physical address to its virtual address.


OsalIoUnmap (void *addr)


static void 


Unmaps an I/O virtual address associated with the physical address.


点赞 回复
回帖
支持markdown部分语法 ?