Skip to content

Commit 74622d7

Browse files
shiqingglijinxia
authored andcommitted
hv: merge hv_lib.h and hypervisor.h
merge hv_lib.h and hypervisor.h into one file Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 3178ece commit 74622d7

File tree

11 files changed

+13
-53
lines changed

11 files changed

+13
-53
lines changed

hypervisor/arch/x86/guest/mptable.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hv_lib.h>
8-
#include <acrn_common.h>
9-
#include <hv_arch.h>
10-
#include <hv_debug.h>
11-
#include <bsp_extern.h>
12-
#include <mptable.h>
7+
#include <hypervisor.h>
138

149
#define MPTABLE_BASE 0xF0000U
1510

hypervisor/arch/x86/static_checks.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
6-
#include <hv_lib.h>
7-
#include <hv_arch.h>
6+
#include <hypervisor.h>
87
#include <vm0_boot.h>
98

109
#define CAT_(A,B) A ## B

hypervisor/dm/vpci/hostbridge.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
*/
3636

3737
#include <hypervisor.h>
38-
#include <hv_lib.h>
39-
#include <acrn_common.h>
40-
#include <hv_arch.h>
41-
#include <hv_debug.h>
4238
#include "pci_priv.h"
4339

4440
static int vdev_hostbridge_init(struct pci_vdev *vdev)

hypervisor/dm/vpci/pci_pt.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
/* Passthrough PCI device related operations */
3131

3232
#include <hypervisor.h>
33-
#include <hv_lib.h>
34-
#include <acrn_common.h>
35-
#include <hv_arch.h>
36-
#include <hv_debug.h>
3733
#include "pci_priv.h"
3834

3935

hypervisor/dm/vpci/pci_vdev.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
/* Virtual PCI device related operations (read/write, etc) */
3131

3232
#include <hypervisor.h>
33-
#include <hv_lib.h>
34-
#include <acrn_common.h>
35-
#include <hv_arch.h>
36-
#include <hv_debug.h>
37-
#include <acrn_hv_defs.h>
3833
#include "pci_priv.h"
3934

4035

hypervisor/dm/vpci/vpci.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
*/
2929

3030
#include <hypervisor.h>
31-
#include <hv_lib.h>
32-
#include <acrn_common.h>
33-
#include <hv_arch.h>
34-
#include <hv_debug.h>
3531
#include "pci_priv.h"
3632

3733

hypervisor/dm/vrtc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
*/
66

77
#include <hypervisor.h>
8-
#include <hv_lib.h>
9-
#include <acrn_common.h>
10-
#include <hv_arch.h>
11-
#include <hv_debug.h>
128

139
#define CMOS_ADDR_PORT 0x70U
1410
#define CMOS_DATA_PORT 0x71U

hypervisor/include/hv_lib.h

Lines changed: 0 additions & 21 deletions
This file was deleted.

hypervisor/include/hypervisor.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@
2222

2323
/* Include config header file containing config options */
2424
#include <types.h>
25+
#include <errno.h>
26+
#include <rtl.h>
27+
#include <spinlock.h>
28+
#include <mem_mgt.h>
29+
#include <util.h>
30+
#include <list.h>
31+
#include <atomic.h>
32+
#include <bits.h>
33+
#include <sprintf.h>
2534
#include "acrn_common.h"
2635
#include <acrn_hv_defs.h>
27-
#include <hv_lib.h>
2836
#include <hv_arch.h>
2937
#include <hv_debug.h>
3038

hypervisor/lib/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hv_lib.h>
7+
#include <hypervisor.h>
88

99
void udelay(uint32_t us)
1010
{

0 commit comments

Comments
 (0)