Skip to content

Commit

Permalink
SRAT: Add RISC-V RINTC affinity structure
Browse files Browse the repository at this point in the history
Add definition of RISC-V Interrupt Controller(RINTC)
affinity structure which was approved by UEFI forum
and will be part of next ACPI spec version(6.6).

Reference: Mantis ID: 2433

Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
  • Loading branch information
xiaobo55x committed Jan 17, 2024
1 parent a6a236c commit 93caddb
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion source/include/actbl3.h
Expand Up @@ -353,7 +353,8 @@ enum AcpiSratType
ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */
ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, /* ACPI 6.3 */
ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY = 6, /* ACPI 6.4 */
ACPI_SRAT_TYPE_RESERVED = 7 /* 7 and greater are reserved */
ACPI_SRAT_TYPE_RINTC_AFFINITY = 7, /* ACPI 6.6 */
ACPI_SRAT_TYPE_RESERVED = 8 /* 8 and greater are reserved */
};

/*
Expand Down Expand Up @@ -473,6 +474,23 @@ typedef struct acpi_srat_generic_affinity
#define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) /* 00: Use affinity structure */
#define ACPI_SRAT_ARCHITECTURAL_TRANSACTIONS (1<<1) /* ACPI 6.4 */

/* 7: RINTC Affinity Structure(ACPI 6.6) */

typedef struct acpi_srat_rintc_affinity
{
ACPI_SUBTABLE_HEADER Header;
UINT16 Reserved;
UINT32 ProximityDomain;
UINT32 AcpiProcessorUid;
UINT32 Flags;
UINT32 ClockDomain;

} ACPI_SRAT_RINTC_AFFINITY;

/* Flags for ACPI_SRAT_RINTC_AFFINITY */

#define ACPI_SRAT_RINTC_ENABLED (1) /* 00: Use affinity structure */

/*******************************************************************************
*
* STAO - Status Override Table (_STA override) - ACPI 6.0
Expand Down

0 comments on commit 93caddb

Please sign in to comment.