mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
HV: declare and export partition mode's vdev functions as global instead of static local
Export the following functions as global instead of static so that they can be called/referred outside of the files where they are declared: vdev_pt_init vdev_pt_deinit vdev_pt_cfgread vdev_pt_cfgwrite vdev_hostbridge_init vdev_hostbridge_deinit vdev_hostbridge_cfgread vdev_hostbridge_cfgwrite This is in preparation for removal of the partition modes vdev ops, and call them directly instead. 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:
@@ -39,7 +39,7 @@
|
||||
#include <pci.h>
|
||||
#include "pci_priv.h"
|
||||
|
||||
static int32_t vdev_hostbridge_init(struct pci_vdev *vdev)
|
||||
int32_t vdev_hostbridge_init(struct pci_vdev *vdev)
|
||||
{
|
||||
/* PCI config space */
|
||||
pci_vdev_write_cfg_u16(vdev, PCIR_VENDOR, (uint16_t)0x8086U);
|
||||
@@ -86,12 +86,12 @@ static int32_t vdev_hostbridge_init(struct pci_vdev *vdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int32_t vdev_hostbridge_deinit(__unused struct pci_vdev *vdev)
|
||||
int32_t vdev_hostbridge_deinit(__unused struct pci_vdev *vdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int32_t vdev_hostbridge_cfgread(const struct pci_vdev *vdev, uint32_t offset,
|
||||
int32_t vdev_hostbridge_cfgread(const struct pci_vdev *vdev, uint32_t offset,
|
||||
uint32_t bytes, uint32_t *val)
|
||||
{
|
||||
/* Assumption: access needed to be aligned on 1/2/4 bytes */
|
||||
@@ -105,7 +105,7 @@ static int32_t vdev_hostbridge_cfgread(const struct pci_vdev *vdev, uint32_t off
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int32_t vdev_hostbridge_cfgwrite(struct pci_vdev *vdev, uint32_t offset,
|
||||
int32_t vdev_hostbridge_cfgwrite(struct pci_vdev *vdev, uint32_t offset,
|
||||
uint32_t bytes, uint32_t val)
|
||||
{
|
||||
/* Assumption: access needed to be aligned on 1/2/4 bytes */
|
||||
|
||||
Reference in New Issue
Block a user