HV: cleanup header files under hypervisor/dm

it removes hypervisor.h and just includes needed header files.

Tracked-On: #1842
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Minggui Cao 2019-02-25 16:44:07 +08:00 committed by wenlingz
parent e299553896
commit 3cb5542b0a
12 changed files with 46 additions and 12 deletions

View File

@ -30,7 +30,13 @@
#define pr_prefix "vioapic: "
#include <hypervisor.h>
#include <vm.h>
#include <errno.h>
#include <irq.h>
#include <assign.h>
#include <mem_mgt.h>
#include <pci.h>
#include <logmsg.h>
#define RTBL_RO_BITS ((uint32_t)0x00004000U | (uint32_t)0x00001000U) /*Remote IRR and Delivery Status bits*/

View File

@ -4,7 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <hypervisor.h>
#include <vm.h>
#include <per_cpu.h>
#include <mptable.h>
#include <default_acpi_info.h>
static struct mptable_info mptable_template = {
.mpfp = {

View File

@ -27,7 +27,7 @@
* $FreeBSD$
*/
#include <hypervisor.h>
#include <vm.h>
#include "pci_priv.h"
uint32_t pci_vdev_read_cfg(const struct pci_vdev *vdev, uint32_t offset, uint32_t bytes)

View File

@ -34,7 +34,9 @@
* Series Host Bridge (rev 0b)
*/
#include <hypervisor.h>
#include <vm.h>
#include <errno.h>
#include <pci.h>
#include "pci_priv.h"
static int32_t vdev_hostbridge_init(struct pci_vdev *vdev)

View File

@ -27,7 +27,11 @@
* $FreeBSD$
*/
#include <hypervisor.h>
#include <vm.h>
#include <errno.h>
#include <ptdev.h>
#include <assign.h>
#include <vpci.h>
#include "pci_priv.h"
static inline bool msicap_access(const struct pci_vdev *vdev, uint32_t offset)

View File

@ -27,7 +27,15 @@
* $FreeBSD$
*/
#include <hypervisor.h>
#include <vm.h>
#include <errno.h>
#include <ptdev.h>
#include <assign.h>
#include <vpci.h>
#include <io.h>
#include <ept.h>
#include <mmu.h>
#include <logmsg.h>
#include "pci_priv.h"
static inline bool msixcap_access(const struct pci_vdev *vdev, uint32_t offset)

View File

@ -29,7 +29,8 @@
/* Virtual PCI device related operations (read/write, etc) */
#include <hypervisor.h>
#include <vm.h>
#include <logmsg.h>
#include "pci_priv.h"
static struct pci_vdev *partition_mode_find_vdev(struct acrn_vpci *vpci, union pci_bdf vbdf)

View File

@ -29,8 +29,12 @@
/* Passthrough PCI device related operations */
#include <hypervisor.h>
#include <vm.h>
#include <errno.h>
#include <vtd.h>
#include <ept.h>
#include <mmu.h>
#include <logmsg.h>
#include "pci_priv.h"
static inline uint32_t pci_bar_base(uint32_t bar)

View File

@ -27,7 +27,9 @@
* $FreeBSD$
*/
#include <hypervisor.h>
#include <vm.h>
#include <errno.h>
#include <logmsg.h>
#include "pci_priv.h"
static uint32_t num_pci_vdev;

View File

@ -27,7 +27,7 @@
* $FreeBSD$
*/
#include <hypervisor.h>
#include <vm.h>
#include "pci_priv.h"
static void pci_cfg_clear_cache(struct pci_addr_info *pi)

View File

@ -27,7 +27,10 @@
#define pr_prefix "vpic: "
#include <hypervisor.h>
#include <vm.h>
#include <irq.h>
#include <assign.h>
#include <logmsg.h>
#define ACRN_DBG_PIC 6U

View File

@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <hypervisor.h>
#include <vm.h>
#include <io.h>
#define CMOS_ADDR_PORT 0x70U
#define CMOS_DATA_PORT 0x71U