aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acpixf.h
diff options
context:
space:
mode:
authorJohn Keller <jpk@sgi.com>2006-12-19 15:56:19 -0500
committerLen Brown <len.brown@intel.com>2006-12-20 01:51:14 -0500
commit0f0fe1a08aa421266060ac67e50453a06d9ceb63 (patch)
treeadba2e86e815a35fc05b6fd5e5a55362974a444a /include/acpi/acpixf.h
parentf238085415c56618e042252894f2fcc971add645 (diff)
ACPI: Add support for acpi_load_table/acpi_unload_table_id
Make acpi_load_table() available for use by removing it from the #ifdef ACPI_FUTURE_USAGE. Also add a new routine used to unload an ACPI table of a given type and "id" - acpi_unload_table_id(). The implementation of this new routine was almost a direct copy of existing routine acpi_unload_table() - only difference being that it only removes a specific table id instead of ALL tables of a given type. The SN hotplug driver (sgi_hotplug.c) now uses both of these interfaces to dynamically load and unload SSDT ACPI tables. Also, a few other ACPI routines now used by the SN hotplug driver are exported (since the driver can be a loadable module): acpi_ns_map_handle_to_node acpi_ns_convert_entry_to_handle acpi_ns_get_next_node Signed-off-by: Aaron Young <ayoung@sgi.com> Cc: Greg KH <greg@kroah.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acpixf.h')
-rw-r--r--include/acpi/acpixf.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 049e9aa1b867..81458767a90e 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -97,11 +97,12 @@ acpi_find_root_pointer(u32 flags, struct acpi_pointer *rsdp_address);
97 97
98acpi_status acpi_load_tables(void); 98acpi_status acpi_load_tables(void);
99 99
100#ifdef ACPI_FUTURE_USAGE
101acpi_status acpi_load_table(struct acpi_table_header *table_ptr); 100acpi_status acpi_load_table(struct acpi_table_header *table_ptr);
102 101
103acpi_status acpi_unload_table(acpi_table_type table_type); 102acpi_status acpi_unload_table_id(acpi_table_type table_type, acpi_owner_id id);
104 103
104#ifdef ACPI_FUTURE_USAGE
105acpi_status acpi_unload_table(acpi_table_type table_type);
105acpi_status 106acpi_status
106acpi_get_table_header(acpi_table_type table_type, 107acpi_get_table_header(acpi_table_type table_type,
107 u32 instance, struct acpi_table_header *out_table_header); 108 u32 instance, struct acpi_table_header *out_table_header);
@@ -180,6 +181,8 @@ acpi_get_next_object(acpi_object_type type,
180 181
181acpi_status acpi_get_type(acpi_handle object, acpi_object_type * out_type); 182acpi_status acpi_get_type(acpi_handle object, acpi_object_type * out_type);
182 183
184acpi_status acpi_get_id(acpi_handle object, acpi_owner_id * out_type);
185
183acpi_status acpi_get_parent(acpi_handle object, acpi_handle * out_handle); 186acpi_status acpi_get_parent(acpi_handle object, acpi_handle * out_handle);
184 187
185/* 188/*