Intel Extensible Firmware Interface User Manual

Page 763

Advertising
background image

Protocols — Device I/O Protocol

Version 1.10

12/01/02

18-3

Unmap

Releases any resources allocated by

Map()

. See the

Unmap()

function

description.

AllocateBuffer

Allocates pages that are suitable for a common buffer mapping. See the

AllocateBuffer()

function description.

Flush

Flushes any posted write data to the device. See the

Flush()

function

description.

FreeBuffer

Free pages that were allocated with

AllocateBuffer()

. See the

FreeBuffer()

function description.

Related Definitions

//*******************************************************
// EFI_IO_WIDTH
//*******************************************************

typedef enum {

IO_UINT8

= 0,

IO_UINT16 = 1,

IO_UINT32 = 2,

IO_UINT64 = 3

} EFI_IO_WIDTH;

//*******************************************************
// EFI_DEVICE_IO
//*******************************************************

typedef

EFI_STATUS

(EFIAPI *EFI_DEVICE_IO) (

IN struct _EFI_DEVICE_IO_INTERFACE

*This,

IN EFI_IO_WIDTH

Width,

IN UINT64

Address,

IN UINTN

Count,

IN OUT VOID

*Buffer

);

//*******************************************************
// EFI_IO_ACCESS
//*******************************************************

typedef struct {

EFI_DEVICE_IO

Read;

EFI_DEVICE_IO

Write;

} EFI_IO_ACCESS;

Advertising