diff options
Diffstat (limited to 'sys/contrib/dev/acpica/evmisc.c')
| -rw-r--r-- | sys/contrib/dev/acpica/evmisc.c | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/evmisc.c b/sys/contrib/dev/acpica/evmisc.c index cb80387f5fa4..aae63b291a9f 100644 --- a/sys/contrib/dev/acpica/evmisc.c +++ b/sys/contrib/dev/acpica/evmisc.c @@ -1,8 +1,7 @@ /****************************************************************************** * - * Module Name: evmisc - ACPI device notification handler dispatch - * and ACPI Global Lock support - * $Revision: 47 $ + * Module Name: evmisc - Miscellaneous event manager support functions + * $Revision: 48 $ * *****************************************************************************/ @@ -127,6 +126,41 @@ /******************************************************************************* * + * FUNCTION: AcpiEvIsNotifyObject + * + * PARAMETERS: Node - Node to check + * + * RETURN: TRUE if notifies allowed on this object + * + * DESCRIPTION: Check type of node for a object that supports notifies. + * + * TBD: This could be replaced by a flag bit in the node. + * + ******************************************************************************/ + +BOOLEAN +AcpiEvIsNotifyObject ( + ACPI_NAMESPACE_NODE *Node) +{ + switch (Node->Type) + { + case ACPI_TYPE_DEVICE: + case ACPI_TYPE_PROCESSOR: + case ACPI_TYPE_POWER: + case ACPI_TYPE_THERMAL: + /* + * These are the ONLY objects that can receive ACPI notifications + */ + return (TRUE); + + default: + return (FALSE); + } +} + + +/******************************************************************************* + * * FUNCTION: AcpiEvGetGpeRegisterIndex * * PARAMETERS: GpeNumber - Raw GPE number |
