beautypg.com

Efi_pci_io_protocol.setbarattributes(), Bar using, Setbarattributes() – Intel Extensible Firmware Interface User Manual

Page 510: And r, Ll can be made to

background image

Extensible Firmware Interface Specification

12-92

12/01/02

Version 1.10

EFI_PCI_IO_PROTOCOL.SetBarAttributes()

Summary

Sets the attributes for a range of a BAR on a PCI controller.

Prototype

typedef
EFI_STATUS
(EFIAPI *EFI_PCI_IO_PROTOCOL_SET_BAR_ATTRIBUTES) (
IN EFI_PCI_IO_PROTOCOL

*This,

IN UINT64

Attributes,

IN UINT8

BarIndex,

IN OUT UINT64

*Offset,

IN OUT UINT64

*Length

);

Parameters

This

A pointer to the

EFI_PCI_IO_PROTOCOL

instance. Type

EFI_PCI_IO_PROTOCOL

is defined in Section 12.4.

Attributes

The mask of attributes to set for the resource range specified by

BarIndex

,

Offset

, and

Length

.

BarIndex

The BAR index of the standard PCI Configuration header to use as
the base address for the resource range. The legal range for this
field is 0..5.

Offset

A pointer to the BAR relative base address of the resource range to
be modified by the attributes specified by

Attributes

. On

return,

*Offset

will be set to the actual base address of the

resource range. Not all resources can be set to a byte boundary, so
the actual base address may differ from the one passed in by the
caller.

Length

A pointer to the length of the resource range to be modified by the
attributes specified by

Attributes

. On return,

*Length

will

be set to the actual length of the resource range. Not all resources
can be set to a byte boundary, so the actual length may differ from
the one passed in by the caller.