diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2011-02-11 22:56:14 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2011-02-11 22:56:14 +0000 |
commit | 19834a6cfd047752c68451e6ded1a2950f6b1f44 (patch) | |
tree | 9d61cc356dc91b33ff673ba89e884aab6cbb55be /include/actbl.h | |
parent | 8f74426ca5911529047348ff4731e7f5fbb49c67 (diff) |
Notes
Diffstat (limited to 'include/actbl.h')
-rw-r--r-- | include/actbl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/actbl.h b/include/actbl.h index 39b475c1a330e..e632291cd0fe1 100644 --- a/include/actbl.h +++ b/include/actbl.h @@ -397,4 +397,20 @@ typedef struct acpi_table_desc #define ACPI_FADT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_FADT, f) +/* + * Sizes of the various flavors of FADT. We need to look closely + * at the FADT length because the version number essentially tells + * us nothing because of many BIOS bugs where the version does not + * match the expected length. In other words, the length of the + * FADT is the bottom line as to what the version really is. + * + * For reference, the values below are as follows: + * FADT V1 size: 0x74 + * FADT V2 size: 0x84 + * FADT V3+ size: 0xF4 + */ +#define ACPI_FADT_V1_SIZE (UINT32) (ACPI_FADT_OFFSET (Flags) + 4) +#define ACPI_FADT_V2_SIZE (UINT32) (ACPI_FADT_OFFSET (Reserved4[0]) + 3) +#define ACPI_FADT_V3_SIZE (UINT32) (sizeof (ACPI_TABLE_FADT)) + #endif /* __ACTBL_H__ */ |