ReactOS  0.4.13-dev-66-gc714b7f
acpi.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS PCI Bus Driver
3  * LICENSE: BSD - See COPYING.ARM in the top level directory
4  * FILE: include/reactos/drivers/acpi/acpi.h
5  * PURPOSE: ACPI Tables and NT Registry Data
6  * PROGRAMMERS: ReactOS Portable Systems Group
7  */
8 
9 //
10 // ACPI BIOS Registry Component Configuration Data
11 //
12 typedef struct _ACPI_E820_ENTRY
13 {
18 
19 typedef struct _ACPI_BIOS_MULTI_NODE
20 {
25 
26 //
27 // ACPI Signatures
28 //
29 #define RSDP_SIGNATURE 0x2052545020445352 // "RSD PTR "
30 #define FACS_SIGNATURE 0x53434146 // "FACS"
31 #define FADT_SIGNATURE 0x50434146 // "FACP"
32 #define RSDT_SIGNATURE 0x54445352 // "RSDT"
33 #define APIC_SIGNATURE 0x43495041 // "APIC"
34 #define DSDT_SIGNATURE 0x54445344 // "DSDT"
35 #define SSDT_SIGNATURE 0x54445353 // "SSDT"
36 #define PSDT_SIGNATURE 0x54445350 // "PSDT"
37 #define SBST_SIGNATURE 0x54534253 // "SBST"
38 #define DBGP_SIGNATURE 0x50474244 // "DBGP"
39 #define XSDT_SIGNATURE 'TDSX'
40 #define BOOT_SIGNATURE 'TOOB'
41 #define SRAT_SIGNATURE 'TARS'
42 #define WDRT_SIGNATURE 'TRDW'
43 #define BGRT_SIGNATURE 0x54524742 // "BGRT"
44 
45 //
46 // FADT Flags
47 //
48 #define ACPI_TMR_VAL_EXT 0x100
49 
50 //
51 // BGRT Flags
52 //
53 #define BGRT_STATUS_IMAGE_VALID 0x01
54 
55 //
56 // BGRT Image Types
57 //
58 typedef enum _BGRT_IMAGE_TYPE
59 {
63 
64 //
65 // ACPI Generic Register Address
66 //
67 typedef struct _GEN_ADDR
68 {
75 
76 //
77 // ACPI BIOS Structures (packed)
78 //
79 #include <pshpack1.h>
80 typedef struct _RSDP
81 {
91 } RSDP;
92 typedef RSDP *PRSDP;
93 
94 typedef struct _DESCRIPTION_HEADER
95 {
107 
108 typedef struct _FACS
109 {
119 } FACS;
120 typedef FACS *PFACS;
121 
122 typedef struct _FADT
123 {
176 } FADT;
177 typedef FADT *PFADT;
178 
179 typedef struct _DSDT
180 {
183 } DSDT;
184 typedef DSDT *PDSDT;
185 
186 typedef struct _RSDT
187 {
190 } RSDT;
191 typedef RSDT *PRSDT;
192 
193 typedef struct _XSDT
194 {
197 } XSDT;
198 typedef XSDT *PXSDT;
199 #include <poppack.h>
200 
201 //
202 // Microsoft-specific (pretty much) ACPI Tables, normal MS ABI packing
203 //
204 typedef struct _DEBUG_PORT_TABLE
205 {
211 
212 typedef struct _WATCHDOG_TABLE
213 {
226 
227 typedef struct _BOOT_TABLE
228 {
233 
234 typedef struct _ACPI_SRAT
235 {
240 
241 typedef struct _BGRT_TABLE
242 {
251 
252 /* EOF */
Definition: acpi.h:108
UCHAR pstate_control
Definition: acpi.h:134
UCHAR pm_profile
Definition: acpi.h:128
Definition: acpi.h:193
RSDP * PRSDP
Definition: acpi.h:92
struct _XSDT XSDT
UCHAR OEMTableID[8]
Definition: acpi.h:101
USHORT sci_int_vector
Definition: acpi.h:129
DESCRIPTION_HEADER Header
Definition: acpi.h:124
ULONG gp1_blk_io_port
Definition: acpi.h:142
UCHAR cstate_control
Definition: acpi.h:150
struct _ACPI_SRAT ACPI_SRAT
struct _DSDT DSDT
Definition: acpi.h:12
UCHAR Checksum
Definition: acpi.h:99
#define ANYSIZE_ARRAY
Definition: typedefs.h:45
ULONG OffsetY
Definition: acpi.h:249
ULONG Length
Definition: acpi.h:87
UCHAR reserved4[3]
Definition: acpi.h:165
ULONG Tables[ANYSIZE_ARRAY]
Definition: acpi.h:189
struct _ACPI_BIOS_MULTI_NODE * PACPI_BIOS_MULTI_NODE
struct _WATCHDOG_TABLE * PWATCHDOG_TABLE
enum _BGRT_IMAGE_TYPE * PBGRT_IMAGE_TYPE
struct _ACPI_BIOS_MULTI_NODE ACPI_BIOS_MULTI_NODE
FADT * PFADT
Definition: acpi.h:177
UCHAR Checksum
Definition: acpi.h:83
UCHAR OEMID[6]
Definition: acpi.h:100
GEN_ADDR CountRegister
Definition: acpi.h:216
GEN_ADDR x_pm1a_evt_blk
Definition: acpi.h:168
ULONG smi_cmd_io_port
Definition: acpi.h:130
ULONGLONG Type
Definition: acpi.h:16
GEN_ADDR x_gp1_blk
Definition: acpi.h:175
DESCRIPTION_HEADER Header
Definition: acpi.h:181
GEN_ADDR x_pm1b_evt_blk
Definition: acpi.h:169
ULONG flags
Definition: acpi.h:162
struct _BOOT_TABLE BOOT_TABLE
GEN_ADDR x_pm1b_ctrl_blk
Definition: acpi.h:171
struct _RSDP RSDP
struct _BGRT_TABLE BGRT_TABLE
FACS * PFACS
Definition: acpi.h:120
ULONG pm1a_ctrl_blk_io_port
Definition: acpi.h:137
ULONG facs
Definition: acpi.h:125
UCHAR Units
Definition: acpi.h:224
DESCRIPTION_HEADER Header
Definition: acpi.h:236
UCHAR BitOffset
Definition: acpi.h:71
struct _ACPI_E820_ENTRY ACPI_E820_ENTRY
PHYSICAL_ADDRESS Tables[ANYSIZE_ARRAY]
Definition: acpi.h:196
UCHAR Status
Definition: acpi.h:245
PHYSICAL_ADDRESS RsdtAddress
Definition: acpi.h:21
ULONG Signature
Definition: acpi.h:96
UCHAR pm1_evt_len
Definition: acpi.h:143
ACPI_E820_ENTRY E820Entry[1]
Definition: acpi.h:23
ULONG pm1a_evt_blk_io_port
Definition: acpi.h:135
ULONG pm_tmr_blk_io_port
Definition: acpi.h:140
struct _FACS FACS
struct _GEN_ADDR * PGEN_ADDR
struct _DEBUG_PORT_TABLE DEBUG_PORT_TABLE
struct _RSDT RSDT
GEN_ADDR x_gp0_blk
Definition: acpi.h:174
UCHAR PciSegment
Definition: acpi.h:222
ULONG CreatorRev
Definition: acpi.h:104
struct _ACPI_SRAT * PACPI_SRAT
UCHAR CreatorID[4]
Definition: acpi.h:103
UCHAR acpi_off_value
Definition: acpi.h:132
UCHAR month_alarm_index
Definition: acpi.h:158
ULONG Length
Definition: acpi.h:111
DESCRIPTION_HEADER Header
Definition: acpi.h:195
ULONG HardwareSignature
Definition: acpi.h:112
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
ULONG GlobalLock
Definition: acpi.h:114
USHORT Version
Definition: acpi.h:244
struct _DESCRIPTION_HEADER DESCRIPTION_HEADER
UCHAR pm_tmr_len
Definition: acpi.h:146
struct _BOOT_TABLE * PBOOT_TABLE
_BGRT_IMAGE_TYPE
Definition: acpi.h:58
GEN_ADDR x_pm1a_ctrl_blk
Definition: acpi.h:170
ULONG Signature
Definition: acpi.h:110
enum _BGRT_IMAGE_TYPE BGRT_IMAGE_TYPE
UCHAR PciFunction
Definition: acpi.h:221
UCHAR reset_val
Definition: acpi.h:164
struct _DEBUG_PORT_TABLE * PDEBUG_PORT_TABLE
ULONG dsdt
Definition: acpi.h:126
uint64_t ULONGLONG
Definition: typedefs.h:65
UCHAR Revision
Definition: acpi.h:98
DESCRIPTION_HEADER Header
Definition: acpi.h:229
UCHAR century_alarm_index
Definition: acpi.h:159
ULONGLONG Signature
Definition: acpi.h:82
GEN_ADDR x_pm2_ctrl_blk
Definition: acpi.h:172
UCHAR Revision
Definition: acpi.h:85
ULONG gp0_blk_io_port
Definition: acpi.h:141
PHYSICAL_ADDRESS Base
Definition: acpi.h:14
ULONG Flags
Definition: acpi.h:115
USHORT lvl2_latency
Definition: acpi.h:151
DESCRIPTION_HEADER Header
Definition: acpi.h:214
unsigned char UCHAR
Definition: xmlstorage.h:181
UCHAR InterfaceType
Definition: acpi.h:207
PHYSICAL_ADDRESS XsdtAddress
Definition: acpi.h:88
ULONG RsdtAddress
Definition: acpi.h:86
GEN_ADDR x_pm_tmr_blk
Definition: acpi.h:173
UCHAR XChecksum
Definition: acpi.h:89
UCHAR PciBus
Definition: acpi.h:219
ULONGLONG Count
Definition: acpi.h:22
UCHAR ImageType
Definition: acpi.h:246
RSDT * PRSDT
Definition: acpi.h:191
struct _WATCHDOG_TABLE WATCHDOG_TABLE
struct _GEN_ADDR GEN_ADDR
ULONGLONG LogoAddress
Definition: acpi.h:247
UCHAR reserved3[1]
Definition: acpi.h:161
ULONG Length
Definition: acpi.h:97
UCHAR gp1_base
Definition: acpi.h:149
LARGE_INTEGER Length
Definition: acpi.h:15
USHORT PciVendorId
Definition: acpi.h:218
USHORT lvl3_latency
Definition: acpi.h:152
ULONG OEMRevision
Definition: acpi.h:102
USHORT flush_size
Definition: acpi.h:153
GEN_ADDR ControlRegister
Definition: acpi.h:215
USHORT flush_stride
Definition: acpi.h:154
struct _FADT FADT
unsigned short USHORT
Definition: pedump.c:61
UCHAR OEMID[6]
Definition: acpi.h:84
Definition: acpi.h:122
PHYSICAL_ADDRESS x_firmware_ctrl
Definition: acpi.h:166
UCHAR PciDevice
Definition: acpi.h:220
DSDT * PDSDT
Definition: acpi.h:184
UCHAR BitWidth
Definition: acpi.h:70
Definition: acpi.h:186
UCHAR TableRevision
Definition: acpi.h:237
UCHAR AddressSpaceID
Definition: acpi.h:69
PHYSICAL_ADDRESS x_dsdt
Definition: acpi.h:167
Definition: acpi.h:179
UCHAR gp0_blk_len
Definition: acpi.h:147
DESCRIPTION_HEADER * PDESCRIPTION_HEADER
Definition: acpi.h:106
USHORT boot_arch
Definition: acpi.h:160
DESCRIPTION_HEADER Header
Definition: acpi.h:243
ULONG pm1b_ctrl_blk_io_port
Definition: acpi.h:138
ULONG OffsetX
Definition: acpi.h:248
Definition: acpi.h:67
GEN_ADDR reset_reg
Definition: acpi.h:163
UCHAR gp1_blk_len
Definition: acpi.h:148
UCHAR int_model
Definition: acpi.h:127
unsigned int ULONG
Definition: retypes.h:1
UCHAR pm1_ctrl_len
Definition: acpi.h:144
UCHAR duty_width
Definition: acpi.h:156
ULONG pm2_ctrl_blk_io_port
Definition: acpi.h:139
DESCRIPTION_HEADER Header
Definition: acpi.h:206
UCHAR version
Definition: acpi.h:117
ULONG pFirmwareWakingVector
Definition: acpi.h:113
UCHAR day_alarm_index
Definition: acpi.h:157
UCHAR duty_offset
Definition: acpi.h:155
UCHAR CMOSIndex
Definition: acpi.h:230
struct _ACPI_E820_ENTRY * PACPI_E820_ENTRY
XSDT * PXSDT
Definition: acpi.h:198
Definition: acpi.h:80
USHORT PciDeviceId
Definition: acpi.h:217
UCHAR acpi_on_value
Definition: acpi.h:131
USHORT MaxCount
Definition: acpi.h:223
UCHAR Reserved
Definition: acpi.h:72
struct _BGRT_TABLE * PBGRT_TABLE
ULONG pm1b_evt_blk_io_port
Definition: acpi.h:136
UCHAR pm2_ctrl_len
Definition: acpi.h:145
UCHAR DiffDefBlock[ANYSIZE_ARRAY]
Definition: acpi.h:182
DESCRIPTION_HEADER Header
Definition: acpi.h:188
PHYSICAL_ADDRESS Address
Definition: acpi.h:73
UCHAR s4bios_req
Definition: acpi.h:133
PHYSICAL_ADDRESS x_FirmwareWakingVector
Definition: acpi.h:116
GEN_ADDR BaseAddress
Definition: acpi.h:209