aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2008-09-26 22:22:09 -0400
committerLen Brown <len.brown@intel.com>2008-10-22 23:14:42 -0400
commit8d5c54b65b20bf81fa9841a27143e2f71f3a7756 (patch)
tree8e1c8d7365394ac84c5e182626a3da4a41303c61 /include/acpi
parent23d3e055beb12db2a3b91dfeee474c4d5ecc13b9 (diff)
ACPICA: Add namespace node to operand object union
Add ACPI_NAMESPACE_NODE to the ACPI_OPERAND_OBJECT in order to simplify code that accepts both of these objects. A common type field is used to differentiate them. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acobject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/acpi/acobject.h b/include/acpi/acobject.h
index e9657dac69b7..0ca39265bb0f 100644
--- a/include/acpi/acobject.h
+++ b/include/acpi/acobject.h
@@ -379,6 +379,13 @@ union acpi_operand_object {
379 struct acpi_object_extra extra; 379 struct acpi_object_extra extra;
380 struct acpi_object_data data; 380 struct acpi_object_data data;
381 struct acpi_object_cache_list cache; 381 struct acpi_object_cache_list cache;
382
383 /*
384 * Add namespace node to union in order to simplify code that accepts both
385 * ACPI_OPERAND_OBJECTs and ACPI_NAMESPACE_NODEs. The structures share
386 * a common descriptor_type field in order to differentiate them.
387 */
388 struct acpi_namespace_node node;
382}; 389};
383 390
384/****************************************************************************** 391/******************************************************************************