diff options
author | Zhang Rui <rui.zhang@intel.com> | 2008-06-19 21:42:47 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:04 -0400 |
commit | 71b58cbb0c30d1f78636a48c4721529449d6ea37 (patch) | |
tree | b2271201121c7ecd4d275b19772dcc1e64575712 /include | |
parent | 9c9f6d052dc6f469431461a97d49cf9c5558b8ad (diff) |
ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space
Allow users to enable/disable/clear a specific & valid GPE/Fixed Event
in user space.
This is useful for debugging, especially for some
interrupt storm issues.
All wakeup GPEs are disabled and they can not be enabled at runtime,
and we mark them as invalid.
All GPEs that don't have a _Lxx/_Exx method are marked as invalid.
All Fixed Events that don't have an event handler are marked as invalid
and they can't be enabled until an event handler is registered.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Ling Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/achware.h | 2 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/include/acpi/achware.h b/include/acpi/achware.h index 45e985961f4c..97a72b193276 100644 --- a/include/acpi/achware.h +++ b/include/acpi/achware.h | |||
@@ -102,11 +102,9 @@ acpi_status | |||
102 | acpi_hw_clear_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, | 102 | acpi_hw_clear_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
103 | struct acpi_gpe_block_info *gpe_block); | 103 | struct acpi_gpe_block_info *gpe_block); |
104 | 104 | ||
105 | #ifdef ACPI_FUTURE_USAGE | ||
106 | acpi_status | 105 | acpi_status |
107 | acpi_hw_get_gpe_status(struct acpi_gpe_event_info *gpe_event_info, | 106 | acpi_hw_get_gpe_status(struct acpi_gpe_event_info *gpe_event_info, |
108 | acpi_event_status * event_status); | 107 | acpi_event_status * event_status); |
109 | #endif /* ACPI_FUTURE_USAGE */ | ||
110 | 108 | ||
111 | acpi_status acpi_hw_disable_all_gpes(void); | 109 | acpi_status acpi_hw_disable_all_gpes(void); |
112 | 110 | ||
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index bd95ecc6e0fa..94d94e126e9f 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -248,9 +248,7 @@ acpi_status acpi_disable_event(u32 event, u32 flags); | |||
248 | 248 | ||
249 | acpi_status acpi_clear_event(u32 event); | 249 | acpi_status acpi_clear_event(u32 event); |
250 | 250 | ||
251 | #ifdef ACPI_FUTURE_USAGE | ||
252 | acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status); | 251 | acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status); |
253 | #endif /* ACPI_FUTURE_USAGE */ | ||
254 | 252 | ||
255 | acpi_status acpi_set_gpe_type(acpi_handle gpe_device, u32 gpe_number, u8 type); | 253 | acpi_status acpi_set_gpe_type(acpi_handle gpe_device, u32 gpe_number, u8 type); |
256 | 254 | ||
@@ -260,12 +258,10 @@ acpi_status acpi_disable_gpe(acpi_handle gpe_device, u32 gpe_number, u32 flags); | |||
260 | 258 | ||
261 | acpi_status acpi_clear_gpe(acpi_handle gpe_device, u32 gpe_number, u32 flags); | 259 | acpi_status acpi_clear_gpe(acpi_handle gpe_device, u32 gpe_number, u32 flags); |
262 | 260 | ||
263 | #ifdef ACPI_FUTURE_USAGE | ||
264 | acpi_status | 261 | acpi_status |
265 | acpi_get_gpe_status(acpi_handle gpe_device, | 262 | acpi_get_gpe_status(acpi_handle gpe_device, |
266 | u32 gpe_number, | 263 | u32 gpe_number, |
267 | u32 flags, acpi_event_status * event_status); | 264 | u32 flags, acpi_event_status * event_status); |
268 | #endif /* ACPI_FUTURE_USAGE */ | ||
269 | 265 | ||
270 | acpi_status | 266 | acpi_status |
271 | acpi_install_gpe_block(acpi_handle gpe_device, | 267 | acpi_install_gpe_block(acpi_handle gpe_device, |