Werner Zeh has submitted this change. ( https://review.coreboot.org/c/coreboot/+/57887 )
Change subject: acpi: add macros for MSR and `unsupported` register resource types ......................................................................
acpi: add macros for MSR and `unsupported` register resource types
These will be used in the follow-up change.
Change-Id: I4723ffaf0adff8cb5b1717600ed4d1634768e2b7 Signed-off-by: Michael Niewöhner foss@mniewoehner.de Reviewed-on: https://review.coreboot.org/c/coreboot/+/57887 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Paul Menzel paulepanter@mailbox.org Reviewed-by: Nico Huber nico.h@gmx.de --- M src/include/acpi/acpi.h 1 file changed, 12 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Nico Huber: Looks good to me, approved Paul Menzel: Looks good to me, but someone else must approve
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h index 2c9af3a..e35accd 100644 --- a/src/include/acpi/acpi.h +++ b/src/include/acpi/acpi.h @@ -128,6 +128,18 @@ #define ACPI_ACCESS_SIZE_DWORD_ACCESS 3 #define ACPI_ACCESS_SIZE_QWORD_ACCESS 4
+/* Macros for common resource types */ +#define ACPI_REG_MSR(address, offset, width) \ + { \ + .space_id = ACPI_ADDRESS_SPACE_FIXED, \ + .access_size = ACPI_ACCESS_SIZE_QWORD_ACCESS, \ + .addrl = address, \ + .bit_offset = offset, \ + .bit_width = width, \ + } + +#define ACPI_REG_UNSUPPORTED {0} + /* Common ACPI HIDs */ #define ACPI_HID_FDC "PNP0700" #define ACPI_HID_KEYBOARD "PNP0303"
4 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one.