blob: 788f887820126ede28352c5824957f4964a7bcc8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/******************************************************************************
2 *
3 * Name: acdisasm.h - AML disassembler
4 *
5 *****************************************************************************/
6
7/*
Len Brown75a44ce2008-04-23 23:00:13 -04008 * Copyright (C) 2000 - 2008, Intel Corp.
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 Moorea6f4a452008-04-10 19:06:42 +0400100#define ACPI_DMT_ASF 23
101#define ACPI_DMT_DMAR 24
Bob Moore3fa34772008-04-10 19:06:43 +0400102#define ACPI_DMT_HEST 25
103#define ACPI_DMT_HESTNTFY 26
104#define ACPI_DMT_HESTNTYP 27
105#define ACPI_DMT_MADT 28
106#define ACPI_DMT_SRAT 29
107#define ACPI_DMT_EXIT 30
108#define ACPI_DMT_SIG 31
Bob Moore793c2382006-03-31 00:00:00 -0500109
110typedef
Lin Ming3e08e2d2008-04-10 19:06:38 +0400111void (*acpi_dmtable_handler) (struct acpi_table_header * table);
Bob Moore793c2382006-03-31 00:00:00 -0500112
113struct acpi_dmtable_data {
114 char *signature;
115 struct acpi_dmtable_info *table_info;
Lin Ming3e08e2d2008-04-10 19:06:38 +0400116 acpi_dmtable_handler table_handler;
Bob Moore14d64b52007-02-02 19:48:21 +0300117 char *name;
Bob Moore793c2382006-03-31 00:00:00 -0500118};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119
Len Brown4be44fc2005-08-05 00:44:28 -0400120struct acpi_op_walk_info {
121 u32 level;
Bob Moore958dd242006-05-12 17:12:00 -0400122 u32 last_level;
123 u32 count;
Len Brown4be44fc2005-08-05 00:44:28 -0400124 u32 bit_offset;
Bob Moore52fc0b02006-10-02 00:00:00 -0400125 u32 flags;
Len Brown4be44fc2005-08-05 00:44:28 -0400126 struct acpi_walk_state *walk_state;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127};
128
129typedef
Len Brown4be44fc2005-08-05 00:44:28 -0400130acpi_status(*asl_walk_callback) (union acpi_parse_object * op,
131 u32 level, void *context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132
Bob Moore83135242006-10-03 00:00:00 -0400133struct acpi_resource_tag {
134 u32 bit_index;
135 char *tag;
136};
137
Bob Moore793c2382006-03-31 00:00:00 -0500138/* Strings used for decoding flags to ASL keywords */
139
Bob Mooreb229cf92006-04-21 17:15:00 -0400140extern const char *acpi_gbl_word_decode[];
141extern const char *acpi_gbl_irq_decode[];
142extern const char *acpi_gbl_lock_rule[];
143extern const char *acpi_gbl_access_types[];
144extern const char *acpi_gbl_update_rules[];
145extern const char *acpi_gbl_match_ops[];
Bob Moore793c2382006-03-31 00:00:00 -0500146
147extern struct acpi_dmtable_info acpi_dm_table_info_asf0[];
148extern struct acpi_dmtable_info acpi_dm_table_info_asf1[];
Bob Moorecc2a4722007-02-02 19:48:20 +0300149extern struct acpi_dmtable_info acpi_dm_table_info_asf1a[];
Bob Moore793c2382006-03-31 00:00:00 -0500150extern struct acpi_dmtable_info acpi_dm_table_info_asf2[];
Bob Moorecc2a4722007-02-02 19:48:20 +0300151extern struct acpi_dmtable_info acpi_dm_table_info_asf2a[];
Bob Moore793c2382006-03-31 00:00:00 -0500152extern struct acpi_dmtable_info acpi_dm_table_info_asf3[];
153extern struct acpi_dmtable_info acpi_dm_table_info_asf4[];
154extern struct acpi_dmtable_info acpi_dm_table_info_asf_hdr[];
155extern struct acpi_dmtable_info acpi_dm_table_info_boot[];
Bob Moore3fa34772008-04-10 19:06:43 +0400156extern struct acpi_dmtable_info acpi_dm_table_info_bert[];
Bob Moore793c2382006-03-31 00:00:00 -0500157extern struct acpi_dmtable_info acpi_dm_table_info_cpep[];
158extern struct acpi_dmtable_info acpi_dm_table_info_cpep0[];
159extern struct acpi_dmtable_info acpi_dm_table_info_dbgp[];
Bob Moore2502fff2007-02-02 19:48:19 +0300160extern struct acpi_dmtable_info acpi_dm_table_info_dmar[];
161extern struct acpi_dmtable_info acpi_dm_table_info_dmar_hdr[];
162extern struct acpi_dmtable_info acpi_dm_table_info_dmar_scope[];
163extern struct acpi_dmtable_info acpi_dm_table_info_dmar0[];
164extern struct acpi_dmtable_info acpi_dm_table_info_dmar1[];
Bob Moore793c2382006-03-31 00:00:00 -0500165extern struct acpi_dmtable_info acpi_dm_table_info_ecdt[];
Bob Moore3fa34772008-04-10 19:06:43 +0400166extern struct acpi_dmtable_info acpi_dm_table_info_einj[];
167extern struct acpi_dmtable_info acpi_dm_table_info_einj0[];
168extern struct acpi_dmtable_info acpi_dm_table_info_erst[];
Bob Moore793c2382006-03-31 00:00:00 -0500169extern struct acpi_dmtable_info acpi_dm_table_info_facs[];
170extern struct acpi_dmtable_info acpi_dm_table_info_fadt1[];
171extern struct acpi_dmtable_info acpi_dm_table_info_fadt2[];
172extern struct acpi_dmtable_info acpi_dm_table_info_gas[];
173extern struct acpi_dmtable_info acpi_dm_table_info_header[];
Bob Moore3fa34772008-04-10 19:06:43 +0400174extern struct acpi_dmtable_info acpi_dm_table_info_hest[];
175extern struct acpi_dmtable_info acpi_dm_table_info_hest9[];
176extern struct acpi_dmtable_info acpi_dm_table_info_hest_notify[];
Bob Moore793c2382006-03-31 00:00:00 -0500177extern struct acpi_dmtable_info acpi_dm_table_info_hpet[];
178extern struct acpi_dmtable_info acpi_dm_table_info_madt[];
179extern struct acpi_dmtable_info acpi_dm_table_info_madt0[];
180extern struct acpi_dmtable_info acpi_dm_table_info_madt1[];
181extern struct acpi_dmtable_info acpi_dm_table_info_madt2[];
182extern struct acpi_dmtable_info acpi_dm_table_info_madt3[];
183extern struct acpi_dmtable_info acpi_dm_table_info_madt4[];
184extern struct acpi_dmtable_info acpi_dm_table_info_madt5[];
185extern struct acpi_dmtable_info acpi_dm_table_info_madt6[];
186extern struct acpi_dmtable_info acpi_dm_table_info_madt7[];
187extern struct acpi_dmtable_info acpi_dm_table_info_madt8[];
188extern struct acpi_dmtable_info acpi_dm_table_info_madt_hdr[];
189extern struct acpi_dmtable_info acpi_dm_table_info_mcfg[];
190extern struct acpi_dmtable_info acpi_dm_table_info_mcfg0[];
191extern struct acpi_dmtable_info acpi_dm_table_info_rsdp1[];
192extern struct acpi_dmtable_info acpi_dm_table_info_rsdp2[];
193extern struct acpi_dmtable_info acpi_dm_table_info_sbst[];
Bob Moore698c0a02008-04-10 19:06:38 +0400194extern struct acpi_dmtable_info acpi_dm_table_info_slic[];
Bob Moore793c2382006-03-31 00:00:00 -0500195extern struct acpi_dmtable_info acpi_dm_table_info_slit[];
196extern struct acpi_dmtable_info acpi_dm_table_info_spcr[];
197extern struct acpi_dmtable_info acpi_dm_table_info_spmi[];
198extern struct acpi_dmtable_info acpi_dm_table_info_srat[];
199extern struct acpi_dmtable_info acpi_dm_table_info_srat0[];
200extern struct acpi_dmtable_info acpi_dm_table_info_srat1[];
201extern struct acpi_dmtable_info acpi_dm_table_info_tcpa[];
202extern struct acpi_dmtable_info acpi_dm_table_info_wdrt[];
203
204/*
205 * dmtable
206 */
207void acpi_dm_dump_data_table(struct acpi_table_header *table);
208
Bob Moorea6f4a452008-04-10 19:06:42 +0400209acpi_status
Bob Moore793c2382006-03-31 00:00:00 -0500210acpi_dm_dump_table(u32 table_length,
211 u32 table_offset,
212 void *table,
213 u32 sub_table_length, struct acpi_dmtable_info *info);
214
215void acpi_dm_line_header(u32 offset, u32 byte_length, char *name);
216
217void acpi_dm_line_header2(u32 offset, u32 byte_length, char *name, u32 value);
218
219/*
220 * dmtbdump
221 */
222void acpi_dm_dump_asf(struct acpi_table_header *table);
223
224void acpi_dm_dump_cpep(struct acpi_table_header *table);
225
Bob Moore2502fff2007-02-02 19:48:19 +0300226void acpi_dm_dump_dmar(struct acpi_table_header *table);
227
Bob Moore3fa34772008-04-10 19:06:43 +0400228void acpi_dm_dump_einj(struct acpi_table_header *table);
229
230void acpi_dm_dump_erst(struct acpi_table_header *table);
231
Bob Moore793c2382006-03-31 00:00:00 -0500232void acpi_dm_dump_fadt(struct acpi_table_header *table);
233
Bob Moore3fa34772008-04-10 19:06:43 +0400234void acpi_dm_dump_hest(struct acpi_table_header *table);
Bob Moore793c2382006-03-31 00:00:00 -0500235
236void acpi_dm_dump_mcfg(struct acpi_table_header *table);
237
238void acpi_dm_dump_madt(struct acpi_table_header *table);
239
240u32 acpi_dm_dump_rsdp(struct acpi_table_header *table);
241
242void acpi_dm_dump_rsdt(struct acpi_table_header *table);
243
244void acpi_dm_dump_slit(struct acpi_table_header *table);
245
Bob Moore3fa34772008-04-10 19:06:43 +0400246void acpi_dm_dump_srat(struct acpi_table_header *table);
247
Bob Moore793c2382006-03-31 00:00:00 -0500248void acpi_dm_dump_xsdt(struct acpi_table_header *table);
249
Linus Torvalds1da177e2005-04-16 15:20:36 -0700250/*
251 * dmwalk
252 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253void
Len Brown4be44fc2005-08-05 00:44:28 -0400254acpi_dm_disassemble(struct acpi_walk_state *walk_state,
255 union acpi_parse_object *origin, u32 num_opcodes);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700256
Bob Moore83135242006-10-03 00:00:00 -0400257void
258acpi_dm_walk_parse_tree(union acpi_parse_object *op,
259 asl_walk_callback descending_callback,
260 asl_walk_callback ascending_callback, void *context);
261
Robert Moore44f6c012005-04-18 22:49:35 -0400262/*
263 * dmopcode
264 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265void
Len Brown4be44fc2005-08-05 00:44:28 -0400266acpi_dm_disassemble_one_op(struct acpi_walk_state *walk_state,
267 struct acpi_op_walk_info *info,
268 union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269
Len Brown4be44fc2005-08-05 00:44:28 -0400270void acpi_dm_decode_internal_object(union acpi_operand_object *obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700271
Len Brown4be44fc2005-08-05 00:44:28 -0400272u32 acpi_dm_list_type(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700273
Len Brown4be44fc2005-08-05 00:44:28 -0400274void acpi_dm_method_flags(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700275
Len Brown4be44fc2005-08-05 00:44:28 -0400276void acpi_dm_field_flags(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277
Len Brown4be44fc2005-08-05 00:44:28 -0400278void acpi_dm_address_space(u8 space_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700279
Len Brown4be44fc2005-08-05 00:44:28 -0400280void acpi_dm_region_flags(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281
Len Brown4be44fc2005-08-05 00:44:28 -0400282void acpi_dm_match_op(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700283
Len Brown4be44fc2005-08-05 00:44:28 -0400284u8 acpi_dm_comma_if_list_member(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285
Len Brown4be44fc2005-08-05 00:44:28 -0400286void acpi_dm_comma_if_field_member(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287
288/*
Robert Moore44f6c012005-04-18 22:49:35 -0400289 * dmnames
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290 */
Len Brown4be44fc2005-08-05 00:44:28 -0400291u32 acpi_dm_dump_name(char *name);
Robert Moore44f6c012005-04-18 22:49:35 -0400292
293acpi_status
Len Brown4be44fc2005-08-05 00:44:28 -0400294acpi_ps_display_object_pathname(struct acpi_walk_state *walk_state,
295 union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700296
Len Brown4be44fc2005-08-05 00:44:28 -0400297void acpi_dm_namestring(char *name);
Robert Moore44f6c012005-04-18 22:49:35 -0400298
299/*
300 * dmobject
301 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700302void
Len Brown4be44fc2005-08-05 00:44:28 -0400303acpi_dm_display_internal_object(union acpi_operand_object *obj_desc,
304 struct acpi_walk_state *walk_state);
305
306void acpi_dm_display_arguments(struct acpi_walk_state *walk_state);
307
308void acpi_dm_display_locals(struct acpi_walk_state *walk_state);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309
310void
Len Brown4be44fc2005-08-05 00:44:28 -0400311acpi_dm_dump_method_info(acpi_status status,
312 struct acpi_walk_state *walk_state,
313 union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700314
315/*
316 * dmbuffer
317 */
Len Brown4be44fc2005-08-05 00:44:28 -0400318void acpi_dm_disasm_byte_list(u32 level, u8 * byte_data, u32 byte_count);
Robert Moore44f6c012005-04-18 22:49:35 -0400319
320void
Len Brown4be44fc2005-08-05 00:44:28 -0400321acpi_dm_byte_list(struct acpi_op_walk_info *info, union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322
Len Brown4be44fc2005-08-05 00:44:28 -0400323void acpi_dm_is_eisa_id(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324
Len Brown4be44fc2005-08-05 00:44:28 -0400325void acpi_dm_eisa_id(u32 encoded_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700326
Len Brown4be44fc2005-08-05 00:44:28 -0400327u8 acpi_dm_is_unicode_buffer(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328
Len Brown4be44fc2005-08-05 00:44:28 -0400329u8 acpi_dm_is_string_buffer(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330
331/*
332 * dmresrc
333 */
Bob Moore08978312005-10-21 00:00:00 -0400334void acpi_dm_dump_integer8(u8 value, char *name);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335
Bob Moore08978312005-10-21 00:00:00 -0400336void acpi_dm_dump_integer16(u16 value, char *name);
337
338void acpi_dm_dump_integer32(u32 value, char *name);
339
340void acpi_dm_dump_integer64(u64 value, char *name);
341
342void
343acpi_dm_resource_template(struct acpi_op_walk_info *info,
Bob Moore83135242006-10-03 00:00:00 -0400344 union acpi_parse_object *op,
Bob Moore08978312005-10-21 00:00:00 -0400345 u8 * byte_data, u32 byte_count);
346
Bob Moorecc2a4722007-02-02 19:48:20 +0300347acpi_status acpi_dm_is_resource_template(union acpi_parse_object *op);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348
Len Brown4be44fc2005-08-05 00:44:28 -0400349void acpi_dm_indent(u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700350
Len Brown4be44fc2005-08-05 00:44:28 -0400351void acpi_dm_bit_list(u16 mask);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700352
Len Brown4be44fc2005-08-05 00:44:28 -0400353void acpi_dm_decode_attribute(u8 attribute);
Robert Moore44f6c012005-04-18 22:49:35 -0400354
Bob Moore83135242006-10-03 00:00:00 -0400355void acpi_dm_descriptor_name(void);
356
Linus Torvalds1da177e2005-04-16 15:20:36 -0700357/*
358 * dmresrcl
359 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360void
Bob Moore50eca3e2005-09-30 19:03:00 -0400361acpi_dm_word_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700362
363void
Bob Moore50eca3e2005-09-30 19:03:00 -0400364acpi_dm_dword_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365
366void
Bob Moore50eca3e2005-09-30 19:03:00 -0400367acpi_dm_extended_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400368 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700369
370void
Bob Moore50eca3e2005-09-30 19:03:00 -0400371acpi_dm_qword_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372
373void
Bob Moore50eca3e2005-09-30 19:03:00 -0400374acpi_dm_memory24_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
377void
Bob Moore50eca3e2005-09-30 19:03:00 -0400378acpi_dm_memory32_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400379 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700380
381void
Bob Moore50eca3e2005-09-30 19:03:00 -0400382acpi_dm_fixed_memory32_descriptor(union aml_resource *resource,
Robert Moorebda663d2005-09-16 16:51:15 -0400383 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384
385void
Bob Moore50eca3e2005-09-30 19:03:00 -0400386acpi_dm_generic_register_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400387 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700388
389void
Bob Moore50eca3e2005-09-30 19:03:00 -0400390acpi_dm_interrupt_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400391 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392
393void
Bob Moore50eca3e2005-09-30 19:03:00 -0400394acpi_dm_vendor_large_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400395 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396
Bob Moore08978312005-10-21 00:00:00 -0400397void acpi_dm_vendor_common(char *name, u8 * byte_data, u32 length, u32 level);
398
Linus Torvalds1da177e2005-04-16 15:20:36 -0700399/*
400 * dmresrcs
401 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700402void
Bob Moore50eca3e2005-09-30 19:03:00 -0400403acpi_dm_irq_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404
405void
Bob Moore50eca3e2005-09-30 19:03:00 -0400406acpi_dm_dma_descriptor(union aml_resource *resource, u32 length, u32 level);
407
408void acpi_dm_io_descriptor(union aml_resource *resource, u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409
410void
Bob Moore50eca3e2005-09-30 19:03:00 -0400411acpi_dm_fixed_io_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400412 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413
414void
Bob Moore50eca3e2005-09-30 19:03:00 -0400415acpi_dm_start_dependent_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400416 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700417
418void
Bob Moore50eca3e2005-09-30 19:03:00 -0400419acpi_dm_end_dependent_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400420 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421
422void
Bob Moore50eca3e2005-09-30 19:03:00 -0400423acpi_dm_vendor_small_descriptor(union aml_resource *resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400424 u32 length, u32 level);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425
426/*
427 * dmutils
428 */
Bob Moore958dd242006-05-12 17:12:00 -0400429void acpi_dm_add_to_external_list(char *path, u8 type, u32 value);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430
Bob Moore83135242006-10-03 00:00:00 -0400431/*
432 * dmrestag
433 */
434void acpi_dm_find_resources(union acpi_parse_object *root);
435
436void
437acpi_dm_check_resource_reference(union acpi_parse_object *op,
438 struct acpi_walk_state *walk_state);
439
Len Brown4be44fc2005-08-05 00:44:28 -0400440#endif /* __ACDISASM_H__ */