mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
hv: mod: do not use explicit arch name when including headers
Instead of "#include <x86/foo.h>", use "#include <asm/foo.h>". In other words, we are adopting the same practice in Linux kernel. Tracked-On: #5920 Signed-off-by: Liang Yi <yi.liang@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
32
hypervisor/include/arch/x86/asm/rtcm.h
Normal file
32
hypervisor/include/arch/x86/asm/rtcm.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef RTCM_H
|
||||
#define RTCM_H
|
||||
|
||||
#include <asm/rtct.h>
|
||||
|
||||
#define MSABI __attribute__((ms_abi))
|
||||
|
||||
typedef int32_t MSABI(*rtcm_abi_func)(uint32_t command, void *command_struct);
|
||||
|
||||
#define RTCM_CMD_INIT_SOFTWARE_SRAM (int32_t)1U
|
||||
#define RTCM_CMD_CPUID (int32_t)2U
|
||||
#define RTCM_CMD_RDMSR (int32_t)3U
|
||||
#define RTCM_CMD_WRMSR (int32_t)4U
|
||||
|
||||
#define RTCM_MAGIC 0x5054434dU
|
||||
|
||||
struct rtcm_header {
|
||||
uint32_t magic;
|
||||
uint32_t version;
|
||||
uint64_t command_offset;
|
||||
} __packed;
|
||||
|
||||
bool init_software_sram(bool is_bsp);
|
||||
void set_rtct_tbl(void *rtct_tbl_addr);
|
||||
bool is_software_sram_enabled(void);
|
||||
#endif /* RTCM_H */
|
||||
Reference in New Issue
Block a user