diff options
Diffstat (limited to 'sys/contrib/dev/acpica/evmisc.c')
-rw-r--r-- | sys/contrib/dev/acpica/evmisc.c | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/sys/contrib/dev/acpica/evmisc.c b/sys/contrib/dev/acpica/evmisc.c index 8a39fbe..4770ba9 100644 --- a/sys/contrib/dev/acpica/evmisc.c +++ b/sys/contrib/dev/acpica/evmisc.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: evmisc - Miscellaneous event manager support functions - * $Revision: 75 $ + * $Revision: 79 $ * *****************************************************************************/ @@ -162,9 +162,10 @@ AcpiEvIsNotifyObject ( * * FUNCTION: AcpiEvQueueNotifyRequest * - * PARAMETERS: + * PARAMETERS: Node - NS node for the notified object + * NotifyValue - Value from the Notify() request * - * RETURN: None. + * RETURN: Status * * DESCRIPTION: Dispatch a device notification event to a previously * installed handler. @@ -219,9 +220,8 @@ AcpiEvQueueNotifyRequest ( NotifyValue)); } - /* - * Get the notify object attached to the NS Node - */ + /* Get the notify object attached to the NS Node */ + ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { @@ -277,8 +277,10 @@ AcpiEvQueueNotifyRequest ( if (!HandlerObj) { - /* There is no per-device notify handler for this device */ - + /* + * There is no per-device notify handler for this device. + * This may or may not be a problem. + */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "No notify handler for Notify(%4.4s, %X) node %p\n", AcpiUtGetNodeName (Node), NotifyValue, Node)); @@ -292,7 +294,7 @@ AcpiEvQueueNotifyRequest ( * * FUNCTION: AcpiEvNotifyDispatch * - * PARAMETERS: + * PARAMETERS: Context - To be passsed to the notify handler * * RETURN: None. * @@ -365,6 +367,8 @@ AcpiEvNotifyDispatch ( * * FUNCTION: AcpiEvGlobalLockThread * + * PARAMETERS: Context - From thread interface, not used + * * RETURN: None * * DESCRIPTION: Invoked by SCI interrupt handler upon acquisition of the @@ -400,7 +404,9 @@ AcpiEvGlobalLockThread ( * * FUNCTION: AcpiEvGlobalLockHandler * - * RETURN: Status + * PARAMETERS: Context - From thread interface, not used + * + * RETURN: ACPI_INTERRUPT_HANDLED or ACPI_INTERRUPT_NOT_HANDLED * * DESCRIPTION: Invoked directly from the SCI handler when a global lock * release interrupt occurs. Grab the global lock and queue @@ -449,6 +455,8 @@ AcpiEvGlobalLockHandler ( * * FUNCTION: AcpiEvInitGlobalLockHandler * + * PARAMETERS: None + * * RETURN: Status * * DESCRIPTION: Install a handler for the global lock release event @@ -489,6 +497,8 @@ AcpiEvInitGlobalLockHandler (void) * * FUNCTION: AcpiEvAcquireGlobalLock * + * PARAMETERS: Timeout - Max time to wait for the lock, in millisec. + * * RETURN: Status * * DESCRIPTION: Attempt to gain ownership of the Global Lock. @@ -559,6 +569,10 @@ AcpiEvAcquireGlobalLock ( * * FUNCTION: AcpiEvReleaseGlobalLock * + * PARAMETERS: None + * + * RETURN: Status + * * DESCRIPTION: Releases ownership of the Global Lock. * ******************************************************************************/ @@ -651,7 +665,7 @@ AcpiEvTerminate (void) /* Disable all GPEs in all GPE blocks */ - Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock); + Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock, ACPI_NOT_ISR); /* Remove SCI handler */ @@ -664,7 +678,7 @@ AcpiEvTerminate (void) /* Deallocate all handler objects installed within GPE info structs */ - Status = AcpiEvWalkGpeList (AcpiEvDeleteGpeHandlers); + Status = AcpiEvWalkGpeList (AcpiEvDeleteGpeHandlers, ACPI_NOT_ISR); /* Return to original mode if necessary */ |