hv: vpci: add emulated PCI device configure for SOS

Add emulated PCI device configure for SOS to prepare for add support for customizing
special pci operations for each emulated PCI device.

Tracked-On: #3475
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2019-08-07 22:06:11 +08:00
committed by ACRN System Integration
parent 973ba5b63f
commit ff54fa2325
11 changed files with 73 additions and 36 deletions

View File

@@ -7,11 +7,13 @@
#ifndef PCI_DEV_H_
#define PCI_DEV_H_
#include <vpci.h>
#include <vm_config.h>
struct acrn_vm_config;
#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;
void fill_pci_dev_config(struct pci_pdev *pdev);
void initialize_sos_pci_dev_config(struct acrn_vm_config *vm_config);
#endif /* PCI_DEV_H_ */