Skip to content

Commit 003567a

Browse files
vlsunilrafaeljw
authored andcommitted
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: acpica/acpica@82afd043 Signed-off-by: Sunil V L <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f2ca92d commit 003567a

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

include/acpi/actbl2.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#define ACPI_SIG_PRMT "PRMT" /* Platform Runtime Mechanism Table */
4949
#define ACPI_SIG_RASF "RASF" /* RAS Feature table */
5050
#define ACPI_SIG_RGRT "RGRT" /* Regulatory Graphics Resource Table */
51+
#define ACPI_SIG_RHCT "RHCT" /* RISC-V Hart Capabilities Table */
5152
#define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */
5253
#define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */
5354
#define ACPI_SIG_SDEV "SDEV" /* Secure Devices table */
@@ -2720,6 +2721,53 @@ enum acpi_rgrt_image_type {
27202721
ACPI_RGRT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
27212722
};
27222723

2724+
/*******************************************************************************
2725+
*
2726+
* RHCT - RISC-V Hart Capabilities Table
2727+
* Version 1
2728+
*
2729+
******************************************************************************/
2730+
2731+
struct acpi_table_rhct {
2732+
struct acpi_table_header header; /* Common ACPI table header */
2733+
u32 reserved;
2734+
u64 time_base_freq;
2735+
u32 node_count;
2736+
u32 node_offset;
2737+
};
2738+
2739+
/*
2740+
* RHCT subtables
2741+
*/
2742+
struct acpi_rhct_node_header {
2743+
u16 type;
2744+
u16 length;
2745+
u16 revision;
2746+
};
2747+
2748+
/* Values for RHCT subtable Type above */
2749+
2750+
enum acpi_rhct_node_type {
2751+
ACPI_RHCT_NODE_TYPE_ISA_STRING = 0x0000,
2752+
ACPI_RHCT_NODE_TYPE_HART_INFO = 0xFFFF,
2753+
};
2754+
2755+
/*
2756+
* RHCT node specific subtables
2757+
*/
2758+
2759+
/* ISA string node structure */
2760+
struct acpi_rhct_isa_string {
2761+
u16 isa_length;
2762+
char isa[];
2763+
};
2764+
2765+
/* Hart Info node structure */
2766+
struct acpi_rhct_hart_info {
2767+
u16 num_offsets;
2768+
u32 uid; /* ACPI processor UID */
2769+
};
2770+
27232771
/*******************************************************************************
27242772
*
27252773
* SBST - Smart Battery Specification Table

0 commit comments

Comments
 (0)