49#define _COMPONENT ACPI_EVENTS
52#if (!ACPI_REDUCED_HARDWARE)
85 if (AcpiGbl_ReducedHardware)
101 AcpiGbl_GlobalLockPresent =
FALSE;
105 "No response from Global Lock hardware, disabling lock"));
116 AcpiGbl_GlobalLockPending =
FALSE;
117 AcpiGbl_GlobalLockPresent =
TRUE;
144 AcpiGbl_GlobalLockPresent =
FALSE;
182 if (!AcpiGbl_GlobalLockPending)
197 AcpiGbl_GlobalLockPending =
FALSE;
260 AcpiGbl_GlobalLockHandle++;
261 if (AcpiGbl_GlobalLockHandle == 0)
263 AcpiGbl_GlobalLockHandle = 1;
270 if (!AcpiGbl_GlobalLockPresent)
272 AcpiGbl_GlobalLockAcquired =
TRUE;
285 AcpiGbl_GlobalLockAcquired =
TRUE;
287 "Acquired hardware Global Lock\n"));
296 AcpiGbl_GlobalLockPending =
TRUE;
300 "Waiting for hardware Global Lock\n"));
313 AcpiGbl_GlobalLockPending =
FALSE;
345 if (!AcpiGbl_GlobalLockAcquired)
348 "Cannot release the ACPI Global Lock, it has not been acquired"));
352 if (AcpiGbl_GlobalLockPresent)
371 AcpiGbl_GlobalLockAcquired =
FALSE;
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending)
#define AE_NO_HARDWARE_RESPONSE
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define ACPI_WARNING(plist)
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
#define ACPI_ERROR(plist)
ACPI_STATUS AcpiOsCreateLock(ACPI_SPINLOCK *OutHandle)
ACPI_STATUS AcpiOsSignalSemaphore(ACPI_SEMAPHORE Handle, UINT32 Units)
void AcpiOsReleaseLock(ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags)
ACPI_CPU_FLAGS AcpiOsAcquireLock(ACPI_SPINLOCK Handle)
void AcpiOsDeleteLock(ACPI_SPINLOCK Handle)
#define ACPI_INTERRUPT_HANDLED
#define AcpiOsReleaseMutex(Handle)
#define ACPI_ENABLE_EVENT
#define ACPI_WAIT_FOREVER
#define ACPI_EVENT_GLOBAL
#define ACPI_BITREG_GLOBAL_LOCK_RELEASE
ACPI_STATUS AcpiEvReleaseGlobalLock(void)
static UINT32 AcpiEvGlobalLockHandler(void *Context)
ACPI_STATUS AcpiEvInitGlobalLockHandler(void)
ACPI_STATUS AcpiEvAcquireGlobalLock(UINT16 Timeout)
ACPI_STATUS AcpiEvRemoveGlobalLockHandler(void)
ACPI_STATUS AcpiRemoveFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler)
ACPI_STATUS AcpiInstallFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler, void *Context)
ACPI_STATUS AcpiExSystemWaitMutex(ACPI_MUTEX Mutex, UINT16 Timeout)
ACPI_STATUS AcpiExSystemWaitSemaphore(ACPI_SEMAPHORE Semaphore, UINT16 Timeout)
ACPI_STATUS AcpiWriteBitRegister(UINT32 RegisterId, UINT32 Value)
_Must_inspect_result_ _In_ ULONG Flags