acrn-hypervisor/hypervisor/include/arch/x86/board.h
Victor Sun 3411f00b5b HV: fix misra violation on platform clos array
MISRA C requires specified bounds for arrays declaration, previous declaration
of platform_clos_array in board.h does not meet the requirement.

Tracked-On: #3987

Signed-off-by: Victor Sun <victor.sun@intel.com>
2019-11-08 16:40:14 +08:00

29 lines
608 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 <misc_cfg.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[MAX_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 */