mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
HV: use the cached pci device info for sharing mode
Tracked-On: #2431 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Reviewed-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
e0f9d14011
commit
983b717a61
@@ -179,8 +179,7 @@ struct pci_pdev {
|
||||
struct pci_msix_cap msix;
|
||||
};
|
||||
|
||||
|
||||
typedef void (*pci_enumeration_cb)(uint16_t pbdf, const void *data);
|
||||
typedef void (*pci_pdev_enumeration_cb)(const struct pci_pdev *pdev, const void *data);
|
||||
|
||||
static inline uint32_t pci_bar_offset(uint32_t idx)
|
||||
{
|
||||
@@ -195,7 +194,7 @@ static inline bool pci_bar_access(uint32_t offset)
|
||||
&& (offset < pci_bar_offset(PCI_BAR_COUNT))) {
|
||||
ret = true;
|
||||
} else {
|
||||
ret = false;
|
||||
ret = false;
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -225,7 +224,7 @@ uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes);
|
||||
void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
|
||||
void enable_disable_pci_intx(union pci_bdf bdf, bool enable);
|
||||
|
||||
void pci_scan_bus(pci_enumeration_cb cb, const void *cb_data);
|
||||
void pci_pdev_foreach(pci_pdev_enumeration_cb cb, const void *ctx);
|
||||
void init_pci_pdev_list(void);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user