mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-03 09:55:01 +00:00
HV: declare and export vpci ops functions as global instead of static local
In preparation for vpci ops function removal, so that these functions can be called directly instead by vpci code Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -91,7 +91,7 @@ static void partition_mode_pdev_init(struct pci_vdev *vdev, union pci_bdf pbdf)
|
||||
* @pre vm != NULL
|
||||
* @pre vm->vpci.pci_vdev_cnt <= CONFIG_MAX_PCI_DEV_NUM
|
||||
*/
|
||||
static int32_t partition_mode_vpci_init(const struct acrn_vm *vm)
|
||||
int32_t partition_mode_vpci_init(const struct acrn_vm *vm)
|
||||
{
|
||||
struct acrn_vpci *vpci = (struct acrn_vpci *)&(vm->vpci);
|
||||
struct pci_vdev *vdev;
|
||||
@@ -121,7 +121,7 @@ static int32_t partition_mode_vpci_init(const struct acrn_vm *vm)
|
||||
* @pre vm != NULL
|
||||
* @pre vm->vpci.pci_vdev_cnt <= CONFIG_MAX_PCI_DEV_NUM
|
||||
*/
|
||||
static void partition_mode_vpci_deinit(const struct acrn_vm *vm)
|
||||
void partition_mode_vpci_deinit(const struct acrn_vm *vm)
|
||||
{
|
||||
struct pci_vdev *vdev;
|
||||
uint32_t i;
|
||||
@@ -137,7 +137,7 @@ static void partition_mode_vpci_deinit(const struct acrn_vm *vm)
|
||||
}
|
||||
}
|
||||
|
||||
static void partition_mode_cfgread(struct acrn_vpci *vpci, union pci_bdf vbdf,
|
||||
void partition_mode_cfgread(struct acrn_vpci *vpci, union pci_bdf vbdf,
|
||||
uint32_t offset, uint32_t bytes, uint32_t *val)
|
||||
{
|
||||
struct pci_vdev *vdev = pci_find_vdev_by_vbdf(vpci, vbdf);
|
||||
@@ -155,7 +155,7 @@ static void partition_mode_cfgread(struct acrn_vpci *vpci, union pci_bdf vbdf,
|
||||
}
|
||||
}
|
||||
|
||||
static void partition_mode_cfgwrite(struct acrn_vpci *vpci, union pci_bdf vbdf,
|
||||
void partition_mode_cfgwrite(struct acrn_vpci *vpci, union pci_bdf vbdf,
|
||||
uint32_t offset, uint32_t bytes, uint32_t val)
|
||||
{
|
||||
struct pci_vdev *vdev = pci_find_vdev_by_vbdf(vpci, vbdf);
|
||||
|
@@ -42,7 +42,7 @@ static struct pci_vdev *sharing_mode_find_vdev_sos(union pci_bdf pbdf)
|
||||
return pci_find_vdev_by_pbdf(&vm->vpci, pbdf);
|
||||
}
|
||||
|
||||
static void sharing_mode_cfgread(__unused struct acrn_vpci *vpci, union pci_bdf bdf,
|
||||
void sharing_mode_cfgread(__unused struct acrn_vpci *vpci, union pci_bdf bdf,
|
||||
uint32_t offset, uint32_t bytes, uint32_t *val)
|
||||
{
|
||||
struct pci_vdev *vdev;
|
||||
@@ -62,7 +62,7 @@ static void sharing_mode_cfgread(__unused struct acrn_vpci *vpci, union pci_bdf
|
||||
}
|
||||
}
|
||||
|
||||
static void sharing_mode_cfgwrite(__unused struct acrn_vpci *vpci, union pci_bdf bdf,
|
||||
void sharing_mode_cfgwrite(__unused struct acrn_vpci *vpci, union pci_bdf bdf,
|
||||
uint32_t offset, uint32_t bytes, uint32_t val)
|
||||
{
|
||||
struct pci_vdev *vdev;
|
||||
@@ -105,7 +105,7 @@ static void init_vdev_for_pdev(struct pci_pdev *pdev, const void *vm)
|
||||
}
|
||||
}
|
||||
|
||||
static int32_t sharing_mode_vpci_init(const struct acrn_vm *vm)
|
||||
int32_t sharing_mode_vpci_init(const struct acrn_vm *vm)
|
||||
{
|
||||
int32_t ret = -ENODEV;
|
||||
|
||||
@@ -126,7 +126,7 @@ static int32_t sharing_mode_vpci_init(const struct acrn_vm *vm)
|
||||
* @pre vm != NULL
|
||||
* @pre vm->vpci.pci_vdev_cnt <= CONFIG_MAX_PCI_DEV_NUM
|
||||
*/
|
||||
static void sharing_mode_vpci_deinit(const struct acrn_vm *vm)
|
||||
void sharing_mode_vpci_deinit(const struct acrn_vm *vm)
|
||||
{
|
||||
struct pci_vdev *vdev;
|
||||
uint32_t i;
|
||||
|
Reference in New Issue
Block a user