ACPICA: Add structure definitions for RISC-V RHCT
ACPICA commit 82afd0434e79f74b96a6be88115ddc8343a1ba40 RISC-V Hart Capabilities Table (RHCT) is a new static table. The ECR to add RHCT is approved by the UEFI forum and will be available in the next version of the ACPI spec. Link: https://github.com/acpica/acpica/commit/82afd043 Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
f2ca92d083
commit
003567a3b7
1 changed files with 48 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
||||||
#define ACPI_SIG_PRMT "PRMT" /* Platform Runtime Mechanism Table */
|
#define ACPI_SIG_PRMT "PRMT" /* Platform Runtime Mechanism Table */
|
||||||
#define ACPI_SIG_RASF "RASF" /* RAS Feature table */
|
#define ACPI_SIG_RASF "RASF" /* RAS Feature table */
|
||||||
#define ACPI_SIG_RGRT "RGRT" /* Regulatory Graphics Resource Table */
|
#define ACPI_SIG_RGRT "RGRT" /* Regulatory Graphics Resource Table */
|
||||||
|
#define ACPI_SIG_RHCT "RHCT" /* RISC-V Hart Capabilities Table */
|
||||||
#define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
|
#define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
|
||||||
#define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */
|
#define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */
|
||||||
#define ACPI_SIG_SDEV "SDEV" /* Secure Devices table */
|
#define ACPI_SIG_SDEV "SDEV" /* Secure Devices table */
|
||||||
|
@ -2720,6 +2721,53 @@ enum acpi_rgrt_image_type {
|
||||||
ACPI_RGRT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
|
ACPI_RGRT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
*
|
||||||
|
* RHCT - RISC-V Hart Capabilities Table
|
||||||
|
* Version 1
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
struct acpi_table_rhct {
|
||||||
|
struct acpi_table_header header; /* Common ACPI table header */
|
||||||
|
u32 reserved;
|
||||||
|
u64 time_base_freq;
|
||||||
|
u32 node_count;
|
||||||
|
u32 node_offset;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RHCT subtables
|
||||||
|
*/
|
||||||
|
struct acpi_rhct_node_header {
|
||||||
|
u16 type;
|
||||||
|
u16 length;
|
||||||
|
u16 revision;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Values for RHCT subtable Type above */
|
||||||
|
|
||||||
|
enum acpi_rhct_node_type {
|
||||||
|
ACPI_RHCT_NODE_TYPE_ISA_STRING = 0x0000,
|
||||||
|
ACPI_RHCT_NODE_TYPE_HART_INFO = 0xFFFF,
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RHCT node specific subtables
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ISA string node structure */
|
||||||
|
struct acpi_rhct_isa_string {
|
||||||
|
u16 isa_length;
|
||||||
|
char isa[];
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Hart Info node structure */
|
||||||
|
struct acpi_rhct_hart_info {
|
||||||
|
u16 num_offsets;
|
||||||
|
u32 uid; /* ACPI processor UID */
|
||||||
|
};
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* SBST - Smart Battery Specification Table
|
* SBST - Smart Battery Specification Table
|
||||||
|
|
Loading…
Add table
Reference in a new issue