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/acpi/acpixf.h | |
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/acpi/acpixf.h')
-rw-r--r-- | include/acpi/acpixf.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index bd95ecc6e0f..94d94e126e9 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, |