Skip to content

Commit aeb823b

Browse files
acpibobrafaeljw
authored andcommitted
ACPICA: ACPI 6.0: Add changes for FADT table.
ACPICA commit 72b0b6741990f619f6aaa915302836b7cbb41ac4 One new 64-bit field at the end of the table. FADT version is now 6. Link: acpica/acpica@72b0b674 Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 68edb03 commit aeb823b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

include/acpi/actbl.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ struct acpi_table_fadt {
284284
struct acpi_generic_address xgpe1_block; /* 64-bit Extended General Purpose Event 1 Reg Blk address */
285285
struct acpi_generic_address sleep_control; /* 64-bit Sleep Control register (ACPI 5.0) */
286286
struct acpi_generic_address sleep_status; /* 64-bit Sleep Status register (ACPI 5.0) */
287+
u64 hypervisor_id; /* Hypervisor Vendor ID (ACPI 6.0) */
287288
};
288289

289290
/* Masks for FADT IA-PC Boot Architecture Flags (boot_flags) [Vx]=Introduced in this FADT revision */
@@ -341,7 +342,7 @@ enum acpi_preferred_pm_profiles {
341342
PM_TABLET = 8
342343
};
343344

344-
/* Values for sleep_status and sleep_control registers (V5 FADT) */
345+
/* Values for sleep_status and sleep_control registers (V5+ FADT) */
345346

346347
#define ACPI_X_WAKE_STATUS 0x80
347348
#define ACPI_X_SLEEP_TYPE_MASK 0x1C
@@ -398,15 +399,17 @@ struct acpi_table_desc {
398399
* FADT is the bottom line as to what the version really is.
399400
*
400401
* For reference, the values below are as follows:
401-
* FADT V1 size: 0x074
402-
* FADT V2 size: 0x084
403-
* FADT V3 size: 0x0F4
404-
* FADT V4 size: 0x0F4
405-
* FADT V5 size: 0x10C
402+
* FADT V1 size: 0x074
403+
* FADT V2 size: 0x084
404+
* FADT V3 size: 0x0F4
405+
* FADT V4 size: 0x0F4
406+
* FADT V5 size: 0x10C
407+
* FADT V6 size: 0x114
406408
*/
407409
#define ACPI_FADT_V1_SIZE (u32) (ACPI_FADT_OFFSET (flags) + 4)
408410
#define ACPI_FADT_V2_SIZE (u32) (ACPI_FADT_OFFSET (minor_revision) + 1)
409411
#define ACPI_FADT_V3_SIZE (u32) (ACPI_FADT_OFFSET (sleep_control))
410-
#define ACPI_FADT_V5_SIZE (u32) (sizeof (struct acpi_table_fadt))
412+
#define ACPI_FADT_V5_SIZE (u32) (ACPI_FADT_OFFSET (hypervisor_id))
413+
#define ACPI_FADT_V6_SIZE (u32) (sizeof (struct acpi_table_fadt))
411414

412415
#endif /* __ACTBL_H__ */

0 commit comments

Comments
 (0)