mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: vpci: refine init_vdevs
Now almost the vPCI device information could be obtain from PCI device configure in VM configure. init_vdevs could make things more easier. And rename init_vdevs to vpci_init_vdevs, init_vdev to vpci_init_vdevs to avoid MISRA-C violations. Tracked-On: #3475 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Dongsheng Zhang <dongsheng.x.zhang@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
eb21f205e4
commit
599a058403
@@ -218,10 +218,6 @@ struct pci_pdev {
|
||||
struct pci_msix_cap msix;
|
||||
};
|
||||
|
||||
extern uint32_t num_pci_pdev;
|
||||
extern struct pci_pdev pci_pdev_array[CONFIG_MAX_PCI_DEV_NUM];
|
||||
|
||||
|
||||
static inline uint32_t pci_bar_offset(uint32_t idx)
|
||||
{
|
||||
return PCIR_BARS + (idx << 2U);
|
||||
|
Reference in New Issue
Block a user