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.