1 /* ----------------------------------------------------------------------- *
3 * Copyright 2009-2011 Erwan Velu - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
18 enum { FADT_TABLE_FOUND
= 1};
23 /* prefered pm profiles */
24 enum { PM_UNSPECIFIED
= 0,
28 PM_ENTERPRISE_SERVER
= 4,
31 PM_PERFORMANCE_SERVER
= 7
34 /* iapc_boot_arch flags*/
35 #define IAPC_LEGAGY_DEVICE 1
36 #define IAPC_8042 1<<1
37 #define IAPC_VGA_NOT_PRESENT 1<<2
38 #define IAPC_MSI_NOT_SUPPORTED 1<<3
39 #define IAPC_PCIE_ASPM_CONTROLS 1<<4
41 /* feature flags for "flags" */
43 #define WBINVD_FLUSH 1<<1
45 #define P_LVL2_UP 1<<3
46 #define PWR_BUTTON 1<<4
47 #define SLP_BUTTON 1<<5
50 #define TMR_VAL_EXT 1<<8
52 #define RESET_REG_SUP 1<<10
53 #define SEALED_CASE 1<<11
54 #define HEADLESS 1<<12
55 #define CPU_SW_SLP 1<<13
56 #define PCI_EXP_WAK 1<<14
57 #define USE_PLATEFORM_CLOCK 1<<15
58 #define S4_RTC_STS_VALID 1<<16
59 #define REMOTE_POWER_ON_CAPABLE 1<<17
60 #define FORCE_APIC_CLUSTER_MODEL 1<<18
61 #define FORCE_APIC_PHYSICAL_DESTINATION_MODE 1<<19
65 s_acpi_description_header header
;
67 uint32_t *firmware_ctrl
;
68 uint32_t *dsdt_address
;
70 uint8_t prefered_pm_profile
;
77 uint32_t pm1a_evt_blk
;
78 uint32_t pm1b_evt_blk
;
79 uint32_t pm1a_cnt_blk
;
80 uint32_t pm1b_cnt_blk
;
96 uint16_t flush_stride
;
102 uint16_t iapc_boot_arch
;
107 uint8_t reserved_3
[3];
108 uint64_t *x_firmware_ctrl
;
110 s_gas x_pm1a_evt_blk
;
111 s_gas x_pm1b_evt_blk
;
112 s_gas x_pm1a_cnt_blk
;
113 s_gas x_pm1b_cnt_blk
;
120 void parse_fadt(s_fadt
* fadt
);