54#ifndef ACPI_MACHINE_WIDTH
55#error ACPI_MACHINE_WIDTH not defined
64#define ACPI_UINT8_MAX (UINT8) (~((UINT8) 0))
65#define ACPI_UINT16_MAX (UINT16)(~((UINT16) 0))
66#define ACPI_UINT32_MAX (UINT32)(~((UINT32) 0))
67#define ACPI_UINT64_MAX (UINT64)(~((UINT64) 0))
68#define ACPI_ASCII_MAX 0x7F
125#ifndef ACPI_USE_SYSTEM_INTTYPES
144#define ACPI_THREAD_ID UINT64
153#if ACPI_MACHINE_WIDTH == 64
155#ifndef ACPI_USE_SYSTEM_INTTYPES
157typedef unsigned int UINT32;
163typedef INT64 ACPI_NATIVE_INT;
165typedef UINT64 ACPI_IO_ADDRESS;
166typedef UINT64 ACPI_PHYSICAL_ADDRESS;
168#define ACPI_MAX_PTR ACPI_UINT64_MAX
169#define ACPI_SIZE_MAX ACPI_UINT64_MAX
170#define ACPI_USE_NATIVE_DIVIDE
171#define ACPI_USE_NATIVE_MATH64
183#if defined (__IA64__) || defined (__ia64__)
184#define ACPI_MISALIGNMENT_NOT_SUPPORTED
194#elif ACPI_MACHINE_WIDTH == 32
196#ifndef ACPI_USE_SYSTEM_INTTYPES
198typedef unsigned int UINT32;
204typedef INT32 ACPI_NATIVE_INT;
207#ifdef ACPI_32BIT_PHYSICAL_ADDRESS
214typedef UINT32 ACPI_IO_ADDRESS;
215typedef UINT32 ACPI_PHYSICAL_ADDRESS;
224typedef UINT64 ACPI_IO_ADDRESS;
225typedef UINT64 ACPI_PHYSICAL_ADDRESS;
229#define ACPI_MAX_PTR ACPI_UINT32_MAX
230#define ACPI_SIZE_MAX ACPI_UINT32_MAX
236#error unknown ACPI_MACHINE_WIDTH
251#ifndef ACPI_CPU_FLAGS
252#define ACPI_CPU_FLAGS ACPI_SIZE
258#ifdef ACPI_USE_LOCAL_CACHE
259#define ACPI_CACHE_T ACPI_MEMORY_LIST
261#define ACPI_CACHE_T void *
268#if (ACPI_MUTEX_TYPE == ACPI_BINARY_SEMAPHORE)
273#define ACPI_MUTEX ACPI_SEMAPHORE
274#define AcpiOsCreateMutex(OutHandle) AcpiOsCreateSemaphore (1, 1, OutHandle)
275#define AcpiOsDeleteMutex(Handle) (void) AcpiOsDeleteSemaphore (Handle)
276#define AcpiOsAcquireMutex(Handle,Time) AcpiOsWaitSemaphore (Handle, 1, Time)
277#define AcpiOsReleaseMutex(Handle) (void) AcpiOsSignalSemaphore (Handle, 1)
283#define ACPI_SPINLOCK void *
286#ifndef ACPI_SEMAPHORE
287#define ACPI_SEMAPHORE void *
291#define ACPI_MUTEX void *
306#ifndef ACPI_UINTPTR_T
307#define ACPI_UINTPTR_T void *
314#ifndef ACPI_PRINTF_LIKE
315#define ACPI_PRINTF_LIKE(c)
324#ifndef ACPI_UNUSED_VAR
325#define ACPI_UNUSED_VAR
338#ifndef ACPI_EXPORT_SYMBOL_INIT
339#define ACPI_EXPORT_SYMBOL_INIT(Symbol)
342#ifndef ACPI_EXPORT_SYMBOL
343#define ACPI_EXPORT_SYMBOL(Symbol)
350#ifndef ACPI_DEBUG_INITIALIZE
351#define ACPI_DEBUG_INITIALIZE()
361#ifdef ACPI_NO_MEM_ALLOCATIONS
363#define ACPI_ALLOCATE(a) NULL
364#define ACPI_ALLOCATE_ZEROED(a) NULL
366#define ACPI_MEM_TRACKING(a)
370#ifdef ACPI_DBG_TRACK_ALLOCATIONS
374#define ACPI_MEM_PARAMETERS _COMPONENT, _AcpiModuleName, __LINE__
375#define ACPI_ALLOCATE(a) AcpiUtAllocateAndTrack ((ACPI_SIZE) (a), ACPI_MEM_PARAMETERS)
376#define ACPI_ALLOCATE_ZEROED(a) AcpiUtAllocateZeroedAndTrack ((ACPI_SIZE) (a), ACPI_MEM_PARAMETERS)
377#define ACPI_FREE(a) AcpiUtFreeAndTrack (a, ACPI_MEM_PARAMETERS)
378#define ACPI_MEM_TRACKING(a) a
384#define ACPI_ALLOCATE(a) AcpiOsAllocate ((ACPI_SIZE) (a))
385#define ACPI_ALLOCATE_ZEROED(a) AcpiOsAllocateZeroed ((ACPI_SIZE) (a))
386#define ACPI_FREE(a) AcpiOsFree (a)
387#define ACPI_MEM_TRACKING(a)
403#define ACPI_MAX_GPE_BLOCKS 2
407#define ACPI_GPE_REGISTER_WIDTH 8
408#define ACPI_PM1_REGISTER_WIDTH 16
409#define ACPI_PM2_REGISTER_WIDTH 8
410#define ACPI_PM_TIMER_WIDTH 32
411#define ACPI_RESET_REGISTER_WIDTH 8
415#define ACPI_NAMESEG_SIZE 4
416#define ACPI_PATH_SEGMENT_LENGTH 5
417#define ACPI_PATH_SEPARATOR '.'
421#define ACPI_OEM_ID_SIZE 6
422#define ACPI_OEM_TABLE_ID_SIZE 8
426#define PCI_ROOT_HID_STRING "PNP0A03"
427#define PCI_EXPRESS_ROOT_HID_STRING "PNP0A08"
431#define ACPI_PM_TIMER_FREQUENCY 3579545
445#define FALSE (1 == 0)
453#define NULL (void *) 0
468#define ACPI_MSEC_PER_SEC 1000L
470#define ACPI_USEC_PER_MSEC 1000L
471#define ACPI_USEC_PER_SEC 1000000L
473#define ACPI_100NSEC_PER_USEC 10L
474#define ACPI_100NSEC_PER_MSEC 10000L
475#define ACPI_100NSEC_PER_SEC 10000000L
477#define ACPI_NSEC_PER_USEC 1000L
478#define ACPI_NSEC_PER_MSEC 1000000L
479#define ACPI_NSEC_PER_SEC 1000000000L
481#define ACPI_TIME_AFTER(a, b) ((INT64)((b) - (a)) < 0)
487#define ACPI_OWNER_ID_MAX 0xFFF
490#define ACPI_INTEGER_BIT_SIZE 64
491#define ACPI_MAX_DECIMAL_DIGITS 20
492#define ACPI_MAX64_DECIMAL_DIGITS 20
493#define ACPI_MAX32_DECIMAL_DIGITS 10
494#define ACPI_MAX16_DECIMAL_DIGITS 5
495#define ACPI_MAX8_DECIMAL_DIGITS 3
500#define ACPI_ROOT_OBJECT ((ACPI_HANDLE) ACPI_TO_POINTER (ACPI_MAX_PTR))
501#define ACPI_WAIT_FOREVER 0xFFFF
502#define ACPI_DO_NOT_WAIT 0
515#define ACPI_INTEGER_MAX ACPI_UINT64_MAX
526#define ACPI_LOBYTE(Integer) ((UINT8) (UINT16)(Integer))
527#define ACPI_HIBYTE(Integer) ((UINT8) (((UINT16)(Integer)) >> 8))
528#define ACPI_LOWORD(Integer) ((UINT16) (UINT32)(Integer))
529#define ACPI_HIWORD(Integer) ((UINT16)(((UINT32)(Integer)) >> 16))
530#define ACPI_LODWORD(Integer64) ((UINT32) (UINT64)(Integer64))
531#define ACPI_HIDWORD(Integer64) ((UINT32)(((UINT64)(Integer64)) >> 32))
533#define ACPI_SET_BIT(target,bit) ((target) |= (bit))
534#define ACPI_CLEAR_BIT(target,bit) ((target) &= ~(bit))
535#define ACPI_MIN(a,b) (((a)<(b))?(a):(b))
536#define ACPI_MAX(a,b) (((a)>(b))?(a):(b))
540#define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
544#define ACPI_CAST_PTR(t, p) ((t *) (ACPI_UINTPTR_T) (p))
545#define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (ACPI_UINTPTR_T) (p))
546#define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)(b)))
547#define ACPI_SUB_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) - (ACPI_SIZE)(b)))
548#define ACPI_PTR_DIFF(a, b) ((ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b))))
552#define ACPI_TO_POINTER(i) ACPI_CAST_PTR (void, (ACPI_SIZE) (i))
553#ifndef ACPI_TO_INTEGER
554#define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0)
557#define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) 0)
559#define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i)
563#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
564#define ACPI_COMPARE_NAMESEG(a,b) (*ACPI_CAST_PTR (UINT32, (a)) == *ACPI_CAST_PTR (UINT32, (b)))
565#define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, (src)))
567#define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAMESEG_SIZE))
568#define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE))
573#define ACPI_VALIDATE_RSDP_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, 8))
574#define ACPI_MAKE_RSDP_SIG(dest) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_SIG_RSDP, 8))
577#define ACPI_IS_OEM_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_OEM_NAME, 3) &&\
578 strnlen (a, ACPI_NAMESEG_SIZE) == ACPI_NAMESEG_SIZE)
585#define ACPI_ACCESS_BIT_SHIFT 2
586#define ACPI_ACCESS_BYTE_SHIFT -1
587#define ACPI_ACCESS_BIT_MAX (31 - ACPI_ACCESS_BIT_SHIFT)
588#define ACPI_ACCESS_BYTE_MAX (31 - ACPI_ACCESS_BYTE_SHIFT)
589#define ACPI_ACCESS_BIT_DEFAULT (8 - ACPI_ACCESS_BIT_SHIFT)
590#define ACPI_ACCESS_BYTE_DEFAULT (8 - ACPI_ACCESS_BYTE_SHIFT)
591#define ACPI_ACCESS_BIT_WIDTH(size) (1 << ((size) + ACPI_ACCESS_BIT_SHIFT))
592#define ACPI_ACCESS_BYTE_WIDTH(size) (1 << ((size) + ACPI_ACCESS_BYTE_SHIFT))
603#define ACPI_FULL_INITIALIZATION 0x0000
604#define ACPI_NO_FACS_INIT 0x0001
605#define ACPI_NO_ACPI_ENABLE 0x0002
606#define ACPI_NO_HARDWARE_INIT 0x0004
607#define ACPI_NO_EVENT_INIT 0x0008
608#define ACPI_NO_HANDLER_INIT 0x0010
609#define ACPI_NO_OBJECT_INIT 0x0020
610#define ACPI_NO_DEVICE_INIT 0x0040
611#define ACPI_NO_ADDRESS_SPACE_INIT 0x0080
616#define ACPI_SUBSYSTEM_INITIALIZE 0x01
617#define ACPI_INITIALIZED_OK 0x02
622#define ACPI_STATE_UNKNOWN (UINT8) 0xFF
624#define ACPI_STATE_S0 (UINT8) 0
625#define ACPI_STATE_S1 (UINT8) 1
626#define ACPI_STATE_S2 (UINT8) 2
627#define ACPI_STATE_S3 (UINT8) 3
628#define ACPI_STATE_S4 (UINT8) 4
629#define ACPI_STATE_S5 (UINT8) 5
630#define ACPI_S_STATES_MAX ACPI_STATE_S5
631#define ACPI_S_STATE_COUNT 6
633#define ACPI_STATE_D0 (UINT8) 0
634#define ACPI_STATE_D1 (UINT8) 1
635#define ACPI_STATE_D2 (UINT8) 2
636#define ACPI_STATE_D3 (UINT8) 3
637#define ACPI_D_STATES_MAX ACPI_STATE_D3
638#define ACPI_D_STATE_COUNT 4
640#define ACPI_STATE_C0 (UINT8) 0
641#define ACPI_STATE_C1 (UINT8) 1
642#define ACPI_STATE_C2 (UINT8) 2
643#define ACPI_STATE_C3 (UINT8) 3
644#define ACPI_C_STATES_MAX ACPI_STATE_C3
645#define ACPI_C_STATE_COUNT 4
650#define ACPI_SLEEP_TYPE_MAX 0x7
651#define ACPI_SLEEP_TYPE_INVALID 0xFF
656#define ACPI_NOTIFY_BUS_CHECK (UINT8) 0x00
657#define ACPI_NOTIFY_DEVICE_CHECK (UINT8) 0x01
658#define ACPI_NOTIFY_DEVICE_WAKE (UINT8) 0x02
659#define ACPI_NOTIFY_EJECT_REQUEST (UINT8) 0x03
660#define ACPI_NOTIFY_DEVICE_CHECK_LIGHT (UINT8) 0x04
661#define ACPI_NOTIFY_FREQUENCY_MISMATCH (UINT8) 0x05
662#define ACPI_NOTIFY_BUS_MODE_MISMATCH (UINT8) 0x06
663#define ACPI_NOTIFY_POWER_FAULT (UINT8) 0x07
664#define ACPI_NOTIFY_CAPABILITIES_CHECK (UINT8) 0x08
665#define ACPI_NOTIFY_DEVICE_PLD_CHECK (UINT8) 0x09
666#define ACPI_NOTIFY_RESERVED (UINT8) 0x0A
667#define ACPI_NOTIFY_LOCALITY_UPDATE (UINT8) 0x0B
668#define ACPI_NOTIFY_SHUTDOWN_REQUEST (UINT8) 0x0C
669#define ACPI_NOTIFY_AFFINITY_UPDATE (UINT8) 0x0D
670#define ACPI_NOTIFY_MEMORY_UPDATE (UINT8) 0x0E
671#define ACPI_NOTIFY_DISCONNECT_RECOVER (UINT8) 0x0F
673#define ACPI_GENERIC_NOTIFY_MAX 0x0F
674#define ACPI_SPECIFIC_NOTIFY_MAX 0x84
687#define ACPI_TYPE_ANY 0x00
688#define ACPI_TYPE_INTEGER 0x01
689#define ACPI_TYPE_STRING 0x02
690#define ACPI_TYPE_BUFFER 0x03
691#define ACPI_TYPE_PACKAGE 0x04
692#define ACPI_TYPE_FIELD_UNIT 0x05
693#define ACPI_TYPE_DEVICE 0x06
694#define ACPI_TYPE_EVENT 0x07
695#define ACPI_TYPE_METHOD 0x08
696#define ACPI_TYPE_MUTEX 0x09
697#define ACPI_TYPE_REGION 0x0A
698#define ACPI_TYPE_POWER 0x0B
699#define ACPI_TYPE_PROCESSOR 0x0C
700#define ACPI_TYPE_THERMAL 0x0D
701#define ACPI_TYPE_BUFFER_FIELD 0x0E
702#define ACPI_TYPE_DDB_HANDLE 0x0F
703#define ACPI_TYPE_DEBUG_OBJECT 0x10
705#define ACPI_TYPE_EXTERNAL_MAX 0x10
706#define ACPI_NUM_TYPES (ACPI_TYPE_EXTERNAL_MAX + 1)
716#define ACPI_TYPE_LOCAL_REGION_FIELD 0x11
717#define ACPI_TYPE_LOCAL_BANK_FIELD 0x12
718#define ACPI_TYPE_LOCAL_INDEX_FIELD 0x13
719#define ACPI_TYPE_LOCAL_REFERENCE 0x14
720#define ACPI_TYPE_LOCAL_ALIAS 0x15
721#define ACPI_TYPE_LOCAL_METHOD_ALIAS 0x16
722#define ACPI_TYPE_LOCAL_NOTIFY 0x17
723#define ACPI_TYPE_LOCAL_ADDRESS_HANDLER 0x18
724#define ACPI_TYPE_LOCAL_RESOURCE 0x19
725#define ACPI_TYPE_LOCAL_RESOURCE_FIELD 0x1A
726#define ACPI_TYPE_LOCAL_SCOPE 0x1B
728#define ACPI_TYPE_NS_NODE_MAX 0x1B
729#define ACPI_TOTAL_TYPES (ACPI_TYPE_NS_NODE_MAX + 1)
735#define ACPI_TYPE_LOCAL_EXTRA 0x1C
736#define ACPI_TYPE_LOCAL_DATA 0x1D
738#define ACPI_TYPE_LOCAL_MAX 0x1D
742#define ACPI_TYPE_INVALID 0x1E
743#define ACPI_TYPE_NOT_FOUND 0xFF
745#define ACPI_NUM_NS_TYPES (ACPI_TYPE_INVALID + 1)
753#define ACPI_IO_MASK 1
763#define ACPI_EVENT_PMTIMER 0
764#define ACPI_EVENT_GLOBAL 1
765#define ACPI_EVENT_POWER_BUTTON 2
766#define ACPI_EVENT_SLEEP_BUTTON 3
767#define ACPI_EVENT_RTC 4
768#define ACPI_EVENT_PCIE_WAKE 5
769#define ACPI_EVENT_MAX 5
770#define ACPI_NUM_FIXED_EVENTS ACPI_EVENT_MAX + 1
792#define ACPI_EVENT_FLAG_DISABLED (ACPI_EVENT_STATUS) 0x00
793#define ACPI_EVENT_FLAG_ENABLED (ACPI_EVENT_STATUS) 0x01
794#define ACPI_EVENT_FLAG_WAKE_ENABLED (ACPI_EVENT_STATUS) 0x02
795#define ACPI_EVENT_FLAG_STATUS_SET (ACPI_EVENT_STATUS) 0x04
796#define ACPI_EVENT_FLAG_ENABLE_SET (ACPI_EVENT_STATUS) 0x08
797#define ACPI_EVENT_FLAG_HAS_HANDLER (ACPI_EVENT_STATUS) 0x10
798#define ACPI_EVENT_FLAG_MASKED (ACPI_EVENT_STATUS) 0x20
799#define ACPI_EVENT_FLAG_SET ACPI_EVENT_FLAG_STATUS_SET
803#define ACPI_GPE_ENABLE 0
804#define ACPI_GPE_DISABLE 1
805#define ACPI_GPE_CONDITIONAL_ENABLE 2
819#define ACPI_GPE_DISPATCH_NONE (UINT8) 0x00
820#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x01
821#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x02
822#define ACPI_GPE_DISPATCH_NOTIFY (UINT8) 0x03
823#define ACPI_GPE_DISPATCH_RAW_HANDLER (UINT8) 0x04
824#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x07
825#define ACPI_GPE_DISPATCH_TYPE(flags) ((UINT8) ((flags) & ACPI_GPE_DISPATCH_MASK))
827#define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x08
828#define ACPI_GPE_EDGE_TRIGGERED (UINT8) 0x00
829#define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x08
831#define ACPI_GPE_CAN_WAKE (UINT8) 0x10
832#define ACPI_GPE_AUTO_ENABLED (UINT8) 0x20
833#define ACPI_GPE_INITIALIZED (UINT8) 0x40
838#define ACPI_NOT_ISR 0x1
844#define ACPI_SYSTEM_NOTIFY 0x1
845#define ACPI_DEVICE_NOTIFY 0x2
846#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY)
847#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3
848#define ACPI_NUM_NOTIFY_TYPES 2
850#define ACPI_MAX_SYS_NOTIFY 0x7F
851#define ACPI_MAX_DEVICE_SPECIFIC_NOTIFY 0xBF
853#define ACPI_SYSTEM_HANDLER_LIST 0
854#define ACPI_DEVICE_HANDLER_LIST 1
861#define ACPI_ADR_SPACE_SYSTEM_MEMORY (ACPI_ADR_SPACE_TYPE) 0
862#define ACPI_ADR_SPACE_SYSTEM_IO (ACPI_ADR_SPACE_TYPE) 1
863#define ACPI_ADR_SPACE_PCI_CONFIG (ACPI_ADR_SPACE_TYPE) 2
864#define ACPI_ADR_SPACE_EC (ACPI_ADR_SPACE_TYPE) 3
865#define ACPI_ADR_SPACE_SMBUS (ACPI_ADR_SPACE_TYPE) 4
866#define ACPI_ADR_SPACE_CMOS (ACPI_ADR_SPACE_TYPE) 5
867#define ACPI_ADR_SPACE_PCI_BAR_TARGET (ACPI_ADR_SPACE_TYPE) 6
868#define ACPI_ADR_SPACE_IPMI (ACPI_ADR_SPACE_TYPE) 7
869#define ACPI_ADR_SPACE_GPIO (ACPI_ADR_SPACE_TYPE) 8
870#define ACPI_ADR_SPACE_GSBUS (ACPI_ADR_SPACE_TYPE) 9
871#define ACPI_ADR_SPACE_PLATFORM_COMM (ACPI_ADR_SPACE_TYPE) 10
872#define ACPI_ADR_SPACE_PLATFORM_RT (ACPI_ADR_SPACE_TYPE) 11
874#define ACPI_NUM_PREDEFINED_REGIONS 12
884#define ACPI_ADR_SPACE_DATA_TABLE (ACPI_ADR_SPACE_TYPE) 0x7E
885#define ACPI_ADR_SPACE_FIXED_HARDWARE (ACPI_ADR_SPACE_TYPE) 0x7F
889#define ACPI_REG_DISCONNECT 0
890#define ACPI_REG_CONNECT 1
903#define ACPI_BITREG_TIMER_STATUS 0x00
904#define ACPI_BITREG_BUS_MASTER_STATUS 0x01
905#define ACPI_BITREG_GLOBAL_LOCK_STATUS 0x02
906#define ACPI_BITREG_POWER_BUTTON_STATUS 0x03
907#define ACPI_BITREG_SLEEP_BUTTON_STATUS 0x04
908#define ACPI_BITREG_RT_CLOCK_STATUS 0x05
909#define ACPI_BITREG_WAKE_STATUS 0x06
910#define ACPI_BITREG_PCIEXP_WAKE_STATUS 0x07
914#define ACPI_BITREG_TIMER_ENABLE 0x08
915#define ACPI_BITREG_GLOBAL_LOCK_ENABLE 0x09
916#define ACPI_BITREG_POWER_BUTTON_ENABLE 0x0A
917#define ACPI_BITREG_SLEEP_BUTTON_ENABLE 0x0B
918#define ACPI_BITREG_RT_CLOCK_ENABLE 0x0C
919#define ACPI_BITREG_PCIEXP_WAKE_DISABLE 0x0D
923#define ACPI_BITREG_SCI_ENABLE 0x0E
924#define ACPI_BITREG_BUS_MASTER_RLD 0x0F
925#define ACPI_BITREG_GLOBAL_LOCK_RELEASE 0x10
926#define ACPI_BITREG_SLEEP_TYPE 0x11
927#define ACPI_BITREG_SLEEP_ENABLE 0x12
931#define ACPI_BITREG_ARB_DISABLE 0x13
933#define ACPI_BITREG_MAX 0x13
934#define ACPI_NUM_BITREG ACPI_BITREG_MAX + 1
939#define ACPI_CLEAR_STATUS 1
943#define ACPI_ENABLE_EVENT 1
944#define ACPI_DISABLE_EVENT 0
1037#define ACPI_NO_BUFFER 0
1039#ifdef ACPI_NO_MEM_ALLOCATIONS
1041#define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (0)
1042#define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (0)
1046#define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (-1)
1047#define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (-2)
1062#define ACPI_FULL_PATHNAME 0
1063#define ACPI_SINGLE_NAME 1
1064#define ACPI_FULL_PATHNAME_NO_TRAILING 2
1065#define ACPI_NAME_TYPE_MAX 2
1083#define ACPI_SYS_MODE_UNKNOWN 0x0000
1084#define ACPI_SYS_MODE_ACPI 0x0001
1085#define ACPI_SYS_MODE_LEGACY 0x0002
1086#define ACPI_SYS_MODES_MASK 0x0003
1143#define ACPI_EVENT_TYPE_GPE 0
1144#define ACPI_EVENT_TYPE_FIXED 1
1172#define ACPI_INIT_DEVICE_INI 1
1193#define ACPI_TABLE_EVENT_LOAD 0x0
1194#define ACPI_TABLE_EVENT_UNLOAD 0x1
1195#define ACPI_TABLE_EVENT_INSTALL 0x2
1196#define ACPI_TABLE_EVENT_UNINSTALL 0x3
1197#define ACPI_NUM_TABLE_EVENTS 4
1205 ACPI_PHYSICAL_ADDRESS
Address,
1208 void *HandlerContext,
1209 void *RegionContext);
1211#define ACPI_DEFAULT_HANDLER NULL
1242 void *HandlerContext,
1243 void **RegionContext);
1245#define ACPI_REGION_ACTIVATE 0
1246#define ACPI_REGION_DEACTIVATE 1
1263#define ACPI_INTERRUPT_NOT_HANDLED 0x00
1264#define ACPI_INTERRUPT_HANDLED 0x01
1268#define ACPI_REENABLE_GPE 0x80
1273#define ACPI_EISAID_STRING_SIZE 8
1277#define ACPI_UUID_LENGTH 16
1281#define ACPI_PCICLS_STRING_SIZE 7
1325#define ACPI_PCI_ROOT_BRIDGE 0x01
1329#define ACPI_VALID_ADR 0x0002
1330#define ACPI_VALID_HID 0x0004
1331#define ACPI_VALID_UID 0x0008
1332#define ACPI_VALID_CID 0x0020
1333#define ACPI_VALID_CLS 0x0040
1334#define ACPI_VALID_SXDS 0x0100
1335#define ACPI_VALID_SXWS 0x0200
1339#define ACPI_STA_DEVICE_PRESENT 0x01
1340#define ACPI_STA_DEVICE_ENABLED 0x02
1341#define ACPI_STA_DEVICE_UI 0x04
1342#define ACPI_STA_DEVICE_FUNCTIONING 0x08
1343#define ACPI_STA_DEVICE_OK 0x08
1344#define ACPI_STA_BATTERY_PRESENT 0x10
1394#ifdef ACPI_DBG_TRACK_ALLOCATIONS
1423#define ACPI_VENDOR_STRINGS 0x01
1424#define ACPI_FEATURE_STRINGS 0x02
1425#define ACPI_ENABLE_INTERFACES 0x00
1426#define ACPI_DISABLE_INTERFACES 0x04
1428#define ACPI_DISABLE_ALL_VENDOR_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS)
1429#define ACPI_DISABLE_ALL_FEATURE_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_FEATURE_STRINGS)
1430#define ACPI_DISABLE_ALL_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS)
1431#define ACPI_ENABLE_ALL_VENDOR_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS)
1432#define ACPI_ENABLE_ALL_FEATURE_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_FEATURE_STRINGS)
1433#define ACPI_ENABLE_ALL_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS)
1435#define ACPI_OSI_WIN_2000 0x01
1436#define ACPI_OSI_WIN_XP 0x02
1437#define ACPI_OSI_WIN_XP_SP1 0x03
1438#define ACPI_OSI_WINSRV_2003 0x04
1439#define ACPI_OSI_WIN_XP_SP2 0x05
1440#define ACPI_OSI_WINSRV_2003_SP1 0x06
1441#define ACPI_OSI_WIN_VISTA 0x07
1442#define ACPI_OSI_WINSRV_2008 0x08
1443#define ACPI_OSI_WIN_VISTA_SP1 0x09
1444#define ACPI_OSI_WIN_VISTA_SP2 0x0A
1445#define ACPI_OSI_WIN_7 0x0B
1446#define ACPI_OSI_WIN_8 0x0C
1447#define ACPI_OSI_WIN_8_1 0x0D
1448#define ACPI_OSI_WIN_10 0x0E
1449#define ACPI_OSI_WIN_10_RS1 0x0F
1450#define ACPI_OSI_WIN_10_RS2 0x10
1451#define ACPI_OSI_WIN_10_RS3 0x11
1452#define ACPI_OSI_WIN_10_RS4 0x12
1453#define ACPI_OSI_WIN_10_RS5 0x13
1454#define ACPI_OSI_WIN_10_19H1 0x14
1455#define ACPI_OSI_WIN_10_20H1 0x15
1456#define ACPI_OSI_WIN_11 0x16
1461#define ACPI_OPT_END -1
1465#ifndef ACPI_FALLTHROUGH
1466#define ACPI_FALLTHROUGH do {} while(0)
unsigned long long UINT64
#define COMPILER_DEPENDENT_INT64
#define COMPILER_DEPENDENT_UINT64
#define ACPI_SYSTEM_XFACE
UINT32 void void ** ReturnValue
ACPI_GPE_EVENT_INFO UINT32 GpeNumber
void(* ACPI_OBJECT_HANDLER)(ACPI_HANDLE Object, void *Data)
union acpi_object ACPI_OBJECT
ACPI_STATUS(* ACPI_SLEEP_FUNCTION)(UINT8 SleepState)
struct acpi_system_info ACPI_SYSTEM_INFO
COMPILER_DEPENDENT_INT64 INT64
struct acpi_connection_info ACPI_CONNECTION_INFO
struct acpi_device_info ACPI_DEVICE_INFO
UINT32(ACPI_SYSTEM_XFACE * ACPI_OSD_HANDLER)(void *Context)
UINT8 ACPI_ADR_SPACE_TYPE
void(ACPI_SYSTEM_XFACE * ACPI_OSD_EXEC_CALLBACK)(void *Context)
struct acpi_mem_mapping ACPI_MEM_MAPPING
struct acpi_mem_space_context ACPI_MEM_SPACE_CONTEXT
struct acpi_statistics ACPI_STATISTICS
struct acpi_pnp_device_id_list ACPI_PNP_DEVICE_ID_LIST
struct acpi_ffh_info ACPI_FFH_INFO
ACPI_STATUS(* ACPI_EXCEPTION_HANDLER)(ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context)
ACPI_STATUS(* ACPI_ADR_SPACE_SETUP)(ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext)
struct acpi_pci_id ACPI_PCI_ID
ACPI_STATUS(* ACPI_TABLE_HANDLER)(UINT32 Event, void *Table, void *Context)
struct acpi_predefined_names ACPI_PREDEFINED_NAMES
UINT32(* ACPI_SCI_HANDLER)(void *Context)
struct acpi_pcc_info ACPI_PCC_INFO
struct acpi_pnp_device_id ACPI_PNP_DEVICE_ID
ACPI_STATUS(* ACPI_ADR_SPACE_HANDLER)(UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext)
struct acpi_data_table_space_context ACPI_DATA_TABLE_MAPPING
struct acpi_object_list ACPI_OBJECT_LIST
#define ACPI_NUM_FIXED_EVENTS
void(* ACPI_NOTIFY_HANDLER)(ACPI_HANDLE Device, UINT32 Value, void *Context)
UINT32(* ACPI_GPE_HANDLER)(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context)
ACPI_STATUS(* ACPI_WALK_CALLBACK)(ACPI_HANDLE Object, UINT32 NestingLevel, void *Context, void **ReturnValue)
UINT32(* ACPI_EVENT_HANDLER)(void *Context)
void(* ACPI_GBL_EVENT_HANDLER)(UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context)
COMPILER_DEPENDENT_UINT64 UINT64
ACPI_STATUS(* ACPI_INIT_HANDLER)(ACPI_HANDLE Object, UINT32 Function)
struct acpi_sleep_functions ACPI_SLEEP_FUNCTIONS
struct acpi_buffer ACPI_BUFFER
UINT32(* ACPI_INTERFACE_HANDLER)(ACPI_STRING InterfaceName, UINT32 Supported)
struct acpi_memory_list ACPI_MEMORY_LIST
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
_In_ PVOID _In_ ULONG Opcode
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
ACPI_PNP_DEVICE_ID HardwareId
ACPI_PNP_DEVICE_ID UniqueId
ACPI_PNP_DEVICE_ID_LIST CompatibleIdList
ACPI_PNP_DEVICE_ID ClassCode
struct acpi_mem_mapping * NextMm
ACPI_PHYSICAL_ADDRESS PhysicalAddress
ACPI_PHYSICAL_ADDRESS Address
ACPI_MEM_MAPPING * FirstMm
ACPI_SLEEP_FUNCTION LegacyFunction
ACPI_SLEEP_FUNCTION ExtendedFunction
UINT32 FixedEventCount[ACPI_NUM_FIXED_EVENTS]
struct acpi_object::@621 Reference
ACPI_OBJECT_TYPE ActualType
struct acpi_object::@619 Buffer
union acpi_object * Elements
struct acpi_object::@618 String
struct acpi_object::@623 PowerResource
struct acpi_object::@617 Integer
struct acpi_object::@622 Processor
struct acpi_object::@620 Package
ACPI_IO_ADDRESS PblkAddress
_Must_inspect_result_ _In_ WDFDEVICE Device
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value