mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ACPICA: Resources: New interface, AcpiWalkResourceBuffer.
Implements a new interface for walking resource lists that it at a lower level than the existing AcpiWalkResources. (Method is not executed.) Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
1cd4e951e5
commit
afb1bbee80
3 changed files with 79 additions and 31 deletions
|
|
@ -443,6 +443,11 @@ acpi_status
|
|||
acpi_get_event_resources(acpi_handle device_handle,
|
||||
struct acpi_buffer *ret_buffer);
|
||||
|
||||
acpi_status
|
||||
acpi_walk_resource_buffer(struct acpi_buffer *buffer,
|
||||
acpi_walk_resource_callback user_function,
|
||||
void *context);
|
||||
|
||||
acpi_status
|
||||
acpi_walk_resources(acpi_handle device,
|
||||
char *name,
|
||||
|
|
|
|||
|
|
@ -881,6 +881,10 @@ struct acpi_buffer {
|
|||
void *pointer; /* pointer to buffer */
|
||||
};
|
||||
|
||||
/* Free a buffer created in an struct acpi_buffer via ACPI_ALLOCATE_LOCAL_BUFFER */
|
||||
|
||||
#define ACPI_FREE_BUFFER(b) ACPI_FREE(b.pointer)
|
||||
|
||||
/*
|
||||
* name_type for acpi_get_name
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue