mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-04 14:36:55 +00:00
The DMAR info is board specific so move the structure definition to board.c. As a configruation file, the whole board.c could be generated by acrn-config tool for each board. Please note we only provide DMAR info MACROs for nuc7i7dnb board. For other boards, ACPI_PARSE_ENABLED must be set to y in Kconfig to let hypervisor parse DMAR info, or use acrn-config tool to generate DMAR info MACROs if user won't enable ACPI parse code for FuSa consideration. The patch also moves the function of get_dmar_info() to vtd.c, so dmar_info.c could be removed. Tracked-On: #3977 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
29 lines
600 B
C
29 lines
600 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef BOARD_H
|
|
#define BOARD_H
|
|
|
|
#include <types.h>
|
|
#include <host_pm.h>
|
|
|
|
/* forward declarations */
|
|
struct acrn_vm;
|
|
|
|
struct platform_clos_info {
|
|
uint32_t clos_mask;
|
|
uint32_t msr_index;
|
|
};
|
|
|
|
extern struct dmar_info plat_dmar_info;
|
|
extern struct platform_clos_info platform_clos_array[];
|
|
extern uint16_t platform_clos_num;
|
|
extern const struct cpu_state_table board_cpu_state_tbl;
|
|
|
|
/* board specific functions */
|
|
void create_prelaunched_vm_e820(struct acrn_vm *vm);
|
|
|
|
#endif /* BOARD_H */
|