mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +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
@@ -125,14 +125,6 @@ static inline bool msicap_access(const struct pci_vdev *vdev, uint32_t offset)
|
||||
return (has_msi_cap(vdev) && in_range(offset, vdev->msi.capoff, vdev->msi.caplen));
|
||||
}
|
||||
|
||||
/**
|
||||
* @pre vdev != NULL
|
||||
*/
|
||||
static inline bool is_hostbridge(const struct pci_vdev *vdev)
|
||||
{
|
||||
return (vdev->bdf.value == 0U);
|
||||
}
|
||||
|
||||
void init_vdev_pt(struct pci_vdev *vdev);
|
||||
void vdev_pt_read_cfg(const struct pci_vdev *vdev, uint32_t offset, uint32_t bytes, uint32_t *val);
|
||||
void vdev_pt_write_cfg(struct pci_vdev *vdev, uint32_t offset, uint32_t bytes, uint32_t val);
|
||||
|
||||
Reference in New Issue
Block a user