acrn-hypervisor/hypervisor/include/arch
Alexander Merritt ef2d43d544 HV: add DRHD index to pci_pdev
We add new member pci_pdev.drhd_idx associating the DRHD
(IOMMU) with this pdev, and a method to convert a pbdf of a device to
this index by searching the pdev list.

Partial patch: drhd_index initialization handled in subsequent patch.

v3->v2
        Renamed drhd_idx to drhd_index in pci_pdev struct
	Introduced a macro INVALID_DRHD_INDEX set to 0xFFFFFFFFU

v2-> v1
	Remove (index == -1U) from loop control expression
	to follow MISRA-C

Tracked-On: #4134
Signed-off-by: Alexander Merritt <alex.merritt@intel.com>
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
2019-12-10 09:52:17 +08:00
..
x86 HV: add DRHD index to pci_pdev 2019-12-10 09:52:17 +08:00