diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2014-08-21 17:23:40 +0800 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-08-22 21:13:21 -0400 |
commit | 2e73b1d9c5aaed696ed496203397ecacce1b2510 (patch) | |
tree | b2688c2451d5b26799312b005e68dc7f63b171e7 /src/std | |
parent | e710447ef1d2bd4e61e12b210039c00fbeacf624 (diff) | |
download | seabios-2e73b1d9c5aaed696ed496203397ecacce1b2510.tar.gz |
acpi: use specified macro instead of magic-number
Instead of magic numbers, use specified macros for FADT Fixed Feature Flags.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Diffstat (limited to 'src/std')
-rw-r--r-- | src/std/acpi.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/std/acpi.h b/src/std/acpi.h index fad6ac2c..e0d9516b 100644 --- a/src/std/acpi.h +++ b/src/std/acpi.h @@ -42,6 +42,31 @@ struct rsdp_descriptor { /* Root System Descriptor Pointer */ u8 asl_compiler_id [4]; /* ASL compiler vendor ID */ \ u32 asl_compiler_revision; /* ASL compiler revision number */ +/* + * Fixed ACPI Description Table Fixed Feature Flags + */ +#define ACPI_FADT_F_WBINVD (1 << 0) +#define ACPI_FADT_F_WBINVD_FLUSH (1 << 1) +#define ACPI_FADT_F_PROC_C1 (1 << 2) +#define ACPI_FADT_F_P_LVL2_UP (1 << 3) +#define ACPI_FADT_F_PWR_BUTTON (1 << 4) +#define ACPI_FADT_F_SLP_BUTTON (1 << 5) +#define ACPI_FADT_F_FIX_RTC (1 << 6) +#define ACPI_FADT_F_RTC_S4 (1 << 7) +#define ACPI_FADT_F_TMR_VAL_EXT (1 << 8) +#define ACPI_FADT_F_DCK_CAP (1 << 9) +#define ACPI_FADT_F_RESET_REG_SUP (1 << 10) +#define ACPI_FADT_F_SEALED_CASE (1 << 11) +#define ACPI_FADT_F_HEADLESS (1 << 12) +#define ACPI_FADT_F_CPU_SW_SLP (1 << 13) +#define ACPI_FADT_F_PCI_EXP_WAK (1 << 14) +#define ACPI_FADT_F_USE_PLATFORM_CLOCK (1 << 15) +#define ACPI_FADT_F_S4_RTC_STS_VALID (1 << 16) +#define ACPI_FADT_F_REMOTE_POWER_ON_CAPABLE (1 << 17) +#define ACPI_FADT_F_FORCE_APIC_CLUSTER_MODEL (1 << 18) +#define ACPI_FADT_F_FORCE_APIC_PHYSICAL_DESTINATION_MODE (1 << 19) +#define ACPI_FADT_F_HW_REDUCED_ACPI (1 << 20) +#define ACPI_FADT_F_LOW_POWER_S0_IDLE_CAPABLE (1 << 21) /* * ACPI 1.0 Fixed ACPI Description Table (FADT) |