1 /******************************************************************************
3 * Name: actables.h - ACPI table management
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2005, R. Byron Moore
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
44 #ifndef __ACTABLES_H__
45 #define __ACTABLES_H__
48 /* Used in acpi_tb_map_acpi_table for size parameter if table header is to be used */
50 #define SIZE_IN_HEADER 0
53 #ifdef ACPI_FUTURE_USAGE
55 acpi_tb_handle_to_object (
57 struct acpi_table_desc
**table_desc
);
61 * tbconvrt - Table conversion routines
65 acpi_tb_convert_to_xsdt (
66 struct acpi_table_desc
*table_info
);
69 acpi_tb_convert_table_fadt (
73 acpi_tb_build_common_facs (
74 struct acpi_table_desc
*table_info
);
77 acpi_tb_get_table_count (
78 struct rsdp_descriptor
*RSDP
,
79 struct acpi_table_header
*RSDT
);
82 * tbget - Table "get" routines
87 struct acpi_pointer
*address
,
88 struct acpi_table_desc
*table_info
);
91 acpi_tb_get_table_header (
92 struct acpi_pointer
*address
,
93 struct acpi_table_header
*return_header
);
96 acpi_tb_get_table_body (
97 struct acpi_pointer
*address
,
98 struct acpi_table_header
*header
,
99 struct acpi_table_desc
*table_info
);
102 acpi_tb_get_this_table (
103 struct acpi_pointer
*address
,
104 struct acpi_table_header
*header
,
105 struct acpi_table_desc
*table_info
);
108 acpi_tb_table_override (
109 struct acpi_table_header
*header
,
110 struct acpi_table_desc
*table_info
);
113 acpi_tb_get_table_ptr (
114 acpi_table_type table_type
,
116 struct acpi_table_header
**table_ptr_loc
);
119 acpi_tb_verify_rsdp (
120 struct acpi_pointer
*address
);
123 acpi_tb_get_rsdt_address (
124 struct acpi_pointer
*out_address
);
127 acpi_tb_validate_rsdt (
128 struct acpi_table_header
*table_ptr
);
131 acpi_tb_get_required_tables (
135 acpi_tb_get_primary_table (
136 struct acpi_pointer
*address
,
137 struct acpi_table_desc
*table_info
);
140 acpi_tb_get_secondary_table (
141 struct acpi_pointer
*address
,
142 acpi_string signature
,
143 struct acpi_table_desc
*table_info
);
146 * tbinstall - Table installation
150 acpi_tb_install_table (
151 struct acpi_table_desc
*table_info
);
154 acpi_tb_match_signature (
156 struct acpi_table_desc
*table_info
,
160 acpi_tb_recognize_table (
161 struct acpi_table_desc
*table_info
,
165 acpi_tb_init_table_descriptor (
166 acpi_table_type table_type
,
167 struct acpi_table_desc
*table_info
);
171 * tbremove - Table removal and deletion
175 acpi_tb_delete_all_tables (
179 acpi_tb_delete_tables_by_type (
180 acpi_table_type type
);
183 acpi_tb_delete_single_table (
184 struct acpi_table_desc
*table_desc
);
186 struct acpi_table_desc
*
187 acpi_tb_uninstall_table (
188 struct acpi_table_desc
*table_desc
);
192 * tbrsd - RSDP, RSDT utilities
196 acpi_tb_get_table_rsdt (
200 acpi_tb_scan_memory_for_rsdp (
206 struct acpi_table_desc
*table_info
,
211 * tbutils - common table utilities
219 struct acpi_table_header
**table_ptr
);
222 acpi_tb_verify_table_checksum (
223 struct acpi_table_header
*table_header
);
231 acpi_tb_validate_table_header (
232 struct acpi_table_header
*table_header
);
235 #endif /* __ACTABLES_H__ */