mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 09:41:30 +00:00
dm: export pci_emul_add_capability
pci_emul_add_capability is needed by virtio 1.0 framework to add pci vendor capability from outside of pci core. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -666,7 +666,7 @@ pci_emul_alloc_pbar(struct pci_vdev *pdi, int idx, uint64_t hostbase,
|
||||
}
|
||||
|
||||
#define CAP_START_OFFSET 0x40
|
||||
static int
|
||||
int
|
||||
pci_emul_add_capability(struct pci_vdev *dev, u_char *capdata, int caplen)
|
||||
{
|
||||
int i, capoff, reallen;
|
||||
|
||||
Reference in New Issue
Block a user