blob: b29d77a8ff5799bfaa1bebff11c70f8743cc4562 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/******************************************************************************
2 *
3 * Name: acdisasm.h - AML disassembler
4 *
5 *****************************************************************************/
6
7/*
Bob Moore4a90c7e2006-01-13 16:22:00 -05008 * Copyright (C) 2000 - 2006, R. Byron Moore
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
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.
25 *
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.
29 *
30 * NO WARRANTY
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.
42 */
43
44#ifndef __ACDISASM_H__
45#define __ACDISASM_H__
46
47#include "amlresrc.h"
48
Linus Torvalds1da177e2005-04-16 15:20:36 -070049#define BLOCK_NONE 0
50#define BLOCK_PAREN 1
51#define BLOCK_BRACE 2
52#define BLOCK_COMMA_LIST 4
Bob Moore83135242006-10-03 00:00:00 -040053#define ACPI_DEFAULT_RESNAME *(u32 *) "__RD"
Linus Torvalds1da177e2005-04-16 15:20:36 -070054
Len Brown4be44fc2005-08-05 00:44:28 -040055struct acpi_external_list {
56 char *path;
Bob Moore958dd242006-05-12 17:12:00 -040057 char *internal_path;
Len Brown4be44fc2005-08-05 00:44:28 -040058 struct acpi_external_list *next;
Bob Moore958dd242006-05-12 17:12:00 -040059 u32 value;
60 u16 length;
61 u8 type;
Linus Torvalds1da177e2005-04-16 15:20:36 -070062};
63
Len Brown4be44fc2005-08-05 00:44:28 -040064extern struct acpi_external_list *acpi_gbl_external_list;
Linus Torvalds1da177e2005-04-16 15:20:36 -070065
Bob Moore793c2382006-03-31 00:00:00 -050066typedef const struct acpi_dmtable_info {
67 u8 opcode;
68 u8 offset;
69 char *name;
Bob Mooredefba1d2005-12-16 17:05:00 -050070
Bob Moore793c2382006-03-31 00:00:00 -050071} acpi_dmtable_info;
72
73/*
74 * Values for Opcode above.
75 * Note: 0-7 must not change, used as a flag shift value
76 */
77#define ACPI_DMT_FLAG0 0
78#define ACPI_DMT_FLAG1 1
79#define ACPI_DMT_FLAG2 2
80#define ACPI_DMT_FLAG3 3
81#define ACPI_DMT_FLAG4 4
82#define ACPI_DMT_FLAG5 5
83#define ACPI_DMT_FLAG6 6
84#define ACPI_DMT_FLAG7 7
85#define ACPI_DMT_FLAGS0 8
86#define ACPI_DMT_FLAGS2 9
87#define ACPI_DMT_UINT8 10
88#define ACPI_DMT_UINT16 11
89#define ACPI_DMT_UINT24 12
90#define ACPI_DMT_UINT32 13
91#define ACPI_DMT_UINT56 14
92#define ACPI_DMT_UINT64 15
93#define ACPI_DMT_STRING 16
94#define ACPI_DMT_NAME4 17
95#define ACPI_DMT_NAME6 18
96#define ACPI_DMT_NAME8 19
97#define ACPI_DMT_CHKSUM 20
98#define ACPI_DMT_SPACEID 21
99#define ACPI_DMT_GAS 22
Bob Moore2502fff2007-02-02 19:48:19 +0300100#define ACPI_DMT_DMAR 23
101#define ACPI_DMT_MADT 24
102#define ACPI_DMT_SRAT 25
103#define ACPI_DMT_EXIT 26
Bob Moore793c2382006-03-31 00:00:00 -0500104
105typedef
106void (*ACPI_TABLE_HANDLER) (struct acpi_table_header * table);
107
108struct acpi_dmtable_data {
109 char *signature;
110 struct acpi_dmtable_info *table_info;
111 ACPI_TABLE_HANDLER table_handler;
112};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113
Len Brown4be44fc2005-08-05 00:44:28 -0400114struct acpi_op_walk_info {
115 u32 level;
Bob Moore958dd242006-05-12 17:12:00 -0400116 u32 last_level;
117 u32 count;
Len Brown4be44fc2005-08-05 00:44:28 -0400118 u32 bit_offset;
Bob Moore52fc0b02006-10-02 00:00:00 -0400119 u32 flags;
Len Brown4be44fc2005-08-05 00:44:28 -0400120 struct acpi_walk_state *walk_state;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121};
122
123typedef
Len Brown4be44fc2005-08-05 00:44:28 -0400124acpi_status(*asl_walk_callback) (union acpi_parse_object * op,
125 u32 level, void *context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126
Bob Moore83135242006-10-03 00:00:00 -0400127struct acpi_resource_tag {
128 u32 bit_index;
129 char *tag;
130};
131
Bob Moore793c2382006-03-31 00:00:00 -0500132/* Strings used for decoding flags to ASL keywords */
133
Bob Mooreb229cf92006-04-21 17:15:00 -0400134extern const char *acpi_gbl_word_decode[];
135extern const char *acpi_gbl_irq_decode[];
136extern const char *acpi_gbl_lock_rule[];
137extern const char *acpi_gbl_access_types[];
138extern const char *acpi_gbl_update_rules[];
139extern const char *acpi_gbl_match_ops[];
Bob Moore793c2382006-03-31 00:00:00 -0500140
141extern struct acpi_dmtable_info acpi_dm_table_info_asf0[];
142extern struct acpi_dmtable_info acpi_dm_table_info_asf1[];
Bob Moorecc2a4722007-02-02 19:48:20 +0300143extern struct acpi_dmtable_info acpi_dm_table_info_asf1a[];
Bob Moore793c2382006-03-31 00:00:00 -0500144extern struct acpi_dmtable_info acpi_dm_table_info_asf2[];
Bob Moorecc2a4722007-02-02 19:48:20 +0300145extern struct acpi_dmtable_info acpi_dm_table_info_asf2a[];
Bob Moore793c2382006-03-31 00:00:00 -0500146extern struct acpi_dmtable_info acpi_dm_table_info_asf3[];
147extern struct acpi_dmtable_info acpi_dm_table_info_asf4[];
148extern struct acpi_dmtable_info acpi_dm_table_info_asf_hdr[];
149extern struct acpi_dmtable_info acpi_dm_table_info_boot[];
150extern struct acpi_dmtable_info acpi_dm_table_info_cpep[];
151extern struct acpi_dmtable_info acpi_dm_table_info_cpep0[];
152extern struct acpi_dmtable_info acpi_dm_table_info_dbgp[];
Bob Moore2502fff2007-02-02 19:48:19 +0300153extern struct acpi_dmtable_info acpi_dm_table_info_dmar[];
154extern struct acpi_dmtable_info acpi_dm_table_info_dmar_hdr[];
155extern struct acpi_dmtable_info acpi_dm_table_info_dmar_scope[];
156extern struct acpi_dmtable_info acpi_dm_table_info_dmar0[];
157extern struct acpi_dmtable_info acpi_dm_table_info_dmar1[];
Bob Moore793c2382006-03-31 00:00:00 -0500158extern struct acpi_dmtable_info acpi_dm_table_info_ecdt[];
159extern struct acpi_dmtable_info acpi_dm_table_info_facs[];
160extern struct acpi_dmtable_info acpi_dm_table_info_fadt1[];
161extern struct acpi_dmtable_info acpi_dm_table_info_fadt2[];
162extern struct acpi_dmtable_info acpi_dm_table_info_gas[];
163extern struct acpi_dmtable_info acpi_dm_table_info_header[];
164extern struct acpi_dmtable_info acpi_dm_table_info_hpet[];
165extern struct acpi_dmtable_info acpi_dm_table_info_madt[];
166extern struct acpi_dmtable_info acpi_dm_table_info_madt0[];
167extern struct acpi_dmtable_info acpi_dm_table_info_madt1[];
168extern struct acpi_dmtable_info acpi_dm_table_info_madt2[];
169extern struct acpi_dmtable_info acpi_dm_table_info_madt3[];
170extern struct acpi_dmtable_info acpi_dm_table_info_madt4[];
171extern struct acpi_dmtable_info acpi_dm_table_info_madt5[];
172extern struct acpi_dmtable_info acpi_dm_table_info_madt6[];
173extern struct acpi_dmtable_info acpi_dm_table_info_madt7[];
174extern struct acpi_dmtable_info acpi_dm_table_info_madt8[];
175extern struct acpi_dmtable_info acpi_dm_table_info_madt_hdr[];
176extern struct acpi_dmtable_info acpi_dm_table_info_mcfg[];
177extern struct acpi_dmtable_info acpi_dm_table_info_mcfg0[];
178extern struct acpi_dmtable_info acpi_dm_table_info_rsdp1[];
179extern struct acpi_dmtable_info acpi_dm_table_info_rsdp2[];
180extern struct acpi_dmtable_info acpi_dm_table_info_sbst[];
181extern struct acpi_dmtable_info acpi_dm_table_info_slit[];
182extern struct acpi_dmtable_info acpi_dm_table_info_spcr[];
183extern struct acpi_dmtable_info acpi_dm_table_info_spmi[];
184extern struct acpi_dmtable_info acpi_dm_table_info_srat[];
185extern struct acpi_dmtable_info acpi_dm_table_info_srat0[];
186extern struct acpi_dmtable_info acpi_dm_table_info_srat1[];
187extern struct acpi_dmtable_info acpi_dm_table_info_tcpa[];
188extern struct acpi_dmtable_info acpi_dm_table_info_wdrt[];
189
190/*
191 * dmtable
192 */
193void acpi_dm_dump_data_table(struct acpi_table_header *table);
194
195void
196acpi_dm_dump_table(u32 table_length,
197 u32 table_offset,
198 void *table,
199 u32 sub_table_length, struct acpi_dmtable_info *info);
200
201void acpi_dm_line_header(u32 offset, u32 byte_length, char *name);
202
203void acpi_dm_line_header2(u32 offset, u32 byte_length, char *name, u32 value);
204
205/*
206 * dmtbdump
207 */
208void acpi_dm_dump_asf(struct acpi_table_header *table);
209
210void acpi_dm_dump_cpep(struct acpi_table_header *table);
211
Bob Moore2502fff2007-02-02 19:48:19 +0300212void acpi_dm_dump_dmar(struct acpi_table_header *table);
213
Bob Moore793c2382006-03-31 00:00:00 -0500214void acpi_dm_dump_fadt(struct acpi_table_header *table);
215
216void acpi_dm_dump_srat(struct acpi_table_header *table);
217
218void acpi_dm_dump_mcfg(struct acpi_table_header *table);
219
220void acpi_dm_dump_madt(struct acpi_table_header *table);
221
222u32 acpi_dm_dump_rsdp(struct acpi_table_header *table);
223
224void acpi_dm_dump_rsdt(struct acpi_table_header *table);
225
226void acpi_dm_dump_slit(struct acpi_table_header *table);
227
228void acpi_dm_dump_xsdt(struct acpi_table_header *table);
229
Linus Torvalds1da177e2005-04-16 15:20:36 -0700230/*
231 * dmwalk
232 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233void
Len Brown4be44fc2005-08-05 00:44:28 -0400234acpi_dm_disassemble(struct acpi_walk_state *walk_state,
235 union acpi_parse_object *origin, u32 num_opcodes);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700236
Bob Moore83135242006-10-03 00:00:00 -0400237void
238acpi_dm_walk_parse_tree(union acpi_parse_object *op,
239 asl_walk_callback descending_callback,
240 asl_walk_callback ascending_callback, void *context);
241
Robert Moore44f6c012005-04-18 22:49:35 -0400242/*
243 * dmopcode
244 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700245void
Len Brown4be44fc2005-08-05 00:44:28 -0400246acpi_dm_disassemble_one_op(struct acpi_walk_state *walk_state,
247 struct acpi_op_walk_info *info,
248 union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249
Len Brown4be44fc2005-08-05 00:44:28 -0400250void acpi_dm_decode_internal_object(union acpi_operand_object *obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251
Len Brown4be44fc2005-08-05 00:44:28 -0400252u32 acpi_dm_list_type(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253
Len Brown4be44fc2005-08-05 00:44:28 -0400254void acpi_dm_method_flags(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255
Len Brown4be44fc2005-08-05 00:44:28 -0400256void acpi_dm_field_flags(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257
Len Brown4be44fc2005-08-05 00:44:28 -0400258void acpi_dm_address_space(u8 space_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700259
Len Brown4be44fc2005-08-05 00:44:28 -0400260void acpi_dm_region_flags(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261
Len Brown4be44fc2005-08-05 00:44:28 -0400262void acpi_dm_match_op(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263
Len Brown4be44fc2005-08-05 00:44:28 -0400264u8 acpi_dm_comma_if_list_member(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265
Len Brown4be44fc2005-08-05 00:44:28 -0400266void acpi_dm_comma_if_field_member(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267
268/*
Robert Moore44f6c012005-04-18 22:49:35 -0400269 * dmnames
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270 */
Len Brown4be44fc2005-08-05 00:44:28 -0400271u32 acpi_dm_dump_name(char *name);
Robert Moore44f6c012005-04-18 22:49:35 -0400272
273acpi_status
Len Brown4be44fc2005-08-05 00:44:28 -0400274acpi_ps_display_object_pathname(struct acpi_walk_state *walk_state,
275 union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700276
Len Brown4be44fc2005-08-05 00:44:28 -0400277void acpi_dm_namestring(char *name);
Robert Moore44f6c012005-04-18 22:49:35 -0400278
279/*
280 * dmobject
281 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282void
Len Brown4be44fc2005-08-05 00:44:28 -0400283acpi_dm_display_internal_object(union acpi_operand_object *obj_desc,
284 struct acpi_walk_state *walk_state);
285
286void acpi_dm_display_arguments(struct acpi_walk_state *walk_state);
287
288void acpi_dm_display_locals(struct acpi_walk_state *walk_state);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700289
290void
Len Brown4be44fc2005-08-05 00:44:28 -0400291acpi_dm_dump_method_info(acpi_status status,
292 struct acpi_walk_state *walk_state,
293 union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700294
295/*
296 * dmbuffer
297 */
Len Brown4be44fc2005-08-05 00:44:28 -0400298void acpi_dm_disasm_byte_list(u32 level, u8 * byte_data, u32 byte_count);
Robert Moore44f6c012005-04-18 22:49:35 -0400299
300void
Len Brown4be44fc2005-08-05 00:44:28 -0400301acpi_dm_byte_list(struct acpi_op_walk_info *info, union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700302
Len Brown4be44fc2005-08-05 00:44:28 -0400303void acpi_dm_is_eisa_id(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304
Len Brown4be44fc2005-08-05 00:44:28 -0400305void acpi_dm_eisa_id(u32 encoded_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700306
Len Brown4be44fc2005-08-05 00:44:28 -0400307u8 acpi_dm_is_unicode_buffer(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308
Len Brown4be44fc2005-08-05 00:44:28 -0400309u8 acpi_dm_is_string_buffer(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310
311/*
312 * dmresrc
313 */
Bob Moore08978312005-10-21 00:00:00 -0400314void acpi_dm_dump_integer8(u8 value, char *name);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700315
Bob Moore08978312005-10-21 00:00:00 -0400316void acpi_dm_dump_integer16(u16 value, char *name);
317
318void acpi_dm_dump_integer32(u32 value, char *name);
319
320void acpi_dm_dump_integer64(u64 value, char *name);
321
322void
323acpi_dm_resource_template(struct acpi_op_walk_info *info,
Bob Moore83135242006-10-03 00:00:00 -0400324 union acpi_parse_object *op,
Bob Moore08978312005-10-21 00:00:00 -0400325 u8 * byte_data, u32 byte_count);
326
Bob Moorecc2a4722007-02-02 19:48:20 +0300327acpi_status acpi_dm_is_resource_template(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328
Len Brown4be44fc2005-08-05 00:44:28 -0400329void acpi_dm_indent(u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330
Len Brown4be44fc2005-08-05 00:44:28 -0400331void acpi_dm_bit_list(u16 mask);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332
Len Brown4be44fc2005-08-05 00:44:28 -0400333void acpi_dm_decode_attribute(u8 attribute);
Robert Moore44f6c012005-04-18 22:49:35 -0400334
Bob Moore83135242006-10-03 00:00:00 -0400335void acpi_dm_descriptor_name(void);
336
Linus Torvalds1da177e2005-04-16 15:20:36 -0700337/*
338 * dmresrcl
339 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700340void
Bob Moore50eca3e2005-09-30 19:03:00 -0400341acpi_dm_word_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700342
343void
Bob Moore50eca3e2005-09-30 19:03:00 -0400344acpi_dm_dword_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345
346void
Bob Moore50eca3e2005-09-30 19:03:00 -0400347acpi_dm_extended_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400348 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349
350void
Bob Moore50eca3e2005-09-30 19:03:00 -0400351acpi_dm_qword_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700352
353void
Bob Moore50eca3e2005-09-30 19:03:00 -0400354acpi_dm_memory24_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400355 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356
357void
Bob Moore50eca3e2005-09-30 19:03:00 -0400358acpi_dm_memory32_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400359 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360
361void
Bob Moore50eca3e2005-09-30 19:03:00 -0400362acpi_dm_fixed_memory32_descriptor(union aml_resource *resource,
Robert Moorebda663d2005-09-16 16:51:15 -0400363 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364
365void
Bob Moore50eca3e2005-09-30 19:03:00 -0400366acpi_dm_generic_register_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400367 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368
369void
Bob Moore50eca3e2005-09-30 19:03:00 -0400370acpi_dm_interrupt_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400371 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372
373void
Bob Moore50eca3e2005-09-30 19:03:00 -0400374acpi_dm_vendor_large_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400375 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700376
Bob Moore08978312005-10-21 00:00:00 -0400377void acpi_dm_vendor_common(char *name, u8 * byte_data, u32 length, u32 level);
378
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379/*
380 * dmresrcs
381 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382void
Bob Moore50eca3e2005-09-30 19:03:00 -0400383acpi_dm_irq_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384
385void
Bob Moore50eca3e2005-09-30 19:03:00 -0400386acpi_dm_dma_descriptor(union aml_resource *resource, u32 length, u32 level);
387
388void acpi_dm_io_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700389
390void
Bob Moore50eca3e2005-09-30 19:03:00 -0400391acpi_dm_fixed_io_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400392 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700393
394void
Bob Moore50eca3e2005-09-30 19:03:00 -0400395acpi_dm_start_dependent_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400396 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397
398void
Bob Moore50eca3e2005-09-30 19:03:00 -0400399acpi_dm_end_dependent_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400400 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401
402void
Bob Moore50eca3e2005-09-30 19:03:00 -0400403acpi_dm_vendor_small_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400404 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405
406/*
407 * dmutils
408 */
Bob Moore958dd242006-05-12 17:12:00 -0400409void acpi_dm_add_to_external_list(char *path, u8 type, u32 value);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700410
Bob Moore83135242006-10-03 00:00:00 -0400411/*
412 * dmrestag
413 */
414void acpi_dm_find_resources(union acpi_parse_object *root);
415
416void
417acpi_dm_check_resource_reference(union acpi_parse_object *op,
418 struct acpi_walk_state *walk_state);
419
Len Brown4be44fc2005-08-05 00:44:28 -0400420#endif /* __ACDISASM_H__ */