diff options
Diffstat (limited to 'include/acpi/actables.h')
-rw-r--r-- | include/acpi/actables.h | 127 |
1 files changed, 37 insertions, 90 deletions
diff --git a/include/acpi/actables.h b/include/acpi/actables.h index e6ceb1819643..f92c1858b808 100644 --- a/include/acpi/actables.h +++ b/include/acpi/actables.h | |||
@@ -44,154 +44,101 @@ | |||
44 | #ifndef __ACTABLES_H__ | 44 | #ifndef __ACTABLES_H__ |
45 | #define __ACTABLES_H__ | 45 | #define __ACTABLES_H__ |
46 | 46 | ||
47 | |||
48 | /* Used in acpi_tb_map_acpi_table for size parameter if table header is to be used */ | 47 | /* Used in acpi_tb_map_acpi_table for size parameter if table header is to be used */ |
49 | 48 | ||
50 | #define SIZE_IN_HEADER 0 | 49 | #define SIZE_IN_HEADER 0 |
51 | 50 | ||
52 | |||
53 | /* | 51 | /* |
54 | * tbconvrt - Table conversion routines | 52 | * tbconvrt - Table conversion routines |
55 | */ | 53 | */ |
56 | acpi_status | 54 | acpi_status acpi_tb_convert_to_xsdt(struct acpi_table_desc *table_info); |
57 | acpi_tb_convert_to_xsdt ( | ||
58 | struct acpi_table_desc *table_info); | ||
59 | 55 | ||
60 | acpi_status | 56 | acpi_status acpi_tb_convert_table_fadt(void); |
61 | acpi_tb_convert_table_fadt ( | ||
62 | void); | ||
63 | 57 | ||
64 | acpi_status | 58 | acpi_status acpi_tb_build_common_facs(struct acpi_table_desc *table_info); |
65 | acpi_tb_build_common_facs ( | ||
66 | struct acpi_table_desc *table_info); | ||
67 | 59 | ||
68 | u32 | 60 | u32 |
69 | acpi_tb_get_table_count ( | 61 | acpi_tb_get_table_count(struct rsdp_descriptor *RSDP, |
70 | struct rsdp_descriptor *RSDP, | 62 | struct acpi_table_header *RSDT); |
71 | struct acpi_table_header *RSDT); | ||
72 | |||
73 | 63 | ||
74 | /* | 64 | /* |
75 | * tbget - Table "get" routines | 65 | * tbget - Table "get" routines |
76 | */ | 66 | */ |
77 | acpi_status | 67 | acpi_status |
78 | acpi_tb_get_table ( | 68 | acpi_tb_get_table(struct acpi_pointer *address, |
79 | struct acpi_pointer *address, | 69 | struct acpi_table_desc *table_info); |
80 | struct acpi_table_desc *table_info); | ||
81 | |||
82 | acpi_status | ||
83 | acpi_tb_get_table_header ( | ||
84 | struct acpi_pointer *address, | ||
85 | struct acpi_table_header *return_header); | ||
86 | 70 | ||
87 | acpi_status | 71 | acpi_status |
88 | acpi_tb_get_table_body ( | 72 | acpi_tb_get_table_header(struct acpi_pointer *address, |
89 | struct acpi_pointer *address, | 73 | struct acpi_table_header *return_header); |
90 | struct acpi_table_header *header, | ||
91 | struct acpi_table_desc *table_info); | ||
92 | 74 | ||
93 | acpi_status | 75 | acpi_status |
94 | acpi_tb_get_table_ptr ( | 76 | acpi_tb_get_table_body(struct acpi_pointer *address, |
95 | acpi_table_type table_type, | 77 | struct acpi_table_header *header, |
96 | u32 instance, | 78 | struct acpi_table_desc *table_info); |
97 | struct acpi_table_header **table_ptr_loc); | ||
98 | 79 | ||
99 | acpi_status | 80 | acpi_status |
100 | acpi_tb_verify_rsdp ( | 81 | acpi_tb_get_table_ptr(acpi_table_type table_type, |
101 | struct acpi_pointer *address); | 82 | u32 instance, struct acpi_table_header **table_ptr_loc); |
102 | 83 | ||
103 | void | 84 | acpi_status acpi_tb_verify_rsdp(struct acpi_pointer *address); |
104 | acpi_tb_get_rsdt_address ( | ||
105 | struct acpi_pointer *out_address); | ||
106 | 85 | ||
107 | acpi_status | 86 | void acpi_tb_get_rsdt_address(struct acpi_pointer *out_address); |
108 | acpi_tb_validate_rsdt ( | ||
109 | struct acpi_table_header *table_ptr); | ||
110 | 87 | ||
88 | acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr); | ||
111 | 89 | ||
112 | /* | 90 | /* |
113 | * tbgetall - get multiple required tables | 91 | * tbgetall - get multiple required tables |
114 | */ | 92 | */ |
115 | acpi_status | 93 | acpi_status acpi_tb_get_required_tables(void); |
116 | acpi_tb_get_required_tables ( | ||
117 | void); | ||
118 | |||
119 | 94 | ||
120 | /* | 95 | /* |
121 | * tbinstall - Table installation | 96 | * tbinstall - Table installation |
122 | */ | 97 | */ |
123 | acpi_status | 98 | acpi_status acpi_tb_install_table(struct acpi_table_desc *table_info); |
124 | acpi_tb_install_table ( | ||
125 | struct acpi_table_desc *table_info); | ||
126 | 99 | ||
127 | acpi_status | 100 | acpi_status |
128 | acpi_tb_recognize_table ( | 101 | acpi_tb_recognize_table(struct acpi_table_desc *table_info, u8 search_type); |
129 | struct acpi_table_desc *table_info, | ||
130 | u8 search_type); | ||
131 | 102 | ||
132 | acpi_status | 103 | acpi_status |
133 | acpi_tb_init_table_descriptor ( | 104 | acpi_tb_init_table_descriptor(acpi_table_type table_type, |
134 | acpi_table_type table_type, | 105 | struct acpi_table_desc *table_info); |
135 | struct acpi_table_desc *table_info); | ||
136 | |||
137 | 106 | ||
138 | /* | 107 | /* |
139 | * tbremove - Table removal and deletion | 108 | * tbremove - Table removal and deletion |
140 | */ | 109 | */ |
141 | void | 110 | void acpi_tb_delete_all_tables(void); |
142 | acpi_tb_delete_all_tables ( | ||
143 | void); | ||
144 | |||
145 | void | ||
146 | acpi_tb_delete_tables_by_type ( | ||
147 | acpi_table_type type); | ||
148 | 111 | ||
149 | void | 112 | void acpi_tb_delete_tables_by_type(acpi_table_type type); |
150 | acpi_tb_delete_single_table ( | ||
151 | struct acpi_table_desc *table_desc); | ||
152 | 113 | ||
153 | struct acpi_table_desc * | 114 | void acpi_tb_delete_single_table(struct acpi_table_desc *table_desc); |
154 | acpi_tb_uninstall_table ( | ||
155 | struct acpi_table_desc *table_desc); | ||
156 | 115 | ||
116 | struct acpi_table_desc *acpi_tb_uninstall_table(struct acpi_table_desc | ||
117 | *table_desc); | ||
157 | 118 | ||
158 | /* | 119 | /* |
159 | * tbxfroot - RSDP, RSDT utilities | 120 | * tbxfroot - RSDP, RSDT utilities |
160 | */ | 121 | */ |
161 | acpi_status | 122 | acpi_status |
162 | acpi_tb_find_table ( | 123 | acpi_tb_find_table(char *signature, |
163 | char *signature, | 124 | char *oem_id, |
164 | char *oem_id, | 125 | char *oem_table_id, struct acpi_table_header **table_ptr); |
165 | char *oem_table_id, | ||
166 | struct acpi_table_header **table_ptr); | ||
167 | 126 | ||
168 | acpi_status | 127 | acpi_status acpi_tb_get_table_rsdt(void); |
169 | acpi_tb_get_table_rsdt ( | ||
170 | void); | ||
171 | |||
172 | acpi_status | ||
173 | acpi_tb_validate_rsdp ( | ||
174 | struct rsdp_descriptor *rsdp); | ||
175 | 128 | ||
129 | acpi_status acpi_tb_validate_rsdp(struct rsdp_descriptor *rsdp); | ||
176 | 130 | ||
177 | /* | 131 | /* |
178 | * tbutils - common table utilities | 132 | * tbutils - common table utilities |
179 | */ | 133 | */ |
180 | acpi_status | 134 | acpi_status acpi_tb_is_table_installed(struct acpi_table_desc *new_table_desc); |
181 | acpi_tb_is_table_installed ( | ||
182 | struct acpi_table_desc *new_table_desc); | ||
183 | 135 | ||
184 | acpi_status | 136 | acpi_status |
185 | acpi_tb_verify_table_checksum ( | 137 | acpi_tb_verify_table_checksum(struct acpi_table_header *table_header); |
186 | struct acpi_table_header *table_header); | ||
187 | 138 | ||
188 | u8 | 139 | u8 acpi_tb_generate_checksum(void *buffer, u32 length); |
189 | acpi_tb_generate_checksum ( | ||
190 | void *buffer, | ||
191 | u32 length); | ||
192 | 140 | ||
193 | acpi_status | 141 | acpi_status |
194 | acpi_tb_validate_table_header ( | 142 | acpi_tb_validate_table_header(struct acpi_table_header *table_header); |
195 | struct acpi_table_header *table_header); | ||
196 | 143 | ||
197 | #endif /* __ACTABLES_H__ */ | 144 | #endif /* __ACTABLES_H__ */ |