44#define EXPORT_ACPI_INTERFACES
52#define _COMPONENT ACPI_EVENTS
55#if (!ACPI_REDUCED_HARDWARE)
139 if (AcpiGbl_GlobalNotify[
i].
Handler)
145 AcpiGbl_GlobalNotify[
i].Handler =
Handler;
146 AcpiGbl_GlobalNotify[
i].Context =
Context;
311 if (!AcpiGbl_GlobalNotify[
i].
Handler ||
319 "Removing global notify handler\n"));
321 AcpiGbl_GlobalNotify[
i].Handler =
NULL;
322 AcpiGbl_GlobalNotify[
i].Context =
NULL;
363 PreviousHandlerObj =
NULL;
370 PreviousHandlerObj = HandlerObj;
382 if (PreviousHandlerObj)
444 if (AcpiGbl_ExceptionHandler)
452 AcpiGbl_ExceptionHandler =
Handler;
462#if (!ACPI_REDUCED_HARDWARE)
515 SciHandler = AcpiGbl_SciHandlerList;
527 SciHandler = SciHandler->
Next;
532 NewSciHandler->
Next = AcpiGbl_SciHandlerList;
533 AcpiGbl_SciHandlerList = NewSciHandler;
592 PrevSciHandler =
NULL;
593 NextSciHandler = AcpiGbl_SciHandlerList;
594 while (NextSciHandler)
602 PrevSciHandler->
Next = NextSciHandler->
Next;
606 AcpiGbl_SciHandlerList = NextSciHandler->
Next;
614 PrevSciHandler = NextSciHandler;
615 NextSciHandler = NextSciHandler->
Next;
672 if (AcpiGbl_GlobalEventHandler)
678 AcpiGbl_GlobalEventHandler =
Handler;
679 AcpiGbl_GlobalEventHandlerContext =
Context;
748 "Could not enable fixed event - %s (%u)",
753 AcpiGbl_FixedEventHandlers[
Event].Handler =
NULL;
754 AcpiGbl_FixedEventHandlers[
Event].Context =
NULL;
759 "Enabled fixed event %s (%X), Handler=%p\n",
815 AcpiGbl_FixedEventHandlers[
Event].Handler =
NULL;
816 AcpiGbl_FixedEventHandlers[
Event].Context =
NULL;
821 "Could not disable fixed event - %s (%u)",
827 "Disabled fixed event - %s (%X)\n",
1228 *
Handle = AcpiGbl_GlobalLockHandle;
#define ACPI_GPE_IS_POLLING_NEEDED(__gpe__)
ACPI_GPE_EVENT_INFO * GpeEventInfo
ACPI_GPE_EVENT_INFO UINT32 GpeNumber
#define AE_ALREADY_EXISTS
#define ACPI_MTX_NAMESPACE
ACPI_OPERAND_OBJECT * AcpiNsGetAttachedObject(ACPI_NAMESPACE_NODE *Node)
ACPI_STATUS AcpiNsAttachObject(ACPI_NAMESPACE_NODE *Node, ACPI_OPERAND_OBJECT *Object, ACPI_OBJECT_TYPE Type)
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define ACPI_WARNING(plist)
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
ACPI_THREAD_ID AcpiOsGetThreadId(void)
void AcpiOsReleaseLock(ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags)
ACPI_CPU_FLAGS AcpiOsAcquireLock(ACPI_SPINLOCK Handle)
void AcpiOsWaitEventsComplete(void)
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 HandlerType
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER Handler
#define ACPI_MAX_NOTIFY_HANDLER_TYPE
#define ACPI_GPE_DISPATCH_MASK
#define ACPI_TYPE_LOCAL_NOTIFY
ACPI_STATUS(* ACPI_EXCEPTION_HANDLER)(ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context)
#define ACPI_NUM_NOTIFY_TYPES
UINT32(* ACPI_SCI_HANDLER)(void *Context)
#define ACPI_GPE_DISPATCH_TYPE(flags)
#define ACPI_GPE_DISPATCH_METHOD
#define ACPI_GPE_DISPATCH_NOTIFY
#define ACPI_CAST_PTR(t, p)
#define ACPI_EXPORT_SYMBOL(Symbol)
void(* ACPI_NOTIFY_HANDLER)(ACPI_HANDLE Device, UINT32 Value, void *Context)
UINT32(* ACPI_GPE_HANDLER)(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context)
UINT32(* ACPI_EVENT_HANDLER)(void *Context)
#define ACPI_GPE_DISPATCH_RAW_HANDLER
void(* ACPI_GBL_EVENT_HANDLER)(UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context)
#define ACPI_ALLOCATE_ZEROED(a)
#define ACPI_GPE_XRUPT_TYPE_MASK
#define ACPI_GPE_DISPATCH_HANDLER
#define AcpiUtCreateInternalObject(t)
ACPI_STATUS AcpiUtAcquireMutex(ACPI_MUTEX_HANDLE MutexId)
ACPI_STATUS AcpiUtReleaseMutex(ACPI_MUTEX_HANDLE MutexId)
void AcpiUtRemoveReference(ACPI_OPERAND_OBJECT *Object)
void AcpiUtAddReference(ACPI_OPERAND_OBJECT *Object)
const char * AcpiUtGetEventName(UINT32 EventId)
static const WCHAR Cleanup[]
ACPI_GPE_EVENT_INFO * AcpiEvGetGpeEventInfo(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
UINT32 AcpiEvDetectGpe(ACPI_NAMESPACE_NODE *GpeDevice, ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 GpeNumber)
ACPI_STATUS AcpiEvRemoveGpeReference(ACPI_GPE_EVENT_INFO *GpeEventInfo)
ACPI_STATUS AcpiEvAddGpeReference(ACPI_GPE_EVENT_INFO *GpeEventInfo, BOOLEAN ClearOnEnable)
BOOLEAN AcpiEvIsNotifyObject(ACPI_NAMESPACE_NODE *Node)
ACPI_STATUS AcpiInstallExceptionHandler(ACPI_EXCEPTION_HANDLER Handler)
ACPI_STATUS AcpiInstallGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)
ACPI_STATUS AcpiRemoveNotifyHandler(ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler)
ACPI_STATUS AcpiInstallGlobalEventHandler(ACPI_GBL_EVENT_HANDLER Handler, void *Context)
ACPI_STATUS AcpiInstallGpeRawHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)
ACPI_STATUS AcpiReleaseGlobalLock(UINT32 Handle)
ACPI_STATUS AcpiRemoveGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_GPE_HANDLER Address)
ACPI_STATUS AcpiInstallNotifyHandler(ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler, void *Context)
static ACPI_STATUS AcpiEvInstallGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, BOOLEAN IsRawHandler, ACPI_GPE_HANDLER Address, void *Context)
ACPI_STATUS AcpiRemoveFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler)
ACPI_STATUS AcpiInstallSciHandler(ACPI_SCI_HANDLER Address, void *Context)
ACPI_STATUS AcpiRemoveSciHandler(ACPI_SCI_HANDLER Address)
ACPI_STATUS AcpiInstallFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler, void *Context)
ACPI_STATUS AcpiAcquireGlobalLock(UINT16 Timeout, UINT32 *Handle)
ACPI_STATUS AcpiEnableEvent(UINT32 Event, UINT32 Flags)
ACPI_STATUS AcpiDisableEvent(UINT32 Event, UINT32 Flags)
ACPI_STATUS AcpiExAcquireMutexObject(UINT16 Timeout, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_THREAD_ID ThreadId)
ACPI_STATUS AcpiExReleaseMutexObject(ACPI_OPERAND_OBJECT *ObjDesc)
void AcpiExExitInterpreter(void)
void AcpiExEnterInterpreter(void)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
union acpi_gpe_dispatch_info Dispatch
ACPI_OBJECT_COMMON_HEADER ACPI_NAMESPACE_NODE * Node
ACPI_NOTIFY_HANDLER Handler
union acpi_operand_object * Next[2]
struct acpi_sci_handler_info * Next
ACPI_GPE_HANDLER_INFO * Handler
ACPI_NAMESPACE_NODE * MethodNode
ACPI_OBJECT_NOTIFY_HANDLER Notify
ACPI_OBJECT_NOTIFY_COMMON CommonNotify
_Must_inspect_result_ _In_ WDFDEVICE Device
_Must_inspect_result_ _In_ ULONG Flags