ReactOS  0.4.13-dev-257-gfabbd7c
actbl.h File Reference
#include "actbl1.h"
#include "actbl2.h"
#include "actbl3.h"
Include dependency graph for actbl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  acpi_table_header
 
struct  acpi_generic_address
 
struct  acpi_table_rsdp
 
struct  acpi_rsdp_common
 
struct  acpi_rsdp_extension
 
struct  acpi_table_rsdt
 
struct  acpi_table_xsdt
 
struct  acpi_table_facs
 
struct  acpi_table_fadt
 
union  acpi_name_union
 
struct  acpi_table_desc
 

Macros

#define ACPI_SIG_DSDT   "DSDT" /* Differentiated System Description Table */
 
#define ACPI_SIG_FADT   "FACP" /* Fixed ACPI Description Table */
 
#define ACPI_SIG_FACS   "FACS" /* Firmware ACPI Control Structure */
 
#define ACPI_SIG_OSDT   "OSDT" /* Override System Description Table */
 
#define ACPI_SIG_PSDT   "PSDT" /* Persistent System Description Table */
 
#define ACPI_SIG_RSDP   "RSD PTR " /* Root System Description Pointer */
 
#define ACPI_SIG_RSDT   "RSDT" /* Root System Description Table */
 
#define ACPI_SIG_XSDT   "XSDT" /* Extended System Description Table */
 
#define ACPI_SIG_SSDT   "SSDT" /* Secondary System Description Table */
 
#define ACPI_RSDP_NAME   "RSDP" /* Short name for RSDP, not signature */
 
#define ACPI_OEM_NAME   "OEM" /* Short name for OEM, not signature */
 
#define ACPI_RSDT_ENTRY_SIZE   (sizeof (UINT32))
 
#define ACPI_XSDT_ENTRY_SIZE   (sizeof (UINT64))
 
#define ACPI_GLOCK_PENDING   (1) /* 00: Pending global lock ownership */
 
#define ACPI_GLOCK_OWNED   (1<<1) /* 01: Global lock is owned */
 
#define ACPI_FACS_S4_BIOS_PRESENT   (1) /* 00: S4BIOS support is present */
 
#define ACPI_FACS_64BIT_WAKE   (1<<1) /* 01: 64-bit wake vector supported (ACPI 4.0) */
 
#define ACPI_FACS_64BIT_ENVIRONMENT   (1) /* 00: 64-bit wake environment is required (ACPI 4.0) */
 
#define ACPI_FADT_LEGACY_DEVICES   (1) /* 00: [V2] System has LPC or ISA bus devices */
 
#define ACPI_FADT_8042   (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */
 
#define ACPI_FADT_NO_VGA   (1<<2) /* 02: [V4] It is not safe to probe for VGA hardware */
 
#define ACPI_FADT_NO_MSI   (1<<3) /* 03: [V4] Message Signaled Interrupts (MSI) must not be enabled */
 
#define ACPI_FADT_NO_ASPM   (1<<4) /* 04: [V4] PCIe ASPM control must not be enabled */
 
#define ACPI_FADT_NO_CMOS_RTC   (1<<5) /* 05: [V5] No CMOS real-time clock present */
 
#define ACPI_FADT_PSCI_COMPLIANT   (1) /* 00: [V5+] PSCI 0.2+ is implemented */
 
#define ACPI_FADT_PSCI_USE_HVC   (1<<1) /* 01: [V5+] HVC must be used instead of SMC as the PSCI conduit */
 
#define ACPI_FADT_WBINVD   (1) /* 00: [V1] The WBINVD instruction works properly */
 
#define ACPI_FADT_WBINVD_FLUSH   (1<<1) /* 01: [V1] WBINVD flushes but does not invalidate caches */
 
#define ACPI_FADT_C1_SUPPORTED   (1<<2) /* 02: [V1] All processors support C1 state */
 
#define ACPI_FADT_C2_MP_SUPPORTED   (1<<3) /* 03: [V1] C2 state works on MP system */
 
#define ACPI_FADT_POWER_BUTTON   (1<<4) /* 04: [V1] Power button is handled as a control method device */
 
#define ACPI_FADT_SLEEP_BUTTON   (1<<5) /* 05: [V1] Sleep button is handled as a control method device */
 
#define ACPI_FADT_FIXED_RTC   (1<<6) /* 06: [V1] RTC wakeup status is not in fixed register space */
 
#define ACPI_FADT_S4_RTC_WAKE   (1<<7) /* 07: [V1] RTC alarm can wake system from S4 */
 
#define ACPI_FADT_32BIT_TIMER   (1<<8) /* 08: [V1] ACPI timer width is 32-bit (0=24-bit) */
 
#define ACPI_FADT_DOCKING_SUPPORTED   (1<<9) /* 09: [V1] Docking supported */
 
#define ACPI_FADT_RESET_REGISTER   (1<<10) /* 10: [V2] System reset via the FADT RESET_REG supported */
 
#define ACPI_FADT_SEALED_CASE   (1<<11) /* 11: [V3] No internal expansion capabilities and case is sealed */
 
#define ACPI_FADT_HEADLESS   (1<<12) /* 12: [V3] No local video capabilities or local input devices */
 
#define ACPI_FADT_SLEEP_TYPE   (1<<13) /* 13: [V3] Must execute native instruction after writing SLP_TYPx register */
 
#define ACPI_FADT_PCI_EXPRESS_WAKE   (1<<14) /* 14: [V4] System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */
 
#define ACPI_FADT_PLATFORM_CLOCK   (1<<15) /* 15: [V4] OSPM should use platform-provided timer (ACPI 3.0) */
 
#define ACPI_FADT_S4_RTC_VALID   (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */
 
#define ACPI_FADT_REMOTE_POWER_ON   (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */
 
#define ACPI_FADT_APIC_CLUSTER   (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */
 
#define ACPI_FADT_APIC_PHYSICAL   (1<<19) /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */
 
#define ACPI_FADT_HW_REDUCED   (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */
 
#define ACPI_FADT_LOW_POWER_S0   (1<<21) /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */
 
#define ACPI_X_WAKE_STATUS   0x80
 
#define ACPI_X_SLEEP_TYPE_MASK   0x1C
 
#define ACPI_X_SLEEP_TYPE_POSITION   0x02
 
#define ACPI_X_SLEEP_ENABLE   0x20
 
#define ACPI_MAX_TABLE_VALIDATIONS   ACPI_UINT16_MAX
 
#define ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL   (0) /* Virtual address, external maintained */
 
#define ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL   (1) /* Physical address, internally mapped */
 
#define ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL   (2) /* Virtual address, internallly allocated */
 
#define ACPI_TABLE_ORIGIN_MASK   (3)
 
#define ACPI_TABLE_IS_VERIFIED   (4)
 
#define ACPI_TABLE_IS_LOADED   (8)
 
#define ACPI_FADT_OFFSET(f)   (UINT16) ACPI_OFFSET (ACPI_TABLE_FADT, f)
 
#define ACPI_FADT_V1_SIZE   (UINT32) (ACPI_FADT_OFFSET (Flags) + 4)
 
#define ACPI_FADT_V2_SIZE   (UINT32) (ACPI_FADT_OFFSET (MinorRevision) + 1)
 
#define ACPI_FADT_V3_SIZE   (UINT32) (ACPI_FADT_OFFSET (SleepControl))
 
#define ACPI_FADT_V5_SIZE   (UINT32) (ACPI_FADT_OFFSET (HypervisorId))
 
#define ACPI_FADT_V6_SIZE   (UINT32) (sizeof (ACPI_TABLE_FADT))
 
#define ACPI_FADT_CONFORMANCE   "ACPI 6.1 (FADT version 6)"
 

Typedefs

typedef struct acpi_table_header ACPI_TABLE_HEADER
 
typedef struct acpi_generic_address ACPI_GENERIC_ADDRESS
 
typedef struct acpi_table_rsdp ACPI_TABLE_RSDP
 
typedef struct acpi_rsdp_common ACPI_RSDP_COMMON
 
typedef struct acpi_rsdp_extension ACPI_RSDP_EXTENSION
 
typedef struct acpi_table_rsdt ACPI_TABLE_RSDT
 
typedef struct acpi_table_xsdt ACPI_TABLE_XSDT
 
typedef struct acpi_table_facs ACPI_TABLE_FACS
 
typedef struct acpi_table_fadt ACPI_TABLE_FADT
 
typedef union acpi_name_union ACPI_NAME_UNION
 
typedef struct acpi_table_desc ACPI_TABLE_DESC
 

Enumerations

enum  AcpiPreferredPmProfiles {
  PM_UNSPECIFIED = 0, PM_DESKTOP = 1, PM_MOBILE = 2, PM_WORKSTATION = 3,
  PM_ENTERPRISE_SERVER = 4, PM_SOHO_SERVER = 5, PM_APPLIANCE_PC = 6, PM_PERFORMANCE_SERVER = 7,
  PM_TABLET = 8
}
 

Macro Definition Documentation

◆ ACPI_FACS_64BIT_ENVIRONMENT

#define ACPI_FACS_64BIT_ENVIRONMENT   (1) /* 00: 64-bit wake environment is required (ACPI 4.0) */

Definition at line 246 of file actbl.h.

◆ ACPI_FACS_64BIT_WAKE

#define ACPI_FACS_64BIT_WAKE   (1<<1) /* 01: 64-bit wake vector supported (ACPI 4.0) */

Definition at line 242 of file actbl.h.

◆ ACPI_FACS_S4_BIOS_PRESENT

#define ACPI_FACS_S4_BIOS_PRESENT   (1) /* 00: S4BIOS support is present */

Definition at line 241 of file actbl.h.

◆ ACPI_FADT_32BIT_TIMER

#define ACPI_FADT_32BIT_TIMER   (1<<8) /* 08: [V1] ACPI timer width is 32-bit (0=24-bit) */

Definition at line 344 of file actbl.h.

◆ ACPI_FADT_8042

#define ACPI_FADT_8042   (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */

Definition at line 323 of file actbl.h.

◆ ACPI_FADT_APIC_CLUSTER

#define ACPI_FADT_APIC_CLUSTER   (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */

Definition at line 354 of file actbl.h.

◆ ACPI_FADT_APIC_PHYSICAL

#define ACPI_FADT_APIC_PHYSICAL   (1<<19) /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */

Definition at line 355 of file actbl.h.

◆ ACPI_FADT_C1_SUPPORTED

#define ACPI_FADT_C1_SUPPORTED   (1<<2) /* 02: [V1] All processors support C1 state */

Definition at line 338 of file actbl.h.

◆ ACPI_FADT_C2_MP_SUPPORTED

#define ACPI_FADT_C2_MP_SUPPORTED   (1<<3) /* 03: [V1] C2 state works on MP system */

Definition at line 339 of file actbl.h.

◆ ACPI_FADT_CONFORMANCE

#define ACPI_FADT_CONFORMANCE   "ACPI 6.1 (FADT version 6)"

Definition at line 469 of file actbl.h.

◆ ACPI_FADT_DOCKING_SUPPORTED

#define ACPI_FADT_DOCKING_SUPPORTED   (1<<9) /* 09: [V1] Docking supported */

Definition at line 345 of file actbl.h.

◆ ACPI_FADT_FIXED_RTC

#define ACPI_FADT_FIXED_RTC   (1<<6) /* 06: [V1] RTC wakeup status is not in fixed register space */

Definition at line 342 of file actbl.h.

◆ ACPI_FADT_HEADLESS

#define ACPI_FADT_HEADLESS   (1<<12) /* 12: [V3] No local video capabilities or local input devices */

Definition at line 348 of file actbl.h.

◆ ACPI_FADT_HW_REDUCED

#define ACPI_FADT_HW_REDUCED   (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */

Definition at line 356 of file actbl.h.

◆ ACPI_FADT_LEGACY_DEVICES

#define ACPI_FADT_LEGACY_DEVICES   (1) /* 00: [V2] System has LPC or ISA bus devices */

Definition at line 322 of file actbl.h.

◆ ACPI_FADT_LOW_POWER_S0

#define ACPI_FADT_LOW_POWER_S0   (1<<21) /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */

Definition at line 357 of file actbl.h.

◆ ACPI_FADT_NO_ASPM

#define ACPI_FADT_NO_ASPM   (1<<4) /* 04: [V4] PCIe ASPM control must not be enabled */

Definition at line 326 of file actbl.h.

◆ ACPI_FADT_NO_CMOS_RTC

#define ACPI_FADT_NO_CMOS_RTC   (1<<5) /* 05: [V5] No CMOS real-time clock present */

Definition at line 327 of file actbl.h.

◆ ACPI_FADT_NO_MSI

#define ACPI_FADT_NO_MSI   (1<<3) /* 03: [V4] Message Signaled Interrupts (MSI) must not be enabled */

Definition at line 325 of file actbl.h.

◆ ACPI_FADT_NO_VGA

#define ACPI_FADT_NO_VGA   (1<<2) /* 02: [V4] It is not safe to probe for VGA hardware */

Definition at line 324 of file actbl.h.

◆ ACPI_FADT_OFFSET

#define ACPI_FADT_OFFSET (   f)    (UINT16) ACPI_OFFSET (ACPI_TABLE_FADT, f)

Definition at line 446 of file actbl.h.

◆ ACPI_FADT_PCI_EXPRESS_WAKE

#define ACPI_FADT_PCI_EXPRESS_WAKE   (1<<14) /* 14: [V4] System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */

Definition at line 350 of file actbl.h.

◆ ACPI_FADT_PLATFORM_CLOCK

#define ACPI_FADT_PLATFORM_CLOCK   (1<<15) /* 15: [V4] OSPM should use platform-provided timer (ACPI 3.0) */

Definition at line 351 of file actbl.h.

◆ ACPI_FADT_POWER_BUTTON

#define ACPI_FADT_POWER_BUTTON   (1<<4) /* 04: [V1] Power button is handled as a control method device */

Definition at line 340 of file actbl.h.

◆ ACPI_FADT_PSCI_COMPLIANT

#define ACPI_FADT_PSCI_COMPLIANT   (1) /* 00: [V5+] PSCI 0.2+ is implemented */

Definition at line 331 of file actbl.h.

◆ ACPI_FADT_PSCI_USE_HVC

#define ACPI_FADT_PSCI_USE_HVC   (1<<1) /* 01: [V5+] HVC must be used instead of SMC as the PSCI conduit */

Definition at line 332 of file actbl.h.

◆ ACPI_FADT_REMOTE_POWER_ON

#define ACPI_FADT_REMOTE_POWER_ON   (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */

Definition at line 353 of file actbl.h.

◆ ACPI_FADT_RESET_REGISTER

#define ACPI_FADT_RESET_REGISTER   (1<<10) /* 10: [V2] System reset via the FADT RESET_REG supported */

Definition at line 346 of file actbl.h.

◆ ACPI_FADT_S4_RTC_VALID

#define ACPI_FADT_S4_RTC_VALID   (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */

Definition at line 352 of file actbl.h.

◆ ACPI_FADT_S4_RTC_WAKE

#define ACPI_FADT_S4_RTC_WAKE   (1<<7) /* 07: [V1] RTC alarm can wake system from S4 */

Definition at line 343 of file actbl.h.

◆ ACPI_FADT_SEALED_CASE

#define ACPI_FADT_SEALED_CASE   (1<<11) /* 11: [V3] No internal expansion capabilities and case is sealed */

Definition at line 347 of file actbl.h.

◆ ACPI_FADT_SLEEP_BUTTON

#define ACPI_FADT_SLEEP_BUTTON   (1<<5) /* 05: [V1] Sleep button is handled as a control method device */

Definition at line 341 of file actbl.h.

◆ ACPI_FADT_SLEEP_TYPE

#define ACPI_FADT_SLEEP_TYPE   (1<<13) /* 13: [V3] Must execute native instruction after writing SLP_TYPx register */

Definition at line 349 of file actbl.h.

◆ ACPI_FADT_V1_SIZE

#define ACPI_FADT_V1_SIZE   (UINT32) (ACPI_FADT_OFFSET (Flags) + 4)

Definition at line 463 of file actbl.h.

◆ ACPI_FADT_V2_SIZE

#define ACPI_FADT_V2_SIZE   (UINT32) (ACPI_FADT_OFFSET (MinorRevision) + 1)

Definition at line 464 of file actbl.h.

◆ ACPI_FADT_V3_SIZE

#define ACPI_FADT_V3_SIZE   (UINT32) (ACPI_FADT_OFFSET (SleepControl))

Definition at line 465 of file actbl.h.

◆ ACPI_FADT_V5_SIZE

#define ACPI_FADT_V5_SIZE   (UINT32) (ACPI_FADT_OFFSET (HypervisorId))

Definition at line 466 of file actbl.h.

◆ ACPI_FADT_V6_SIZE

#define ACPI_FADT_V6_SIZE   (UINT32) (sizeof (ACPI_TABLE_FADT))

Definition at line 467 of file actbl.h.

◆ ACPI_FADT_WBINVD

#define ACPI_FADT_WBINVD   (1) /* 00: [V1] The WBINVD instruction works properly */

Definition at line 336 of file actbl.h.

◆ ACPI_FADT_WBINVD_FLUSH

#define ACPI_FADT_WBINVD_FLUSH   (1<<1) /* 01: [V1] WBINVD flushes but does not invalidate caches */

Definition at line 337 of file actbl.h.

◆ ACPI_GLOCK_OWNED

#define ACPI_GLOCK_OWNED   (1<<1) /* 01: Global lock is owned */

Definition at line 237 of file actbl.h.

◆ ACPI_GLOCK_PENDING

#define ACPI_GLOCK_PENDING   (1) /* 00: Pending global lock ownership */

Definition at line 236 of file actbl.h.

◆ ACPI_MAX_TABLE_VALIDATIONS

#define ACPI_MAX_TABLE_VALIDATIONS   ACPI_UINT16_MAX

Definition at line 425 of file actbl.h.

◆ ACPI_OEM_NAME

#define ACPI_OEM_NAME   "OEM" /* Short name for OEM, not signature */

Definition at line 77 of file actbl.h.

◆ ACPI_RSDP_NAME

#define ACPI_RSDP_NAME   "RSDP" /* Short name for RSDP, not signature */

Definition at line 76 of file actbl.h.

◆ ACPI_RSDT_ENTRY_SIZE

#define ACPI_RSDT_ENTRY_SIZE   (sizeof (UINT32))

Definition at line 208 of file actbl.h.

◆ ACPI_SIG_DSDT

#define ACPI_SIG_DSDT   "DSDT" /* Differentiated System Description Table */

Definition at line 67 of file actbl.h.

◆ ACPI_SIG_FACS

#define ACPI_SIG_FACS   "FACS" /* Firmware ACPI Control Structure */

Definition at line 69 of file actbl.h.

◆ ACPI_SIG_FADT

#define ACPI_SIG_FADT   "FACP" /* Fixed ACPI Description Table */

Definition at line 68 of file actbl.h.

◆ ACPI_SIG_OSDT

#define ACPI_SIG_OSDT   "OSDT" /* Override System Description Table */

Definition at line 70 of file actbl.h.

◆ ACPI_SIG_PSDT

#define ACPI_SIG_PSDT   "PSDT" /* Persistent System Description Table */

Definition at line 71 of file actbl.h.

◆ ACPI_SIG_RSDP

#define ACPI_SIG_RSDP   "RSD PTR " /* Root System Description Pointer */

Definition at line 72 of file actbl.h.

◆ ACPI_SIG_RSDT

#define ACPI_SIG_RSDT   "RSDT" /* Root System Description Table */

Definition at line 73 of file actbl.h.

◆ ACPI_SIG_SSDT

#define ACPI_SIG_SSDT   "SSDT" /* Secondary System Description Table */

Definition at line 75 of file actbl.h.

◆ ACPI_SIG_XSDT

#define ACPI_SIG_XSDT   "XSDT" /* Extended System Description Table */

Definition at line 74 of file actbl.h.

◆ ACPI_TABLE_IS_LOADED

#define ACPI_TABLE_IS_LOADED   (8)

Definition at line 434 of file actbl.h.

◆ ACPI_TABLE_IS_VERIFIED

#define ACPI_TABLE_IS_VERIFIED   (4)

Definition at line 433 of file actbl.h.

◆ ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL

#define ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL   (0) /* Virtual address, external maintained */

Definition at line 429 of file actbl.h.

◆ ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL

#define ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL   (1) /* Physical address, internally mapped */

Definition at line 430 of file actbl.h.

◆ ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL

#define ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL   (2) /* Virtual address, internallly allocated */

Definition at line 431 of file actbl.h.

◆ ACPI_TABLE_ORIGIN_MASK

#define ACPI_TABLE_ORIGIN_MASK   (3)

Definition at line 432 of file actbl.h.

◆ ACPI_X_SLEEP_ENABLE

#define ACPI_X_SLEEP_ENABLE   0x20

Definition at line 380 of file actbl.h.

◆ ACPI_X_SLEEP_TYPE_MASK

#define ACPI_X_SLEEP_TYPE_MASK   0x1C

Definition at line 378 of file actbl.h.

◆ ACPI_X_SLEEP_TYPE_POSITION

#define ACPI_X_SLEEP_TYPE_POSITION   0x02

Definition at line 379 of file actbl.h.

◆ ACPI_X_WAKE_STATUS

#define ACPI_X_WAKE_STATUS   0x80

Definition at line 377 of file actbl.h.

◆ ACPI_XSDT_ENTRY_SIZE

#define ACPI_XSDT_ENTRY_SIZE   (sizeof (UINT64))

Definition at line 209 of file actbl.h.

Typedef Documentation

◆ ACPI_GENERIC_ADDRESS

◆ ACPI_NAME_UNION

◆ ACPI_RSDP_COMMON

◆ ACPI_RSDP_EXTENSION

◆ ACPI_TABLE_DESC

◆ ACPI_TABLE_FACS

◆ ACPI_TABLE_FADT

◆ ACPI_TABLE_HEADER

◆ ACPI_TABLE_RSDP

◆ ACPI_TABLE_RSDT

◆ ACPI_TABLE_XSDT

Enumeration Type Documentation

◆ AcpiPreferredPmProfiles

Enumerator
PM_UNSPECIFIED 
PM_DESKTOP 
PM_MOBILE 
PM_WORKSTATION 
PM_ENTERPRISE_SERVER 
PM_SOHO_SERVER 
PM_APPLIANCE_PC 
PM_PERFORMANCE_SERVER 
PM_TABLET 

Definition at line 362 of file actbl.h.

363 {
364  PM_UNSPECIFIED = 0,
365  PM_DESKTOP = 1,
366  PM_MOBILE = 2,
367  PM_WORKSTATION = 3,
369  PM_SOHO_SERVER = 5,
370  PM_APPLIANCE_PC = 6,
372  PM_TABLET = 8
373 };