mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ACPICA/ACPI: Add new host interfaces for _OSI support
Adds install/remove interfaces so that the host can dynamically alter the global _OSI table. Also adds support for _OSI handlers. Additional support: new debugger command (osi), and test support in the acpiexec utility. Adds new file, utilities/utosi.c. ACPICA bugzilla 836. The Linux OSL _OSI code is also changed. acpi_osi_setup can't call acpi_install/remove_interface because ACPICA is not initialized yet at this early time. So we just save the osi string in acpi_osi_setup and will handle it later in a new function acpi_osi_setup_late. http://www.acpica.org/bugzilla/show_bug.cgi?id=836 Signed-off-by: Lin Ming <[email protected]> Signed-off-by: Bob Moore <[email protected] Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
09387b4315
commit
b0ed7a915a
15 changed files with 602 additions and 196 deletions
|
|
@ -239,9 +239,6 @@ acpi_os_derive_pci_id(acpi_handle device,
|
|||
/*
|
||||
* Miscellaneous
|
||||
*/
|
||||
acpi_status acpi_os_validate_interface(char *interface);
|
||||
acpi_status acpi_osi_invalidate(char* interface);
|
||||
|
||||
acpi_status
|
||||
acpi_os_validate_address(u8 space_id, acpi_physical_address address,
|
||||
acpi_size length, char *name);
|
||||
|
|
|
|||
|
|
@ -105,6 +105,10 @@ const char *acpi_format_exception(acpi_status exception);
|
|||
|
||||
acpi_status acpi_purge_cached_objects(void);
|
||||
|
||||
acpi_status acpi_install_interface(acpi_string interface_name);
|
||||
|
||||
acpi_status acpi_remove_interface(acpi_string interface_name);
|
||||
|
||||
/*
|
||||
* ACPI Memory management
|
||||
*/
|
||||
|
|
@ -263,6 +267,8 @@ acpi_remove_gpe_handler(acpi_handle gpe_device,
|
|||
acpi_status acpi_install_exception_handler(acpi_exception_handler handler);
|
||||
#endif
|
||||
|
||||
acpi_status acpi_install_interface_handler(acpi_interface_handler handler);
|
||||
|
||||
/*
|
||||
* Event interfaces
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -950,6 +950,9 @@ acpi_status(*acpi_walk_callback) (acpi_handle object,
|
|||
u32 nesting_level,
|
||||
void *context, void **return_value);
|
||||
|
||||
typedef
|
||||
u32 (*acpi_interface_handler) (acpi_string interface_name, u32 supported);
|
||||
|
||||
/* Interrupt handler return values */
|
||||
|
||||
#define ACPI_INTERRUPT_NOT_HANDLED 0x00
|
||||
|
|
|
|||
Loading…
Reference in a new issue