blob: b5fc0db2e87bb4a78ddbaa707ee91a886b4e7215 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*******************************************************************************
2 *
3 * Module Name: rsdump - Functions to display the resource structures.
4 *
5 ******************************************************************************/
6
7/*
Bob Moore25f044e2013-01-25 05:38:56 +00008 * Copyright (C) 2000 - 2013, 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
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#include <acpi/acpi.h>
Len Browne2f7a772009-01-09 00:30:03 -050045#include "accommon.h"
46#include "acresrc.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070047
48#define _COMPONENT ACPI_RESOURCES
Len Brown4be44fc2005-08-05 00:44:28 -040049ACPI_MODULE_NAME("rsdump")
Robert Moore6f42ccf2005-05-13 00:00:00 -040050#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
Robert Moore44f6c012005-04-18 22:49:35 -040051/* Local prototypes */
Robert Moorebda663d2005-09-16 16:51:15 -040052static void acpi_rs_out_string(char *title, char *value);
53
54static void acpi_rs_out_integer8(char *title, u8 value);
55
56static void acpi_rs_out_integer16(char *title, u16 value);
57
58static void acpi_rs_out_integer32(char *title, u32 value);
59
60static void acpi_rs_out_integer64(char *title, u64 value);
61
62static void acpi_rs_out_title(char *title);
63
Lin Minge0fe0a82011-11-16 14:38:13 +080064static void acpi_rs_dump_byte_list(u16 length, u8 *data);
Robert Moorebda663d2005-09-16 16:51:15 -040065
Lin Minge0fe0a82011-11-16 14:38:13 +080066static void acpi_rs_dump_word_list(u16 length, u16 *data);
Robert Moorebda663d2005-09-16 16:51:15 -040067
Lin Minge0fe0a82011-11-16 14:38:13 +080068static void acpi_rs_dump_dword_list(u8 length, u32 *data);
69
70static void acpi_rs_dump_short_byte_list(u8 length, u8 *data);
Robert Moorebda663d2005-09-16 16:51:15 -040071
72static void
73acpi_rs_dump_resource_source(struct acpi_resource_source *resource_source);
74
75static void acpi_rs_dump_address_common(union acpi_resource_data *resource);
76
Bob Moore08978312005-10-21 00:00:00 -040077static void
78acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);
79
Bob Moore08978312005-10-21 00:00:00 -040080/*******************************************************************************
81 *
82 * FUNCTION: acpi_rs_dump_descriptor
83 *
Bob Moore42f8fb72013-01-11 13:08:51 +010084 * PARAMETERS: resource - Buffer containing the resource
85 * table - Table entry to decode the resource
Bob Moore08978312005-10-21 00:00:00 -040086 *
87 * RETURN: None
88 *
Bob Moore42f8fb72013-01-11 13:08:51 +010089 * DESCRIPTION: Dump a resource descriptor based on a dump table entry.
Bob Moore08978312005-10-21 00:00:00 -040090 *
91 ******************************************************************************/
92
93static void
94acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table)
95{
Bob Moore96db2552005-11-02 00:00:00 -050096 u8 *target = NULL;
97 u8 *previous_target;
Bob Moore08978312005-10-21 00:00:00 -040098 char *name;
99 u8 count;
100
101 /* First table entry must contain the table length (# of table entries) */
102
103 count = table->offset;
104
105 while (count) {
106 previous_target = target;
Bob Moorec51a4de2005-11-17 13:07:00 -0500107 target = ACPI_ADD_PTR(u8, resource, table->offset);
Bob Moore08978312005-10-21 00:00:00 -0400108 name = table->name;
109
110 switch (table->opcode) {
111 case ACPI_RSD_TITLE:
112 /*
113 * Optional resource title
114 */
115 if (table->name) {
116 acpi_os_printf("%s Resource\n", name);
117 }
118 break;
119
120 /* Strings */
121
122 case ACPI_RSD_LITERAL:
Bob Moore96db2552005-11-02 00:00:00 -0500123 acpi_rs_out_string(name,
124 ACPI_CAST_PTR(char, table->pointer));
Bob Moore08978312005-10-21 00:00:00 -0400125 break;
126
127 case ACPI_RSD_STRING:
Bob Moore96db2552005-11-02 00:00:00 -0500128 acpi_rs_out_string(name, ACPI_CAST_PTR(char, target));
Bob Moore08978312005-10-21 00:00:00 -0400129 break;
130
131 /* Data items, 8/16/32/64 bit */
132
133 case ACPI_RSD_UINT8:
Lin Minge0fe0a82011-11-16 14:38:13 +0800134 if (table->pointer) {
135 acpi_rs_out_string(name, ACPI_CAST_PTR(char,
136 table->
137 pointer
138 [*target]));
139 } else {
140 acpi_rs_out_integer8(name, ACPI_GET8(target));
141 }
Bob Moore08978312005-10-21 00:00:00 -0400142 break;
143
144 case ACPI_RSD_UINT16:
Bob Moorec51a4de2005-11-17 13:07:00 -0500145 acpi_rs_out_integer16(name, ACPI_GET16(target));
Bob Moore08978312005-10-21 00:00:00 -0400146 break;
147
148 case ACPI_RSD_UINT32:
Bob Moorec51a4de2005-11-17 13:07:00 -0500149 acpi_rs_out_integer32(name, ACPI_GET32(target));
Bob Moore08978312005-10-21 00:00:00 -0400150 break;
151
152 case ACPI_RSD_UINT64:
Bob Moorec51a4de2005-11-17 13:07:00 -0500153 acpi_rs_out_integer64(name, ACPI_GET64(target));
Bob Moore08978312005-10-21 00:00:00 -0400154 break;
155
156 /* Flags: 1-bit and 2-bit flags supported */
157
158 case ACPI_RSD_1BITFLAG:
Bob Moore96db2552005-11-02 00:00:00 -0500159 acpi_rs_out_string(name, ACPI_CAST_PTR(char,
160 table->
161 pointer[*target &
162 0x01]));
Bob Moore08978312005-10-21 00:00:00 -0400163 break;
164
165 case ACPI_RSD_2BITFLAG:
Bob Moore96db2552005-11-02 00:00:00 -0500166 acpi_rs_out_string(name, ACPI_CAST_PTR(char,
167 table->
168 pointer[*target &
169 0x03]));
Bob Moore08978312005-10-21 00:00:00 -0400170 break;
171
Lin Minge0fe0a82011-11-16 14:38:13 +0800172 case ACPI_RSD_3BITFLAG:
173 acpi_rs_out_string(name, ACPI_CAST_PTR(char,
174 table->
175 pointer[*target &
176 0x07]));
177 break;
178
Bob Moore08978312005-10-21 00:00:00 -0400179 case ACPI_RSD_SHORTLIST:
180 /*
181 * Short byte list (single line output) for DMA and IRQ resources
182 * Note: The list length is obtained from the previous table entry
183 */
184 if (previous_target) {
185 acpi_rs_out_title(name);
Bob Moore96db2552005-11-02 00:00:00 -0500186 acpi_rs_dump_short_byte_list(*previous_target,
187 target);
Bob Moore08978312005-10-21 00:00:00 -0400188 }
189 break;
190
Lin Minge0fe0a82011-11-16 14:38:13 +0800191 case ACPI_RSD_SHORTLISTX:
192 /*
193 * Short byte list (single line output) for GPIO vendor data
194 * Note: The list length is obtained from the previous table entry
195 */
196 if (previous_target) {
197 acpi_rs_out_title(name);
198 acpi_rs_dump_short_byte_list(*previous_target,
199 *
200 (ACPI_CAST_INDIRECT_PTR
201 (u8, target)));
202 }
203 break;
204
Bob Moore08978312005-10-21 00:00:00 -0400205 case ACPI_RSD_LONGLIST:
206 /*
207 * Long byte list for Vendor resource data
208 * Note: The list length is obtained from the previous table entry
209 */
210 if (previous_target) {
Bob Moorec51a4de2005-11-17 13:07:00 -0500211 acpi_rs_dump_byte_list(ACPI_GET16
212 (previous_target),
Bob Moore96db2552005-11-02 00:00:00 -0500213 target);
Bob Moore08978312005-10-21 00:00:00 -0400214 }
215 break;
216
217 case ACPI_RSD_DWORDLIST:
218 /*
219 * Dword list for Extended Interrupt resources
220 * Note: The list length is obtained from the previous table entry
221 */
222 if (previous_target) {
Bob Moore96db2552005-11-02 00:00:00 -0500223 acpi_rs_dump_dword_list(*previous_target,
224 ACPI_CAST_PTR(u32,
225 target));
Bob Moore08978312005-10-21 00:00:00 -0400226 }
227 break;
228
Lin Minge0fe0a82011-11-16 14:38:13 +0800229 case ACPI_RSD_WORDLIST:
230 /*
231 * Word list for GPIO Pin Table
232 * Note: The list length is obtained from the previous table entry
233 */
234 if (previous_target) {
235 acpi_rs_dump_word_list(*previous_target,
236 *(ACPI_CAST_INDIRECT_PTR
237 (u16, target)));
238 }
239 break;
240
Bob Moore08978312005-10-21 00:00:00 -0400241 case ACPI_RSD_ADDRESS:
242 /*
243 * Common flags for all Address resources
244 */
Bob Moore96db2552005-11-02 00:00:00 -0500245 acpi_rs_dump_address_common(ACPI_CAST_PTR
246 (union acpi_resource_data,
247 target));
Bob Moore08978312005-10-21 00:00:00 -0400248 break;
249
250 case ACPI_RSD_SOURCE:
251 /*
252 * Optional resource_source for Address resources
253 */
Lv Zheng3e8214e2012-12-19 05:37:15 +0000254 acpi_rs_dump_resource_source(ACPI_CAST_PTR
255 (struct
Len Brownfd350942007-05-09 23:34:35 -0400256 acpi_resource_source,
257 target));
Bob Moore08978312005-10-21 00:00:00 -0400258 break;
259
260 default:
261 acpi_os_printf("**** Invalid table opcode [%X] ****\n",
262 table->opcode);
263 return;
264 }
265
266 table++;
267 count--;
268 }
269}
270
271/*******************************************************************************
272 *
273 * FUNCTION: acpi_rs_dump_resource_source
274 *
275 * PARAMETERS: resource_source - Pointer to a Resource Source struct
276 *
277 * RETURN: None
278 *
279 * DESCRIPTION: Common routine for dumping the optional resource_source and the
280 * corresponding resource_source_index.
281 *
282 ******************************************************************************/
283
284static void
285acpi_rs_dump_resource_source(struct acpi_resource_source *resource_source)
286{
287 ACPI_FUNCTION_ENTRY();
288
289 if (resource_source->index == 0xFF) {
290 return;
291 }
292
293 acpi_rs_out_integer8("Resource Source Index", resource_source->index);
294
295 acpi_rs_out_string("Resource Source",
296 resource_source->string_ptr ?
297 resource_source->string_ptr : "[Not Specified]");
298}
299
300/*******************************************************************************
301 *
302 * FUNCTION: acpi_rs_dump_address_common
303 *
Bob Mooreba494be2012-07-12 09:40:10 +0800304 * PARAMETERS: resource - Pointer to an internal resource descriptor
Bob Moore08978312005-10-21 00:00:00 -0400305 *
306 * RETURN: None
307 *
308 * DESCRIPTION: Dump the fields that are common to all Address resource
309 * descriptors
310 *
311 ******************************************************************************/
312
313static void acpi_rs_dump_address_common(union acpi_resource_data *resource)
314{
315 ACPI_FUNCTION_ENTRY();
316
317 /* Decode the type-specific flags */
318
319 switch (resource->address.resource_type) {
320 case ACPI_MEMORY_RANGE:
321
322 acpi_rs_dump_descriptor(resource, acpi_rs_dump_memory_flags);
323 break;
324
325 case ACPI_IO_RANGE:
326
327 acpi_rs_dump_descriptor(resource, acpi_rs_dump_io_flags);
328 break;
329
330 case ACPI_BUS_NUMBER_RANGE:
331
332 acpi_rs_out_string("Resource Type", "Bus Number Range");
333 break;
334
335 default:
336
337 acpi_rs_out_integer8("Resource Type",
338 (u8) resource->address.resource_type);
339 break;
340 }
341
342 /* Decode the general flags */
343
344 acpi_rs_dump_descriptor(resource, acpi_rs_dump_general_flags);
345}
346
347/*******************************************************************************
348 *
349 * FUNCTION: acpi_rs_dump_resource_list
350 *
351 * PARAMETERS: resource_list - Pointer to a resource descriptor list
352 *
353 * RETURN: None
354 *
355 * DESCRIPTION: Dispatches the structure to the correct dump routine.
356 *
357 ******************************************************************************/
358
359void acpi_rs_dump_resource_list(struct acpi_resource *resource_list)
360{
361 u32 count = 0;
362 u32 type;
363
364 ACPI_FUNCTION_ENTRY();
365
Bob Moore10e9e752012-12-31 00:06:27 +0000366 /* Check if debug output enabled */
367
368 if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_RESOURCES, _COMPONENT)) {
Bob Moore08978312005-10-21 00:00:00 -0400369 return;
370 }
371
372 /* Walk list and dump all resource descriptors (END_TAG terminates) */
373
374 do {
375 acpi_os_printf("\n[%02X] ", count);
376 count++;
377
378 /* Validate Type before dispatch */
379
380 type = resource_list->type;
381 if (type > ACPI_RESOURCE_TYPE_MAX) {
382 acpi_os_printf
383 ("Invalid descriptor type (%X) in resource list\n",
384 resource_list->type);
385 return;
386 }
387
Bob Moorec13085e2013-03-08 09:19:38 +0000388 /* Sanity check the length. It must not be zero, or we loop forever */
389
390 if (!resource_list->length) {
391 acpi_os_printf
392 ("Invalid zero length descriptor in resource list\n");
393 return;
394 }
395
Bob Moore08978312005-10-21 00:00:00 -0400396 /* Dump the resource descriptor */
397
Lin Minge0fe0a82011-11-16 14:38:13 +0800398 if (type == ACPI_RESOURCE_TYPE_SERIAL_BUS) {
399 acpi_rs_dump_descriptor(&resource_list->data,
400 acpi_gbl_dump_serial_bus_dispatch
401 [resource_list->data.
402 common_serial_bus.type]);
403 } else {
404 acpi_rs_dump_descriptor(&resource_list->data,
405 acpi_gbl_dump_resource_dispatch
406 [type]);
407 }
Bob Moore08978312005-10-21 00:00:00 -0400408
409 /* Point to the next resource structure */
410
Lin Minge0fe0a82011-11-16 14:38:13 +0800411 resource_list = ACPI_NEXT_RESOURCE(resource_list);
Bob Moore08978312005-10-21 00:00:00 -0400412
413 /* Exit when END_TAG descriptor is reached */
414
415 } while (type != ACPI_RESOURCE_TYPE_END_TAG);
416}
417
418/*******************************************************************************
419 *
420 * FUNCTION: acpi_rs_dump_irq_list
421 *
422 * PARAMETERS: route_table - Pointer to the routing table to dump.
423 *
424 * RETURN: None
425 *
426 * DESCRIPTION: Print IRQ routing table
427 *
428 ******************************************************************************/
429
430void acpi_rs_dump_irq_list(u8 * route_table)
431{
432 struct acpi_pci_routing_table *prt_element;
433 u8 count;
434
435 ACPI_FUNCTION_ENTRY();
436
Bob Moore10e9e752012-12-31 00:06:27 +0000437 /* Check if debug output enabled */
438
439 if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_RESOURCES, _COMPONENT)) {
Bob Moore08978312005-10-21 00:00:00 -0400440 return;
441 }
442
443 prt_element = ACPI_CAST_PTR(struct acpi_pci_routing_table, route_table);
444
445 /* Dump all table elements, Exit on zero length element */
446
447 for (count = 0; prt_element->length; count++) {
448 acpi_os_printf("\n[%02X] PCI IRQ Routing Table Package\n",
449 count);
450 acpi_rs_dump_descriptor(prt_element, acpi_rs_dump_prt);
451
Bob Moorec51a4de2005-11-17 13:07:00 -0500452 prt_element = ACPI_ADD_PTR(struct acpi_pci_routing_table,
453 prt_element, prt_element->length);
Bob Moore08978312005-10-21 00:00:00 -0400454 }
455}
456
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457/*******************************************************************************
458 *
Robert Moorebda663d2005-09-16 16:51:15 -0400459 * FUNCTION: acpi_rs_out*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700460 *
Bob Mooreba494be2012-07-12 09:40:10 +0800461 * PARAMETERS: title - Name of the resource field
462 * value - Value of the resource field
Linus Torvalds1da177e2005-04-16 15:20:36 -0700463 *
464 * RETURN: None
465 *
Robert Moorebda663d2005-09-16 16:51:15 -0400466 * DESCRIPTION: Miscellaneous helper functions to consistently format the
467 * output of the resource dump routines
Linus Torvalds1da177e2005-04-16 15:20:36 -0700468 *
469 ******************************************************************************/
470
Robert Moorebda663d2005-09-16 16:51:15 -0400471static void acpi_rs_out_string(char *title, char *value)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700472{
Bob Mooreb8e4d892006-01-27 16:43:00 -0500473 acpi_os_printf("%27s : %s", title, value);
474 if (!*value) {
475 acpi_os_printf("[NULL NAMESTRING]");
476 }
477 acpi_os_printf("\n");
Robert Moorebda663d2005-09-16 16:51:15 -0400478}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700479
Robert Moorebda663d2005-09-16 16:51:15 -0400480static void acpi_rs_out_integer8(char *title, u8 value)
481{
Bob Moore50eca3e2005-09-30 19:03:00 -0400482 acpi_os_printf("%27s : %2.2X\n", title, value);
Robert Moorebda663d2005-09-16 16:51:15 -0400483}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484
Robert Moorebda663d2005-09-16 16:51:15 -0400485static void acpi_rs_out_integer16(char *title, u16 value)
486{
Bob Moore50eca3e2005-09-30 19:03:00 -0400487 acpi_os_printf("%27s : %4.4X\n", title, value);
Robert Moorebda663d2005-09-16 16:51:15 -0400488}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700489
Robert Moorebda663d2005-09-16 16:51:15 -0400490static void acpi_rs_out_integer32(char *title, u32 value)
491{
Bob Moore50eca3e2005-09-30 19:03:00 -0400492 acpi_os_printf("%27s : %8.8X\n", title, value);
Robert Moorebda663d2005-09-16 16:51:15 -0400493}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700494
Robert Moorebda663d2005-09-16 16:51:15 -0400495static void acpi_rs_out_integer64(char *title, u64 value)
496{
Bob Moore50eca3e2005-09-30 19:03:00 -0400497 acpi_os_printf("%27s : %8.8X%8.8X\n", title, ACPI_FORMAT_UINT64(value));
Robert Moorebda663d2005-09-16 16:51:15 -0400498}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499
Robert Moorebda663d2005-09-16 16:51:15 -0400500static void acpi_rs_out_title(char *title)
501{
Bob Moore50eca3e2005-09-30 19:03:00 -0400502 acpi_os_printf("%27s : ", title);
Robert Moorebda663d2005-09-16 16:51:15 -0400503}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504
Robert Moorebda663d2005-09-16 16:51:15 -0400505/*******************************************************************************
506 *
507 * FUNCTION: acpi_rs_dump*List
508 *
Bob Mooreba494be2012-07-12 09:40:10 +0800509 * PARAMETERS: length - Number of elements in the list
510 * data - Start of the list
Robert Moorebda663d2005-09-16 16:51:15 -0400511 *
512 * RETURN: None
513 *
514 * DESCRIPTION: Miscellaneous functions to dump lists of raw data
515 *
516 ******************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700517
Bob Moore08978312005-10-21 00:00:00 -0400518static void acpi_rs_dump_byte_list(u16 length, u8 * data)
Robert Moorebda663d2005-09-16 16:51:15 -0400519{
Bob Moore08978312005-10-21 00:00:00 -0400520 u8 i;
Robert Moorebda663d2005-09-16 16:51:15 -0400521
522 for (i = 0; i < length; i++) {
Bob Moore50eca3e2005-09-30 19:03:00 -0400523 acpi_os_printf("%25s%2.2X : %2.2X\n", "Byte", i, data[i]);
Robert Moorebda663d2005-09-16 16:51:15 -0400524 }
525}
526
Bob Moore08978312005-10-21 00:00:00 -0400527static void acpi_rs_dump_short_byte_list(u8 length, u8 * data)
Robert Moorebda663d2005-09-16 16:51:15 -0400528{
Bob Moore08978312005-10-21 00:00:00 -0400529 u8 i;
Robert Moorebda663d2005-09-16 16:51:15 -0400530
531 for (i = 0; i < length; i++) {
532 acpi_os_printf("%X ", data[i]);
533 }
534 acpi_os_printf("\n");
535}
536
Bob Moore08978312005-10-21 00:00:00 -0400537static void acpi_rs_dump_dword_list(u8 length, u32 * data)
Bob Moore50eca3e2005-09-30 19:03:00 -0400538{
Bob Moore08978312005-10-21 00:00:00 -0400539 u8 i;
Bob Moore50eca3e2005-09-30 19:03:00 -0400540
Bob Moore08978312005-10-21 00:00:00 -0400541 for (i = 0; i < length; i++) {
542 acpi_os_printf("%25s%2.2X : %8.8X\n", "Dword", i, data[i]);
Robert Moorebda663d2005-09-16 16:51:15 -0400543 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700544}
545
Lin Minge0fe0a82011-11-16 14:38:13 +0800546static void acpi_rs_dump_word_list(u16 length, u16 *data)
547{
548 u16 i;
549
550 for (i = 0; i < length; i++) {
551 acpi_os_printf("%25s%2.2X : %4.4X\n", "Word", i, data[i]);
552 }
553}
554
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555#endif