mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-25 06:51:49 +00:00
hv: move mem_regions to ivshmem.c
This is a bug fix that avoids multiple declarations of mem_regions Tracked-On: #4853 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
a46aa9db4c
commit
38e2903770
@ -28,6 +28,10 @@
|
|||||||
#define IVSHMEM_IV_POS_REG 0x8U
|
#define IVSHMEM_IV_POS_REG 0x8U
|
||||||
#define IVSHMEM_DOORBELL_REG 0xcU
|
#define IVSHMEM_DOORBELL_REG 0xcU
|
||||||
|
|
||||||
|
static struct ivshmem_shm_region mem_regions[8] = {
|
||||||
|
IVSHMEM_SHM_REGIONS
|
||||||
|
};
|
||||||
|
|
||||||
struct ivshmem_device {
|
struct ivshmem_device {
|
||||||
struct pci_vdev* pcidev;
|
struct pci_vdev* pcidev;
|
||||||
union {
|
union {
|
||||||
|
@ -19,11 +19,10 @@
|
|||||||
|
|
||||||
/* All user defined memory regions */
|
/* All user defined memory regions */
|
||||||
|
|
||||||
struct ivshmem_shm_region mem_regions[] = {
|
#define IVSHMEM_SHM_REGIONS \
|
||||||
{
|
{ \
|
||||||
.name = IVSHMEM_SHM_REGION_0,
|
.name = IVSHMEM_SHM_REGION_0,\
|
||||||
.size = 0x200000UL, /* 2M */
|
.size = 0x200000UL, /* 2MB */\
|
||||||
},
|
},
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* IVSHMEM_CFG_H */
|
#endif /* IVSHMEM_CFG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user