aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acdisasm.h
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2005-09-30 19:03:00 -0400
committerLen Brown <len.brown@intel.com>2005-12-10 00:20:25 -0500
commit50eca3eb89d73d9f0aa070b126c7ee6a616016ab (patch)
treeb2d06d21b34b9bd17eea4c53cff1f3866fa1b21d /include/acpi/acdisasm.h
parent3d5271f9883cba7b54762bc4fe027d4172f06db7 (diff)
[ACPI] ACPICA 20050930
Completed a major overhaul of the Resource Manager code - specifically, optimizations in the area of the AML/internal resource conversion code. The code has been optimized to simplify and eliminate duplicated code, CPU stack use has been decreased by optimizing function parameters and local variables, and naming conventions across the manager have been standardized for clarity and ease of maintenance (this includes function, parameter, variable, and struct/typedef names.) All Resource Manager dispatch and information tables have been moved to a single location for clarity and ease of maintenance. One new file was created, named "rsinfo.c". The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to guarantee that the argument is not evaluated twice, making them less prone to macro side-effects. However, since there exists the possibility of additional stack use if a particular compiler cannot optimize them (such as in the debug generation case), the original macros are optionally available. Note that some invocations of the return_VALUE macro may now cause size mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to eliminate these. (From Randy Dunlap) Implemented a new mechanism to enable debug tracing for individual control methods. A new external interface, acpi_debug_trace(), is provided to enable this mechanism. The intent is to allow the host OS to easily enable and disable tracing for problematic control methods. This interface can be easily exposed to a user or debugger interface if desired. See the file psxface.c for details. acpi_ut_callocate() will now return a valid pointer if a length of zero is specified - a length of one is used and a warning is issued. This matches the behavior of acpi_ut_allocate(). Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acdisasm.h')
-rw-r--r--include/acpi/acdisasm.h40
1 files changed, 17 insertions, 23 deletions
diff --git a/include/acpi/acdisasm.h b/include/acpi/acdisasm.h
index 759b4cff4f88..b2921b869bb4 100644
--- a/include/acpi/acdisasm.h
+++ b/include/acpi/acdisasm.h
@@ -187,73 +187,67 @@ void acpi_dm_decode_attribute(u8 attribute);
187 * dmresrcl 187 * dmresrcl
188 */ 188 */
189void 189void
190acpi_dm_word_descriptor(union asl_resource_desc *resource, 190acpi_dm_word_descriptor(union aml_resource *resource, u32 length, u32 level);
191 u32 length, u32 level);
192 191
193void 192void
194acpi_dm_dword_descriptor(union asl_resource_desc *resource, 193acpi_dm_dword_descriptor(union aml_resource *resource, u32 length, u32 level);
195 u32 length, u32 level);
196 194
197void 195void
198acpi_dm_extended_descriptor(union asl_resource_desc *resource, 196acpi_dm_extended_descriptor(union aml_resource *resource,
199 u32 length, u32 level); 197 u32 length, u32 level);
200 198
201void 199void
202acpi_dm_qword_descriptor(union asl_resource_desc *resource, 200acpi_dm_qword_descriptor(union aml_resource *resource, u32 length, u32 level);
203 u32 length, u32 level);
204 201
205void 202void
206acpi_dm_memory24_descriptor(union asl_resource_desc *resource, 203acpi_dm_memory24_descriptor(union aml_resource *resource,
207 u32 length, u32 level); 204 u32 length, u32 level);
208 205
209void 206void
210acpi_dm_memory32_descriptor(union asl_resource_desc *resource, 207acpi_dm_memory32_descriptor(union aml_resource *resource,
211 u32 length, u32 level); 208 u32 length, u32 level);
212 209
213void 210void
214acpi_dm_fixed_memory32_descriptor(union asl_resource_desc *resource, 211acpi_dm_fixed_memory32_descriptor(union aml_resource *resource,
215 u32 length, u32 level); 212 u32 length, u32 level);
216 213
217void 214void
218acpi_dm_generic_register_descriptor(union asl_resource_desc *resource, 215acpi_dm_generic_register_descriptor(union aml_resource *resource,
219 u32 length, u32 level); 216 u32 length, u32 level);
220 217
221void 218void
222acpi_dm_interrupt_descriptor(union asl_resource_desc *resource, 219acpi_dm_interrupt_descriptor(union aml_resource *resource,
223 u32 length, u32 level); 220 u32 length, u32 level);
224 221
225void 222void
226acpi_dm_vendor_large_descriptor(union asl_resource_desc *resource, 223acpi_dm_vendor_large_descriptor(union aml_resource *resource,
227 u32 length, u32 level); 224 u32 length, u32 level);
228 225
229/* 226/*
230 * dmresrcs 227 * dmresrcs
231 */ 228 */
232void 229void
233acpi_dm_irq_descriptor(union asl_resource_desc *resource, 230acpi_dm_irq_descriptor(union aml_resource *resource, u32 length, u32 level);
234 u32 length, u32 level);
235 231
236void 232void
237acpi_dm_dma_descriptor(union asl_resource_desc *resource, 233acpi_dm_dma_descriptor(union aml_resource *resource, u32 length, u32 level);
238 u32 length, u32 level);
239 234
240void 235void acpi_dm_io_descriptor(union aml_resource *resource, u32 length, u32 level);
241acpi_dm_io_descriptor(union asl_resource_desc *resource, u32 length, u32 level);
242 236
243void 237void
244acpi_dm_fixed_io_descriptor(union asl_resource_desc *resource, 238acpi_dm_fixed_io_descriptor(union aml_resource *resource,
245 u32 length, u32 level); 239 u32 length, u32 level);
246 240
247void 241void
248acpi_dm_start_dependent_descriptor(union asl_resource_desc *resource, 242acpi_dm_start_dependent_descriptor(union aml_resource *resource,
249 u32 length, u32 level); 243 u32 length, u32 level);
250 244
251void 245void
252acpi_dm_end_dependent_descriptor(union asl_resource_desc *resource, 246acpi_dm_end_dependent_descriptor(union aml_resource *resource,
253 u32 length, u32 level); 247 u32 length, u32 level);
254 248
255void 249void
256acpi_dm_vendor_small_descriptor(union asl_resource_desc *resource, 250acpi_dm_vendor_small_descriptor(union aml_resource *resource,
257 u32 length, u32 level); 251 u32 length, u32 level);
258 252
259/* 253/*