Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Name: acdisasm.h - AML disassembler |
| 4 | * |
| 5 | *****************************************************************************/ |
| 6 | |
| 7 | /* |
Bob Moore | 4a90c7e | 2006-01-13 16:22:00 -0500 | [diff] [blame] | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | #define BLOCK_NONE 0 |
| 50 | #define BLOCK_PAREN 1 |
| 51 | #define BLOCK_BRACE 2 |
| 52 | #define BLOCK_COMMA_LIST 4 |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 53 | #define ACPI_DEFAULT_RESNAME *(u32 *) "__RD" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 55 | struct acpi_external_list { |
| 56 | char *path; |
| 57 | struct acpi_external_list *next; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | }; |
| 59 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 60 | extern struct acpi_external_list *acpi_gbl_external_list; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame^] | 62 | typedef const struct acpi_dmtable_info { |
| 63 | u8 opcode; |
| 64 | u8 offset; |
| 65 | char *name; |
Bob Moore | defba1d | 2005-12-16 17:05:00 -0500 | [diff] [blame] | 66 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame^] | 67 | } acpi_dmtable_info; |
| 68 | |
| 69 | /* |
| 70 | * Values for Opcode above. |
| 71 | * Note: 0-7 must not change, used as a flag shift value |
| 72 | */ |
| 73 | #define ACPI_DMT_FLAG0 0 |
| 74 | #define ACPI_DMT_FLAG1 1 |
| 75 | #define ACPI_DMT_FLAG2 2 |
| 76 | #define ACPI_DMT_FLAG3 3 |
| 77 | #define ACPI_DMT_FLAG4 4 |
| 78 | #define ACPI_DMT_FLAG5 5 |
| 79 | #define ACPI_DMT_FLAG6 6 |
| 80 | #define ACPI_DMT_FLAG7 7 |
| 81 | #define ACPI_DMT_FLAGS0 8 |
| 82 | #define ACPI_DMT_FLAGS2 9 |
| 83 | #define ACPI_DMT_UINT8 10 |
| 84 | #define ACPI_DMT_UINT16 11 |
| 85 | #define ACPI_DMT_UINT24 12 |
| 86 | #define ACPI_DMT_UINT32 13 |
| 87 | #define ACPI_DMT_UINT56 14 |
| 88 | #define ACPI_DMT_UINT64 15 |
| 89 | #define ACPI_DMT_STRING 16 |
| 90 | #define ACPI_DMT_NAME4 17 |
| 91 | #define ACPI_DMT_NAME6 18 |
| 92 | #define ACPI_DMT_NAME8 19 |
| 93 | #define ACPI_DMT_CHKSUM 20 |
| 94 | #define ACPI_DMT_SPACEID 21 |
| 95 | #define ACPI_DMT_GAS 22 |
| 96 | #define ACPI_DMT_MADT 23 |
| 97 | #define ACPI_DMT_SRAT 24 |
| 98 | #define ACPI_DMT_EXIT 25 |
| 99 | |
| 100 | typedef |
| 101 | void (*ACPI_TABLE_HANDLER) (struct acpi_table_header * table); |
| 102 | |
| 103 | struct acpi_dmtable_data { |
| 104 | char *signature; |
| 105 | struct acpi_dmtable_info *table_info; |
| 106 | ACPI_TABLE_HANDLER table_handler; |
| 107 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 108 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 109 | struct acpi_op_walk_info { |
| 110 | u32 level; |
| 111 | u32 bit_offset; |
Bob Moore | 52fc0b0 | 2006-10-02 00:00:00 -0400 | [diff] [blame] | 112 | u32 flags; |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 113 | struct acpi_walk_state *walk_state; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | typedef |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 117 | acpi_status(*asl_walk_callback) (union acpi_parse_object * op, |
| 118 | u32 level, void *context); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 120 | struct acpi_resource_tag { |
| 121 | u32 bit_index; |
| 122 | char *tag; |
| 123 | }; |
| 124 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame^] | 125 | /* Strings used for decoding flags to ASL keywords */ |
| 126 | |
| 127 | extern const char *acpi_gbl_word_decode[4]; |
| 128 | extern const char *acpi_gbl_irq_decode[2]; |
| 129 | extern const char *acpi_gbl_lock_rule[ACPI_NUM_LOCK_RULES]; |
| 130 | extern const char *acpi_gbl_access_types[ACPI_NUM_ACCESS_TYPES]; |
| 131 | extern const char *acpi_gbl_update_rules[ACPI_NUM_UPDATE_RULES]; |
| 132 | extern const char *acpi_gbl_match_ops[ACPI_NUM_MATCH_OPS]; |
| 133 | |
| 134 | extern struct acpi_dmtable_info acpi_dm_table_info_asf0[]; |
| 135 | extern struct acpi_dmtable_info acpi_dm_table_info_asf1[]; |
| 136 | extern struct acpi_dmtable_info acpi_dm_table_info_asf2[]; |
| 137 | extern struct acpi_dmtable_info acpi_dm_table_info_asf3[]; |
| 138 | extern struct acpi_dmtable_info acpi_dm_table_info_asf4[]; |
| 139 | extern struct acpi_dmtable_info acpi_dm_table_info_asf_hdr[]; |
| 140 | extern struct acpi_dmtable_info acpi_dm_table_info_boot[]; |
| 141 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep[]; |
| 142 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep0[]; |
| 143 | extern struct acpi_dmtable_info acpi_dm_table_info_dbgp[]; |
| 144 | extern struct acpi_dmtable_info acpi_dm_table_info_ecdt[]; |
| 145 | extern struct acpi_dmtable_info acpi_dm_table_info_facs[]; |
| 146 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt1[]; |
| 147 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt2[]; |
| 148 | extern struct acpi_dmtable_info acpi_dm_table_info_gas[]; |
| 149 | extern struct acpi_dmtable_info acpi_dm_table_info_header[]; |
| 150 | extern struct acpi_dmtable_info acpi_dm_table_info_hpet[]; |
| 151 | extern struct acpi_dmtable_info acpi_dm_table_info_madt[]; |
| 152 | extern struct acpi_dmtable_info acpi_dm_table_info_madt0[]; |
| 153 | extern struct acpi_dmtable_info acpi_dm_table_info_madt1[]; |
| 154 | extern struct acpi_dmtable_info acpi_dm_table_info_madt2[]; |
| 155 | extern struct acpi_dmtable_info acpi_dm_table_info_madt3[]; |
| 156 | extern struct acpi_dmtable_info acpi_dm_table_info_madt4[]; |
| 157 | extern struct acpi_dmtable_info acpi_dm_table_info_madt5[]; |
| 158 | extern struct acpi_dmtable_info acpi_dm_table_info_madt6[]; |
| 159 | extern struct acpi_dmtable_info acpi_dm_table_info_madt7[]; |
| 160 | extern struct acpi_dmtable_info acpi_dm_table_info_madt8[]; |
| 161 | extern struct acpi_dmtable_info acpi_dm_table_info_madt_hdr[]; |
| 162 | extern struct acpi_dmtable_info acpi_dm_table_info_mcfg[]; |
| 163 | extern struct acpi_dmtable_info acpi_dm_table_info_mcfg0[]; |
| 164 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp1[]; |
| 165 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp2[]; |
| 166 | extern struct acpi_dmtable_info acpi_dm_table_info_sbst[]; |
| 167 | extern struct acpi_dmtable_info acpi_dm_table_info_slit[]; |
| 168 | extern struct acpi_dmtable_info acpi_dm_table_info_spcr[]; |
| 169 | extern struct acpi_dmtable_info acpi_dm_table_info_spmi[]; |
| 170 | extern struct acpi_dmtable_info acpi_dm_table_info_srat[]; |
| 171 | extern struct acpi_dmtable_info acpi_dm_table_info_srat0[]; |
| 172 | extern struct acpi_dmtable_info acpi_dm_table_info_srat1[]; |
| 173 | extern struct acpi_dmtable_info acpi_dm_table_info_tcpa[]; |
| 174 | extern struct acpi_dmtable_info acpi_dm_table_info_wdrt[]; |
| 175 | |
| 176 | /* |
| 177 | * dmtable |
| 178 | */ |
| 179 | void acpi_dm_dump_data_table(struct acpi_table_header *table); |
| 180 | |
| 181 | void |
| 182 | acpi_dm_dump_table(u32 table_length, |
| 183 | u32 table_offset, |
| 184 | void *table, |
| 185 | u32 sub_table_length, struct acpi_dmtable_info *info); |
| 186 | |
| 187 | void acpi_dm_line_header(u32 offset, u32 byte_length, char *name); |
| 188 | |
| 189 | void acpi_dm_line_header2(u32 offset, u32 byte_length, char *name, u32 value); |
| 190 | |
| 191 | /* |
| 192 | * dmtbdump |
| 193 | */ |
| 194 | void acpi_dm_dump_asf(struct acpi_table_header *table); |
| 195 | |
| 196 | void acpi_dm_dump_cpep(struct acpi_table_header *table); |
| 197 | |
| 198 | void acpi_dm_dump_fadt(struct acpi_table_header *table); |
| 199 | |
| 200 | void acpi_dm_dump_srat(struct acpi_table_header *table); |
| 201 | |
| 202 | void acpi_dm_dump_mcfg(struct acpi_table_header *table); |
| 203 | |
| 204 | void acpi_dm_dump_madt(struct acpi_table_header *table); |
| 205 | |
| 206 | u32 acpi_dm_dump_rsdp(struct acpi_table_header *table); |
| 207 | |
| 208 | void acpi_dm_dump_rsdt(struct acpi_table_header *table); |
| 209 | |
| 210 | void acpi_dm_dump_slit(struct acpi_table_header *table); |
| 211 | |
| 212 | void acpi_dm_dump_xsdt(struct acpi_table_header *table); |
| 213 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | /* |
| 215 | * dmwalk |
| 216 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 217 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 218 | acpi_dm_disassemble(struct acpi_walk_state *walk_state, |
| 219 | union acpi_parse_object *origin, u32 num_opcodes); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 220 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 221 | void |
| 222 | acpi_dm_walk_parse_tree(union acpi_parse_object *op, |
| 223 | asl_walk_callback descending_callback, |
| 224 | asl_walk_callback ascending_callback, void *context); |
| 225 | |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 226 | /* |
| 227 | * dmopcode |
| 228 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 229 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 230 | acpi_dm_disassemble_one_op(struct acpi_walk_state *walk_state, |
| 231 | struct acpi_op_walk_info *info, |
| 232 | union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 234 | void acpi_dm_decode_internal_object(union acpi_operand_object *obj_desc); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 235 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 236 | u32 acpi_dm_list_type(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 237 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 238 | void acpi_dm_method_flags(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 239 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 240 | void acpi_dm_field_flags(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 241 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 242 | void acpi_dm_address_space(u8 space_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 243 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 244 | void acpi_dm_region_flags(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 245 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 246 | void acpi_dm_match_op(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 247 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 248 | u8 acpi_dm_comma_if_list_member(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 250 | void acpi_dm_comma_if_field_member(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 251 | |
| 252 | /* |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 253 | * dmnames |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 254 | */ |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 255 | u32 acpi_dm_dump_name(char *name); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 256 | |
| 257 | acpi_status |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 258 | acpi_ps_display_object_pathname(struct acpi_walk_state *walk_state, |
| 259 | union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 260 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 261 | void acpi_dm_namestring(char *name); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 262 | |
| 263 | /* |
| 264 | * dmobject |
| 265 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 266 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 267 | acpi_dm_display_internal_object(union acpi_operand_object *obj_desc, |
| 268 | struct acpi_walk_state *walk_state); |
| 269 | |
| 270 | void acpi_dm_display_arguments(struct acpi_walk_state *walk_state); |
| 271 | |
| 272 | void acpi_dm_display_locals(struct acpi_walk_state *walk_state); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 273 | |
| 274 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 275 | acpi_dm_dump_method_info(acpi_status status, |
| 276 | struct acpi_walk_state *walk_state, |
| 277 | union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 278 | |
| 279 | /* |
| 280 | * dmbuffer |
| 281 | */ |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 282 | void acpi_dm_disasm_byte_list(u32 level, u8 * byte_data, u32 byte_count); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 283 | |
| 284 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 285 | acpi_dm_byte_list(struct acpi_op_walk_info *info, union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 286 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 287 | void acpi_dm_is_eisa_id(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 288 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 289 | void acpi_dm_eisa_id(u32 encoded_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 290 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 291 | u8 acpi_dm_is_unicode_buffer(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 292 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 293 | u8 acpi_dm_is_string_buffer(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 294 | |
| 295 | /* |
| 296 | * dmresrc |
| 297 | */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 298 | void acpi_dm_dump_integer8(u8 value, char *name); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 299 | |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 300 | void acpi_dm_dump_integer16(u16 value, char *name); |
| 301 | |
| 302 | void acpi_dm_dump_integer32(u32 value, char *name); |
| 303 | |
| 304 | void acpi_dm_dump_integer64(u64 value, char *name); |
| 305 | |
| 306 | void |
| 307 | acpi_dm_resource_template(struct acpi_op_walk_info *info, |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 308 | union acpi_parse_object *op, |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 309 | u8 * byte_data, u32 byte_count); |
| 310 | |
| 311 | u8 acpi_dm_is_resource_template(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 312 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 313 | void acpi_dm_indent(u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 314 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 315 | void acpi_dm_bit_list(u16 mask); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 316 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 317 | void acpi_dm_decode_attribute(u8 attribute); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 318 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 319 | void acpi_dm_descriptor_name(void); |
| 320 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | /* |
| 322 | * dmresrcl |
| 323 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 324 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 325 | acpi_dm_word_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 326 | |
| 327 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 328 | acpi_dm_dword_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 329 | |
| 330 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 331 | acpi_dm_extended_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 332 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 333 | |
| 334 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 335 | acpi_dm_qword_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 336 | |
| 337 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 338 | acpi_dm_memory24_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 339 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 340 | |
| 341 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 342 | acpi_dm_memory32_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 343 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 344 | |
| 345 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 346 | acpi_dm_fixed_memory32_descriptor(union aml_resource *resource, |
Robert Moore | bda663d | 2005-09-16 16:51:15 -0400 | [diff] [blame] | 347 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 348 | |
| 349 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 350 | acpi_dm_generic_register_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 351 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 352 | |
| 353 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 354 | acpi_dm_interrupt_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 355 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 356 | |
| 357 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 358 | acpi_dm_vendor_large_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 359 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 360 | |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 361 | void acpi_dm_vendor_common(char *name, u8 * byte_data, u32 length, u32 level); |
| 362 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 363 | /* |
| 364 | * dmresrcs |
| 365 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 366 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 367 | acpi_dm_irq_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 368 | |
| 369 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 370 | acpi_dm_dma_descriptor(union aml_resource *resource, u32 length, u32 level); |
| 371 | |
| 372 | void acpi_dm_io_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 373 | |
| 374 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 375 | acpi_dm_fixed_io_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 376 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 377 | |
| 378 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 379 | acpi_dm_start_dependent_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 380 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 381 | |
| 382 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 383 | acpi_dm_end_dependent_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 384 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 385 | |
| 386 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 387 | acpi_dm_vendor_small_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 388 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 389 | |
| 390 | /* |
| 391 | * dmutils |
| 392 | */ |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 393 | void acpi_dm_add_to_external_list(char *path); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 394 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 395 | /* |
| 396 | * dmrestag |
| 397 | */ |
| 398 | void acpi_dm_find_resources(union acpi_parse_object *root); |
| 399 | |
| 400 | void |
| 401 | acpi_dm_check_resource_reference(union acpi_parse_object *op, |
| 402 | struct acpi_walk_state *walk_state); |
| 403 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 404 | #endif /* __ACDISASM_H__ */ |