Skip to content

Commit

Permalink
hv: pci: remove host bridge BDF definition
Browse files Browse the repository at this point in the history
We should check whether a PCI device is host bridge or not by Base Class (06h)
and Sub-Class (00h).

Tracked-On: projectacrn#4550
Signed-off-by: Li Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
  • Loading branch information
lifeix authored and wenlingz committed Jun 3, 2020
1 parent 7e5c286 commit 0bd2daf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion hypervisor/arch/x86/configs/whl-ipc-i5/pci_devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#define PTDEV_HI_MMIO_SIZE 0UL

#define HOST_BRIDGE .pbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U}
#define VGA_COMPATIBLE_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x02U, .f = 0x00U}, \
.vbar_base[0] = 0xa0000000UL, \
.vbar_base[2] = 0x90000000UL
Expand Down
1 change: 0 additions & 1 deletion hypervisor/include/hw/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
#define PCIR_AF_CTRL 0x4U
#define PCIM_AF_FLR 0x1U

#define HOST_BRIDGE_BDF 0U
#define PCI_STD_NUM_BARS 6U

union pci_bdf {
Expand Down

0 comments on commit 0bd2daf

Please sign in to comment.