From 0bd2daf1c5aa2b5822769c4da89afdc652ce4f8e Mon Sep 17 00:00:00 2001 From: Li Fei1 Date: Mon, 1 Jun 2020 16:27:55 +0800 Subject: [PATCH] hv: pci: remove host bridge BDF definition We should check whether a PCI device is host bridge or not by Base Class (06h) and Sub-Class (00h). Tracked-On: #4550 Signed-off-by: Li Fei1 Acked-by: Eddie Dong --- hypervisor/arch/x86/configs/whl-ipc-i5/pci_devices.h | 1 - hypervisor/include/hw/pci.h | 1 - 2 files changed, 2 deletions(-) diff --git a/hypervisor/arch/x86/configs/whl-ipc-i5/pci_devices.h b/hypervisor/arch/x86/configs/whl-ipc-i5/pci_devices.h index c7d59bcba..2ed946e45 100644 --- a/hypervisor/arch/x86/configs/whl-ipc-i5/pci_devices.h +++ b/hypervisor/arch/x86/configs/whl-ipc-i5/pci_devices.h @@ -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 diff --git a/hypervisor/include/hw/pci.h b/hypervisor/include/hw/pci.h index c594e77f8..345468421 100644 --- a/hypervisor/include/hw/pci.h +++ b/hypervisor/include/hw/pci.h @@ -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 {