hv: pci: check whether a PCI device is host bridge or not by class

According PCI Code and ID Assignment Specification Revision 1.11, a PCI device
whose Base Class is 06h and Sub-Class is 00h is a Host bridge.

Tracked-On: #4550
Signed-off-by: Li Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Li Fei1
2020-06-02 09:27:40 +08:00
committed by wenlingz
parent 0bd2daf1c5
commit b8f151a55f
6 changed files with 29 additions and 27 deletions

View File

@@ -9,8 +9,6 @@
#include <vm_config.h>
#define SOS_EMULATED_PCI_DEV_NUM 1U
extern struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
struct pci_pdev;