1 Star 0 Fork 5.3K

OpenHarmony_EU incubator / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
osal_io-h.md 5.96 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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-harmony-eu-incubator/docs.git
git@gitee.com:open-harmony-eu-incubator/docs.git
open-harmony-eu-incubator
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891