Protocols — PCI Bus Support
Version 1.10 12/01/02 12-75
EFI_PCI_IO_PROTOCOL.CopyMem()
Summary
Enables a PCI driver to copy one region of PCI memory space to another region of PCI
memory space.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_PCI_IO_PROTOCOL_COPY_MEM) (
IN EFI_PCI_IO_PROTOCOL *This,
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
IN UINT8 DestBarIndex,
IN UINT64 DestOffset,
IN UINT8 SrcBarIndex,
IN UINT64 SrcOffset,
IN UINTN Count
);
Parameters
This A pointer to the EFI_PCI_IO_PROTOCOL instance. Type
EFI_PCI_IO_PROTOCOL is defined in Section 12.4.
Width Signifies the width of the memory operations. Type
EFI_PCI_IO_PROTOCOL_WIDTH
is defined in Section 12.4.
DestBarIndex The BAR index in the standard PCI Configuration header to use as
the base address for the memory operation to perform. This allows
all drivers to use BAR relative addressing. The legal range for this
field is 0..5. However, the value
EFI_PCI_IO_PASS_THROUGH_BAR
can be used to bypass the
BAR relative addressing and pass Offset to the PCI Root Bridge
I/O Protocol unchanged. Type
EFI_PCI_IO_PASS_THROUGH_BAR is defined in Section 12.4.
DestOffset The destination offset within the BAR specified by
DestBarIndex to start the memory writes for the copy
operation. The caller is responsible for aligning the DestOffset
if required.