add SR-IOV support in EDK II.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9269 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -118,6 +118,27 @@ LocateCapabilityRegBlock (
|
||||
OUT UINT8 *NextRegBlock OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
Locate PciExpress capability register block per capability ID.
|
||||
|
||||
@param PciIoDevice A pointer to the PCI_IO_DEVICE.
|
||||
@param CapId The capability ID.
|
||||
@param Offset A pointer to the offset returned.
|
||||
@param NextRegBlock A pointer to the next block returned.
|
||||
|
||||
@retval EFI_SUCCESS Successfuly located capability register block.
|
||||
@retval EFI_UNSUPPORTED Pci device does not support capability.
|
||||
@retval EFI_NOT_FOUND Pci device support but can not find register block.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
LocatePciExpressCapabilityRegBlock (
|
||||
IN PCI_IO_DEVICE *PciIoDevice,
|
||||
IN UINT16 CapId,
|
||||
IN OUT UINT32 *Offset,
|
||||
OUT UINT32 *NextRegBlock OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
Macro that reads command register.
|
||||
|
||||
|
Reference in New Issue
Block a user