aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-05-02 23:08:19 -0400
committerLen Brown <len.brown@intel.com>2012-06-01 11:51:50 -0400
commit86ed4bc83abf530cf2019044b74f89a39dfd6425 (patch)
tree7cd21414f6121486079be2ca9cb9ff0a7722e01b /include/acpi
parent5134abfcfb4a8a9ef42c82dabad05762fbf04376 (diff)
ACPICA: Add support for multiple notify handlers
This change adds support to allow multiple notify handlers on Device, ThermalZone, and Processor objects. Also re-worked and restructured the entire notify support code for handler installation, handler removal, notify event queuing, and notify dispatch to handler. Extends and updates original commit 3f0be67("ACPI / ACPICA: Multiple system notify handlers per device") by Rafael Wysocki. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/actypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index e8bcc4742e0e..0339a2d93f1d 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -706,10 +706,14 @@ typedef u32 acpi_event_status;
706#define ACPI_DEVICE_NOTIFY 0x2 706#define ACPI_DEVICE_NOTIFY 0x2
707#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY) 707#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY)
708#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3 708#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3
709#define ACPI_NUM_NOTIFY_TYPES 2
709 710
710#define ACPI_MAX_SYS_NOTIFY 0x7F 711#define ACPI_MAX_SYS_NOTIFY 0x7F
711#define ACPI_MAX_DEVICE_SPECIFIC_NOTIFY 0xBF 712#define ACPI_MAX_DEVICE_SPECIFIC_NOTIFY 0xBF
712 713
714#define ACPI_SYSTEM_HANDLER_LIST 0 /* Used as index, must be SYSTEM_NOTIFY -1 */
715#define ACPI_DEVICE_HANDLER_LIST 1 /* Used as index, must be DEVICE_NOTIFY -1 */
716
713/* Address Space (Operation Region) Types */ 717/* Address Space (Operation Region) Types */
714 718
715typedef u8 acpi_adr_space_type; 719typedef u8 acpi_adr_space_type;