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 | 6c9deb7 | 2007-02-02 19:48:24 +0300 | [diff] [blame] | 8 | * Copyright (C) 2000 - 2007, 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; |
Bob Moore | 958dd24 | 2006-05-12 17:12:00 -0400 | [diff] [blame] | 57 | char *internal_path; |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 58 | struct acpi_external_list *next; |
Bob Moore | 958dd24 | 2006-05-12 17:12:00 -0400 | [diff] [blame] | 59 | u32 value; |
| 60 | u16 length; |
| 61 | u8 type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | }; |
| 63 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 64 | extern struct acpi_external_list *acpi_gbl_external_list; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 66 | typedef const struct acpi_dmtable_info { |
| 67 | u8 opcode; |
| 68 | u8 offset; |
| 69 | char *name; |
Bob Moore | defba1d | 2005-12-16 17:05:00 -0500 | [diff] [blame] | 70 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 71 | } 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 Moore | a6f4a45 | 2008-04-10 19:06:42 +0400 | [diff] [blame^] | 100 | #define ACPI_DMT_ASF 23 |
| 101 | #define ACPI_DMT_DMAR 24 |
| 102 | #define ACPI_DMT_MADT 25 |
| 103 | #define ACPI_DMT_SRAT 26 |
| 104 | #define ACPI_DMT_EXIT 27 |
| 105 | #define ACPI_DMT_SIG 28 |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 106 | |
| 107 | typedef |
Lin Ming | 3e08e2d | 2008-04-10 19:06:38 +0400 | [diff] [blame] | 108 | void (*acpi_dmtable_handler) (struct acpi_table_header * table); |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 109 | |
| 110 | struct acpi_dmtable_data { |
| 111 | char *signature; |
| 112 | struct acpi_dmtable_info *table_info; |
Lin Ming | 3e08e2d | 2008-04-10 19:06:38 +0400 | [diff] [blame] | 113 | acpi_dmtable_handler table_handler; |
Bob Moore | 14d64b5 | 2007-02-02 19:48:21 +0300 | [diff] [blame] | 114 | char *name; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 115 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 117 | struct acpi_op_walk_info { |
| 118 | u32 level; |
Bob Moore | 958dd24 | 2006-05-12 17:12:00 -0400 | [diff] [blame] | 119 | u32 last_level; |
| 120 | u32 count; |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 121 | u32 bit_offset; |
Bob Moore | 52fc0b0 | 2006-10-02 00:00:00 -0400 | [diff] [blame] | 122 | u32 flags; |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 123 | struct acpi_walk_state *walk_state; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 124 | }; |
| 125 | |
| 126 | typedef |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 127 | acpi_status(*asl_walk_callback) (union acpi_parse_object * op, |
| 128 | u32 level, void *context); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 129 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 130 | struct acpi_resource_tag { |
| 131 | u32 bit_index; |
| 132 | char *tag; |
| 133 | }; |
| 134 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 135 | /* Strings used for decoding flags to ASL keywords */ |
| 136 | |
Bob Moore | b229cf9 | 2006-04-21 17:15:00 -0400 | [diff] [blame] | 137 | extern const char *acpi_gbl_word_decode[]; |
| 138 | extern const char *acpi_gbl_irq_decode[]; |
| 139 | extern const char *acpi_gbl_lock_rule[]; |
| 140 | extern const char *acpi_gbl_access_types[]; |
| 141 | extern const char *acpi_gbl_update_rules[]; |
| 142 | extern const char *acpi_gbl_match_ops[]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 143 | |
| 144 | extern struct acpi_dmtable_info acpi_dm_table_info_asf0[]; |
| 145 | extern struct acpi_dmtable_info acpi_dm_table_info_asf1[]; |
Bob Moore | cc2a472 | 2007-02-02 19:48:20 +0300 | [diff] [blame] | 146 | extern struct acpi_dmtable_info acpi_dm_table_info_asf1a[]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 147 | extern struct acpi_dmtable_info acpi_dm_table_info_asf2[]; |
Bob Moore | cc2a472 | 2007-02-02 19:48:20 +0300 | [diff] [blame] | 148 | extern struct acpi_dmtable_info acpi_dm_table_info_asf2a[]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 149 | extern struct acpi_dmtable_info acpi_dm_table_info_asf3[]; |
| 150 | extern struct acpi_dmtable_info acpi_dm_table_info_asf4[]; |
| 151 | extern struct acpi_dmtable_info acpi_dm_table_info_asf_hdr[]; |
| 152 | extern struct acpi_dmtable_info acpi_dm_table_info_boot[]; |
| 153 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep[]; |
| 154 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep0[]; |
| 155 | extern struct acpi_dmtable_info acpi_dm_table_info_dbgp[]; |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 156 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar[]; |
| 157 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar_hdr[]; |
| 158 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar_scope[]; |
| 159 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar0[]; |
| 160 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar1[]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 161 | extern struct acpi_dmtable_info acpi_dm_table_info_ecdt[]; |
| 162 | extern struct acpi_dmtable_info acpi_dm_table_info_facs[]; |
| 163 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt1[]; |
| 164 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt2[]; |
| 165 | extern struct acpi_dmtable_info acpi_dm_table_info_gas[]; |
| 166 | extern struct acpi_dmtable_info acpi_dm_table_info_header[]; |
| 167 | extern struct acpi_dmtable_info acpi_dm_table_info_hpet[]; |
| 168 | extern struct acpi_dmtable_info acpi_dm_table_info_madt[]; |
| 169 | extern struct acpi_dmtable_info acpi_dm_table_info_madt0[]; |
| 170 | extern struct acpi_dmtable_info acpi_dm_table_info_madt1[]; |
| 171 | extern struct acpi_dmtable_info acpi_dm_table_info_madt2[]; |
| 172 | extern struct acpi_dmtable_info acpi_dm_table_info_madt3[]; |
| 173 | extern struct acpi_dmtable_info acpi_dm_table_info_madt4[]; |
| 174 | extern struct acpi_dmtable_info acpi_dm_table_info_madt5[]; |
| 175 | extern struct acpi_dmtable_info acpi_dm_table_info_madt6[]; |
| 176 | extern struct acpi_dmtable_info acpi_dm_table_info_madt7[]; |
| 177 | extern struct acpi_dmtable_info acpi_dm_table_info_madt8[]; |
| 178 | extern struct acpi_dmtable_info acpi_dm_table_info_madt_hdr[]; |
| 179 | extern struct acpi_dmtable_info acpi_dm_table_info_mcfg[]; |
| 180 | extern struct acpi_dmtable_info acpi_dm_table_info_mcfg0[]; |
| 181 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp1[]; |
| 182 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp2[]; |
| 183 | extern struct acpi_dmtable_info acpi_dm_table_info_sbst[]; |
Bob Moore | 698c0a0 | 2008-04-10 19:06:38 +0400 | [diff] [blame] | 184 | extern struct acpi_dmtable_info acpi_dm_table_info_slic[]; |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 185 | extern struct acpi_dmtable_info acpi_dm_table_info_slit[]; |
| 186 | extern struct acpi_dmtable_info acpi_dm_table_info_spcr[]; |
| 187 | extern struct acpi_dmtable_info acpi_dm_table_info_spmi[]; |
| 188 | extern struct acpi_dmtable_info acpi_dm_table_info_srat[]; |
| 189 | extern struct acpi_dmtable_info acpi_dm_table_info_srat0[]; |
| 190 | extern struct acpi_dmtable_info acpi_dm_table_info_srat1[]; |
| 191 | extern struct acpi_dmtable_info acpi_dm_table_info_tcpa[]; |
| 192 | extern struct acpi_dmtable_info acpi_dm_table_info_wdrt[]; |
| 193 | |
| 194 | /* |
| 195 | * dmtable |
| 196 | */ |
| 197 | void acpi_dm_dump_data_table(struct acpi_table_header *table); |
| 198 | |
Bob Moore | a6f4a45 | 2008-04-10 19:06:42 +0400 | [diff] [blame^] | 199 | acpi_status |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 200 | acpi_dm_dump_table(u32 table_length, |
| 201 | u32 table_offset, |
| 202 | void *table, |
| 203 | u32 sub_table_length, struct acpi_dmtable_info *info); |
| 204 | |
| 205 | void acpi_dm_line_header(u32 offset, u32 byte_length, char *name); |
| 206 | |
| 207 | void acpi_dm_line_header2(u32 offset, u32 byte_length, char *name, u32 value); |
| 208 | |
| 209 | /* |
| 210 | * dmtbdump |
| 211 | */ |
| 212 | void acpi_dm_dump_asf(struct acpi_table_header *table); |
| 213 | |
| 214 | void acpi_dm_dump_cpep(struct acpi_table_header *table); |
| 215 | |
Bob Moore | 2502fff | 2007-02-02 19:48:19 +0300 | [diff] [blame] | 216 | void acpi_dm_dump_dmar(struct acpi_table_header *table); |
| 217 | |
Bob Moore | 793c238 | 2006-03-31 00:00:00 -0500 | [diff] [blame] | 218 | void acpi_dm_dump_fadt(struct acpi_table_header *table); |
| 219 | |
| 220 | void acpi_dm_dump_srat(struct acpi_table_header *table); |
| 221 | |
| 222 | void acpi_dm_dump_mcfg(struct acpi_table_header *table); |
| 223 | |
| 224 | void acpi_dm_dump_madt(struct acpi_table_header *table); |
| 225 | |
| 226 | u32 acpi_dm_dump_rsdp(struct acpi_table_header *table); |
| 227 | |
| 228 | void acpi_dm_dump_rsdt(struct acpi_table_header *table); |
| 229 | |
| 230 | void acpi_dm_dump_slit(struct acpi_table_header *table); |
| 231 | |
| 232 | void acpi_dm_dump_xsdt(struct acpi_table_header *table); |
| 233 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 234 | /* |
| 235 | * dmwalk |
| 236 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 237 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 238 | acpi_dm_disassemble(struct acpi_walk_state *walk_state, |
| 239 | union acpi_parse_object *origin, u32 num_opcodes); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 240 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 241 | void |
| 242 | acpi_dm_walk_parse_tree(union acpi_parse_object *op, |
| 243 | asl_walk_callback descending_callback, |
| 244 | asl_walk_callback ascending_callback, void *context); |
| 245 | |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 246 | /* |
| 247 | * dmopcode |
| 248 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 250 | acpi_dm_disassemble_one_op(struct acpi_walk_state *walk_state, |
| 251 | struct acpi_op_walk_info *info, |
| 252 | union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 254 | void acpi_dm_decode_internal_object(union acpi_operand_object *obj_desc); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 255 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 256 | u32 acpi_dm_list_type(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 257 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 258 | void acpi_dm_method_flags(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 259 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 260 | void acpi_dm_field_flags(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 262 | void acpi_dm_address_space(u8 space_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 263 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 264 | void acpi_dm_region_flags(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 265 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 266 | void acpi_dm_match_op(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 267 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 268 | u8 acpi_dm_comma_if_list_member(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 269 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 270 | void acpi_dm_comma_if_field_member(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 271 | |
| 272 | /* |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 273 | * dmnames |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 274 | */ |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 275 | u32 acpi_dm_dump_name(char *name); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 276 | |
| 277 | acpi_status |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 278 | acpi_ps_display_object_pathname(struct acpi_walk_state *walk_state, |
| 279 | union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 280 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 281 | void acpi_dm_namestring(char *name); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 282 | |
| 283 | /* |
| 284 | * dmobject |
| 285 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 286 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 287 | acpi_dm_display_internal_object(union acpi_operand_object *obj_desc, |
| 288 | struct acpi_walk_state *walk_state); |
| 289 | |
| 290 | void acpi_dm_display_arguments(struct acpi_walk_state *walk_state); |
| 291 | |
| 292 | void acpi_dm_display_locals(struct acpi_walk_state *walk_state); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 293 | |
| 294 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 295 | acpi_dm_dump_method_info(acpi_status status, |
| 296 | struct acpi_walk_state *walk_state, |
| 297 | union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 298 | |
| 299 | /* |
| 300 | * dmbuffer |
| 301 | */ |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 302 | 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] | 303 | |
| 304 | void |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 305 | 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] | 306 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 307 | void acpi_dm_is_eisa_id(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 308 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 309 | void acpi_dm_eisa_id(u32 encoded_id); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 310 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 311 | u8 acpi_dm_is_unicode_buffer(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 | u8 acpi_dm_is_string_buffer(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 314 | |
| 315 | /* |
| 316 | * dmresrc |
| 317 | */ |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 318 | void acpi_dm_dump_integer8(u8 value, char *name); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 319 | |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 320 | void acpi_dm_dump_integer16(u16 value, char *name); |
| 321 | |
| 322 | void acpi_dm_dump_integer32(u32 value, char *name); |
| 323 | |
| 324 | void acpi_dm_dump_integer64(u64 value, char *name); |
| 325 | |
| 326 | void |
| 327 | acpi_dm_resource_template(struct acpi_op_walk_info *info, |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 328 | union acpi_parse_object *op, |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 329 | u8 * byte_data, u32 byte_count); |
| 330 | |
Bob Moore | cc2a472 | 2007-02-02 19:48:20 +0300 | [diff] [blame] | 331 | acpi_status acpi_dm_is_resource_template(union acpi_parse_object *op); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 332 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 333 | void acpi_dm_indent(u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 334 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 335 | void acpi_dm_bit_list(u16 mask); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 336 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 337 | void acpi_dm_decode_attribute(u8 attribute); |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 338 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 339 | void acpi_dm_descriptor_name(void); |
| 340 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 341 | /* |
| 342 | * dmresrcl |
| 343 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 344 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 345 | acpi_dm_word_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 346 | |
| 347 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 348 | acpi_dm_dword_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 349 | |
| 350 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 351 | acpi_dm_extended_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 352 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 353 | |
| 354 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 355 | acpi_dm_qword_descriptor(union aml_resource *resource, 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_memory24_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 | |
| 361 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 362 | acpi_dm_memory32_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 363 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 364 | |
| 365 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 366 | acpi_dm_fixed_memory32_descriptor(union aml_resource *resource, |
Robert Moore | bda663d | 2005-09-16 16:51:15 -0400 | [diff] [blame] | 367 | 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_generic_register_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 371 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 372 | |
| 373 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 374 | acpi_dm_interrupt_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 375 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 376 | |
| 377 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 378 | acpi_dm_vendor_large_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 379 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 380 | |
Bob Moore | 0897831 | 2005-10-21 00:00:00 -0400 | [diff] [blame] | 381 | void acpi_dm_vendor_common(char *name, u8 * byte_data, u32 length, u32 level); |
| 382 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 383 | /* |
| 384 | * dmresrcs |
| 385 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 386 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 387 | acpi_dm_irq_descriptor(union aml_resource *resource, u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 388 | |
| 389 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 390 | acpi_dm_dma_descriptor(union aml_resource *resource, u32 length, u32 level); |
| 391 | |
| 392 | 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] | 393 | |
| 394 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 395 | acpi_dm_fixed_io_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 396 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 397 | |
| 398 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 399 | acpi_dm_start_dependent_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 400 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 401 | |
| 402 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 403 | acpi_dm_end_dependent_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 404 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 405 | |
| 406 | void |
Bob Moore | 50eca3e | 2005-09-30 19:03:00 -0400 | [diff] [blame] | 407 | acpi_dm_vendor_small_descriptor(union aml_resource *resource, |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 408 | u32 length, u32 level); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 409 | |
| 410 | /* |
| 411 | * dmutils |
| 412 | */ |
Bob Moore | 958dd24 | 2006-05-12 17:12:00 -0400 | [diff] [blame] | 413 | void acpi_dm_add_to_external_list(char *path, u8 type, u32 value); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 414 | |
Bob Moore | 8313524 | 2006-10-03 00:00:00 -0400 | [diff] [blame] | 415 | /* |
| 416 | * dmrestag |
| 417 | */ |
| 418 | void acpi_dm_find_resources(union acpi_parse_object *root); |
| 419 | |
| 420 | void |
| 421 | acpi_dm_check_resource_reference(union acpi_parse_object *op, |
| 422 | struct acpi_walk_state *walk_state); |
| 423 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 424 | #endif /* __ACDISASM_H__ */ |