1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
osal_io-h.md 6.06 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

osal_io.h

Overview

Related Modules:

OSAL

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.

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助