mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
hv: create new file core.c and pci.c
- move the functions to access physical PCI configuration space from pci_pt.c to the new file dm/hw/pci.c, so they can be accessed in sharing mode as well. The new folder dm/hw is created in order to move APIs talking to physical PCI devices out of dm/vpci. - move the common vpci code from header file pci_priv.h to core.c. - move file include/dm/vpci/vpci.h one level up. It seems the folder include/dm/vpci is not necessary. - This patch only moves code around, and doesn't make any logical changes. Besides removes the static keyword from pci_pdev_read_cfg() and pci_pdev_write_cfg() Tracked-On: #1568 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Reviewed-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -100,7 +100,6 @@ INCLUDE_PATH += include/arch/x86/guest
|
||||
INCLUDE_PATH += include/debug
|
||||
INCLUDE_PATH += include/public
|
||||
ifeq ($(CONFIG_PARTITION_MODE),y)
|
||||
INCLUDE_PATH += include/dm/vpci
|
||||
INCLUDE_PATH += include/dm
|
||||
endif
|
||||
INCLUDE_PATH += bsp/include
|
||||
@@ -183,6 +182,7 @@ C_SRCS += dm/vioapic.c
|
||||
ifeq ($(CONFIG_PARTITION_MODE),y)
|
||||
C_SRCS += $(wildcard dm/vpci/*.c)
|
||||
C_SRCS += $(wildcard partition/*.c)
|
||||
C_SRCS += dm/hw/pci.c
|
||||
C_SRCS += dm/vrtc.c
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user