aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-12-30 19:03:58 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-10 06:36:19 -0500
commitafb1bbee804f473f70dc890a94cb9f0acc358012 (patch)
tree0134588c1d6f57615f848e771079ea530562f420 /include/acpi
parent1cd4e951e59ec1754ceafa41562280b42000707e (diff)
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 <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpixf.h5
-rw-r--r--include/acpi/actypes.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 3c9c783b6604..afacb5a9671a 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -444,6 +444,11 @@ acpi_get_event_resources(acpi_handle device_handle,
444 struct acpi_buffer *ret_buffer); 444 struct acpi_buffer *ret_buffer);
445 445
446acpi_status 446acpi_status
447acpi_walk_resource_buffer(struct acpi_buffer *buffer,
448 acpi_walk_resource_callback user_function,
449 void *context);
450
451acpi_status
447acpi_walk_resources(acpi_handle device, 452acpi_walk_resources(acpi_handle device,
448 char *name, 453 char *name,
449 acpi_walk_resource_callback user_function, void *context); 454 acpi_walk_resource_callback user_function, void *context);
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index 6882227d1706..3de70eddd4e5 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -881,6 +881,10 @@ struct acpi_buffer {
881 void *pointer; /* pointer to buffer */ 881 void *pointer; /* pointer to buffer */
882}; 882};
883 883
884/* Free a buffer created in an struct acpi_buffer via ACPI_ALLOCATE_LOCAL_BUFFER */
885
886#define ACPI_FREE_BUFFER(b) ACPI_FREE(b.pointer)
887
884/* 888/*
885 * name_type for acpi_get_name 889 * name_type for acpi_get_name
886 */ 890 */