acrn-hypervisor/hypervisor/include/arch/x86/rtcm.h
Yonghua Huang a6420e8cfa hv: cleanup legacy terminologies in RTCM module
This patch updates below terminologies according
 to the latest TCC Spec:
  PTCT -> RTCT
  PTCM -> RTCM
  pSRAM -> Software SRAM

Tracked-On: #5649
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
2021-01-28 11:29:25 +08:00

33 lines
714 B
C

/*
* Copyright (C) 2020 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef RTCM_H
#define RTCM_H
#include <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;
extern volatile bool is_sw_sram_initialized;
void init_software_sram(bool is_bsp);
void set_rtct_tbl(void *rtct_tbl_addr);
#endif /* RTCM_H */