rsdump.c 14.3 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7
/*******************************************************************************
 *
 * Module Name: rsdump - Functions to display the resource structures.
 *
 ******************************************************************************/

/*
8
 * Copyright (C) 2000 - 2014, Intel Corp.
L
Linus Torvalds 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions, and the following disclaimer,
 *    without modification.
 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
 *    substantially similar to the "NO WARRANTY" disclaimer below
 *    ("Disclaimer") and any redistribution must be conditioned upon
 *    including a substantially similar Disclaimer requirement for further
 *    binary redistribution.
 * 3. Neither the names of the above-listed copyright holders nor the names
 *    of any contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * Alternatively, this software may be distributed under the terms of the
 * GNU General Public License ("GPL") version 2 as published by the Free
 * Software Foundation.
 *
 * NO WARRANTY
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGES.
 */

#include <acpi/acpi.h>
L
Len Brown 已提交
45 46
#include "accommon.h"
#include "acresrc.h"
L
Linus Torvalds 已提交
47 48

#define _COMPONENT          ACPI_RESOURCES
L
Len Brown 已提交
49
ACPI_MODULE_NAME("rsdump")
50

51
#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER)
R
Robert Moore 已提交
52
/* Local prototypes */
R
Robert Moore 已提交
53 54 55 56 57 58 59 60 61 62 63 64
static void acpi_rs_out_string(char *title, char *value);

static void acpi_rs_out_integer8(char *title, u8 value);

static void acpi_rs_out_integer16(char *title, u16 value);

static void acpi_rs_out_integer32(char *title, u32 value);

static void acpi_rs_out_integer64(char *title, u64 value);

static void acpi_rs_out_title(char *title);

65
static void acpi_rs_dump_byte_list(u16 length, u8 *data);
R
Robert Moore 已提交
66

67
static void acpi_rs_dump_word_list(u16 length, u16 *data);
R
Robert Moore 已提交
68

69 70 71
static void acpi_rs_dump_dword_list(u8 length, u32 *data);

static void acpi_rs_dump_short_byte_list(u8 length, u8 *data);
R
Robert Moore 已提交
72 73 74 75 76 77

static void
acpi_rs_dump_resource_source(struct acpi_resource_source *resource_source);

static void acpi_rs_dump_address_common(union acpi_resource_data *resource);

B
Bob Moore 已提交
78 79 80
static void
acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);

R
Robert Moore 已提交
81 82
/*******************************************************************************
 *
B
Bob Moore 已提交
83
 * FUNCTION:    acpi_rs_dump_descriptor
R
Robert Moore 已提交
84
 *
85 86
 * PARAMETERS:  resource            - Buffer containing the resource
 *              table               - Table entry to decode the resource
R
Robert Moore 已提交
87 88 89
 *
 * RETURN:      None
 *
90
 * DESCRIPTION: Dump a resource descriptor based on a dump table entry.
R
Robert Moore 已提交
91 92 93
 *
 ******************************************************************************/

B
Bob Moore 已提交
94 95
static void
acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table)
R
Robert Moore 已提交
96
{
B
Bob Moore 已提交
97 98
	u8 *target = NULL;
	u8 *previous_target;
B
Bob Moore 已提交
99 100 101 102 103 104 105 106 107
	char *name;
	u8 count;

	/* First table entry must contain the table length (# of table entries) */

	count = table->offset;

	while (count) {
		previous_target = target;
B
Bob Moore 已提交
108
		target = ACPI_ADD_PTR(u8, resource, table->offset);
B
Bob Moore 已提交
109 110 111 112 113 114 115 116 117 118 119
		name = table->name;

		switch (table->opcode) {
		case ACPI_RSD_TITLE:
			/*
			 * Optional resource title
			 */
			if (table->name) {
				acpi_os_printf("%s Resource\n", name);
			}
			break;
R
Robert Moore 已提交
120

B
Bob Moore 已提交
121
			/* Strings */
R
Robert Moore 已提交
122

B
Bob Moore 已提交
123
		case ACPI_RSD_LITERAL:
124

B
Bob Moore 已提交
125 126
			acpi_rs_out_string(name,
					   ACPI_CAST_PTR(char, table->pointer));
B
Bob Moore 已提交
127
			break;
R
Robert Moore 已提交
128

B
Bob Moore 已提交
129
		case ACPI_RSD_STRING:
130

B
Bob Moore 已提交
131
			acpi_rs_out_string(name, ACPI_CAST_PTR(char, target));
B
Bob Moore 已提交
132
			break;
R
Robert Moore 已提交
133

B
Bob Moore 已提交
134
			/* Data items, 8/16/32/64 bit */
R
Robert Moore 已提交
135

B
Bob Moore 已提交
136
		case ACPI_RSD_UINT8:
137

138 139 140 141 142 143 144 145
			if (table->pointer) {
				acpi_rs_out_string(name, ACPI_CAST_PTR(char,
								       table->
								       pointer
								       [*target]));
			} else {
				acpi_rs_out_integer8(name, ACPI_GET8(target));
			}
B
Bob Moore 已提交
146
			break;
R
Robert Moore 已提交
147

B
Bob Moore 已提交
148
		case ACPI_RSD_UINT16:
149

B
Bob Moore 已提交
150
			acpi_rs_out_integer16(name, ACPI_GET16(target));
B
Bob Moore 已提交
151 152 153
			break;

		case ACPI_RSD_UINT32:
154

B
Bob Moore 已提交
155
			acpi_rs_out_integer32(name, ACPI_GET32(target));
B
Bob Moore 已提交
156
			break;
B
Bob Moore 已提交
157

B
Bob Moore 已提交
158
		case ACPI_RSD_UINT64:
159

B
Bob Moore 已提交
160
			acpi_rs_out_integer64(name, ACPI_GET64(target));
B
Bob Moore 已提交
161 162 163 164 165
			break;

			/* Flags: 1-bit and 2-bit flags supported */

		case ACPI_RSD_1BITFLAG:
166

B
Bob Moore 已提交
167 168 169 170
			acpi_rs_out_string(name, ACPI_CAST_PTR(char,
							       table->
							       pointer[*target &
								       0x01]));
B
Bob Moore 已提交
171 172 173
			break;

		case ACPI_RSD_2BITFLAG:
174

B
Bob Moore 已提交
175 176 177 178
			acpi_rs_out_string(name, ACPI_CAST_PTR(char,
							       table->
							       pointer[*target &
								       0x03]));
B
Bob Moore 已提交
179 180
			break;

181
		case ACPI_RSD_3BITFLAG:
182

183 184 185 186 187 188
			acpi_rs_out_string(name, ACPI_CAST_PTR(char,
							       table->
							       pointer[*target &
								       0x07]));
			break;

B
Bob Moore 已提交
189 190 191 192 193 194 195
		case ACPI_RSD_SHORTLIST:
			/*
			 * Short byte list (single line output) for DMA and IRQ resources
			 * Note: The list length is obtained from the previous table entry
			 */
			if (previous_target) {
				acpi_rs_out_title(name);
B
Bob Moore 已提交
196 197
				acpi_rs_dump_short_byte_list(*previous_target,
							     target);
B
Bob Moore 已提交
198 199 200
			}
			break;

201 202 203 204 205 206 207 208 209 210 211 212 213 214
		case ACPI_RSD_SHORTLISTX:
			/*
			 * Short byte list (single line output) for GPIO vendor data
			 * Note: The list length is obtained from the previous table entry
			 */
			if (previous_target) {
				acpi_rs_out_title(name);
				acpi_rs_dump_short_byte_list(*previous_target,
							     *
							     (ACPI_CAST_INDIRECT_PTR
							      (u8, target)));
			}
			break;

B
Bob Moore 已提交
215 216 217 218 219 220
		case ACPI_RSD_LONGLIST:
			/*
			 * Long byte list for Vendor resource data
			 * Note: The list length is obtained from the previous table entry
			 */
			if (previous_target) {
B
Bob Moore 已提交
221 222
				acpi_rs_dump_byte_list(ACPI_GET16
						       (previous_target),
B
Bob Moore 已提交
223
						       target);
B
Bob Moore 已提交
224 225 226 227 228 229 230 231 232
			}
			break;

		case ACPI_RSD_DWORDLIST:
			/*
			 * Dword list for Extended Interrupt resources
			 * Note: The list length is obtained from the previous table entry
			 */
			if (previous_target) {
B
Bob Moore 已提交
233 234 235
				acpi_rs_dump_dword_list(*previous_target,
							ACPI_CAST_PTR(u32,
								      target));
B
Bob Moore 已提交
236 237 238
			}
			break;

239 240 241 242 243 244 245 246 247 248 249 250
		case ACPI_RSD_WORDLIST:
			/*
			 * Word list for GPIO Pin Table
			 * Note: The list length is obtained from the previous table entry
			 */
			if (previous_target) {
				acpi_rs_dump_word_list(*previous_target,
						       *(ACPI_CAST_INDIRECT_PTR
							 (u16, target)));
			}
			break;

B
Bob Moore 已提交
251 252 253 254
		case ACPI_RSD_ADDRESS:
			/*
			 * Common flags for all Address resources
			 */
B
Bob Moore 已提交
255 256 257
			acpi_rs_dump_address_common(ACPI_CAST_PTR
						    (union acpi_resource_data,
						     target));
B
Bob Moore 已提交
258 259 260 261 262 263
			break;

		case ACPI_RSD_SOURCE:
			/*
			 * Optional resource_source for Address resources
			 */
264 265
			acpi_rs_dump_resource_source(ACPI_CAST_PTR
						     (struct
L
Len Brown 已提交
266 267
								   acpi_resource_source,
								   target));
B
Bob Moore 已提交
268 269 270
			break;

		default:
271

B
Bob Moore 已提交
272 273 274 275 276 277 278 279
			acpi_os_printf("**** Invalid table opcode [%X] ****\n",
				       table->opcode);
			return;
		}

		table++;
		count--;
	}
B
Bob Moore 已提交
280 281
}

R
Robert Moore 已提交
282 283 284
/*******************************************************************************
 *
 * FUNCTION:    acpi_rs_dump_resource_source
L
Linus Torvalds 已提交
285
 *
R
Robert Moore 已提交
286
 * PARAMETERS:  resource_source     - Pointer to a Resource Source struct
L
Linus Torvalds 已提交
287 288 289
 *
 * RETURN:      None
 *
R
Robert Moore 已提交
290 291
 * DESCRIPTION: Common routine for dumping the optional resource_source and the
 *              corresponding resource_source_index.
L
Linus Torvalds 已提交
292 293 294
 *
 ******************************************************************************/

R
Robert Moore 已提交
295 296
static void
acpi_rs_dump_resource_source(struct acpi_resource_source *resource_source)
L
Linus Torvalds 已提交
297
{
B
Bob Moore 已提交
298
	ACPI_FUNCTION_ENTRY();
L
Linus Torvalds 已提交
299

R
Robert Moore 已提交
300 301 302 303
	if (resource_source->index == 0xFF) {
		return;
	}

B
Bob Moore 已提交
304
	acpi_rs_out_integer8("Resource Source Index", resource_source->index);
R
Robert Moore 已提交
305 306 307 308 309 310 311 312 313 314

	acpi_rs_out_string("Resource Source",
			   resource_source->string_ptr ?
			   resource_source->string_ptr : "[Not Specified]");
}

/*******************************************************************************
 *
 * FUNCTION:    acpi_rs_dump_address_common
 *
315
 * PARAMETERS:  resource        - Pointer to an internal resource descriptor
R
Robert Moore 已提交
316 317 318 319 320 321 322 323 324 325
 *
 * RETURN:      None
 *
 * DESCRIPTION: Dump the fields that are common to all Address resource
 *              descriptors
 *
 ******************************************************************************/

static void acpi_rs_dump_address_common(union acpi_resource_data *resource)
{
L
Len Brown 已提交
326
	ACPI_FUNCTION_ENTRY();
L
Linus Torvalds 已提交
327

R
Robert Moore 已提交
328 329 330 331
	/* Decode the type-specific flags */

	switch (resource->address.resource_type) {
	case ACPI_MEMORY_RANGE:
L
Linus Torvalds 已提交
332

B
Bob Moore 已提交
333
		acpi_rs_dump_descriptor(resource, acpi_rs_dump_memory_flags);
R
Robert Moore 已提交
334 335 336 337
		break;

	case ACPI_IO_RANGE:

B
Bob Moore 已提交
338
		acpi_rs_dump_descriptor(resource, acpi_rs_dump_io_flags);
R
Robert Moore 已提交
339 340 341 342 343 344 345 346 347 348 349 350
		break;

	case ACPI_BUS_NUMBER_RANGE:

		acpi_rs_out_string("Resource Type", "Bus Number Range");
		break;

	default:

		acpi_rs_out_integer8("Resource Type",
				     (u8) resource->address.resource_type);
		break;
L
Linus Torvalds 已提交
351 352
	}

R
Robert Moore 已提交
353 354
	/* Decode the general flags */

B
Bob Moore 已提交
355
	acpi_rs_dump_descriptor(resource, acpi_rs_dump_general_flags);
L
Linus Torvalds 已提交
356 357 358 359
}

/*******************************************************************************
 *
R
Robert Moore 已提交
360
 * FUNCTION:    acpi_rs_dump_resource_list
L
Linus Torvalds 已提交
361
 *
R
Robert Moore 已提交
362
 * PARAMETERS:  resource_list       - Pointer to a resource descriptor list
L
Linus Torvalds 已提交
363 364 365
 *
 * RETURN:      None
 *
R
Robert Moore 已提交
366
 * DESCRIPTION: Dispatches the structure to the correct dump routine.
L
Linus Torvalds 已提交
367 368 369
 *
 ******************************************************************************/

R
Robert Moore 已提交
370
void acpi_rs_dump_resource_list(struct acpi_resource *resource_list)
L
Linus Torvalds 已提交
371
{
R
Robert Moore 已提交
372
	u32 count = 0;
B
Bob Moore 已提交
373
	u32 type;
L
Linus Torvalds 已提交
374

L
Len Brown 已提交
375
	ACPI_FUNCTION_ENTRY();
L
Linus Torvalds 已提交
376

377 378 379
	/* Check if debug output enabled */

	if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_RESOURCES, _COMPONENT)) {
R
Robert Moore 已提交
380 381 382
		return;
	}

B
Bob Moore 已提交
383
	/* Walk list and dump all resource descriptors (END_TAG terminates) */
R
Robert Moore 已提交
384

B
Bob Moore 已提交
385
	do {
R
Robert Moore 已提交
386
		acpi_os_printf("\n[%02X] ", count);
B
Bob Moore 已提交
387
		count++;
R
Robert Moore 已提交
388 389 390

		/* Validate Type before dispatch */

B
Bob Moore 已提交
391 392
		type = resource_list->type;
		if (type > ACPI_RESOURCE_TYPE_MAX) {
R
Robert Moore 已提交
393 394 395 396 397 398
			acpi_os_printf
			    ("Invalid descriptor type (%X) in resource list\n",
			     resource_list->type);
			return;
		}

399 400 401 402 403 404 405 406
		/* Sanity check the length. It must not be zero, or we loop forever */

		if (!resource_list->length) {
			acpi_os_printf
			    ("Invalid zero length descriptor in resource list\n");
			return;
		}

R
Robert Moore 已提交
407 408
		/* Dump the resource descriptor */

409 410 411 412 413 414 415 416 417 418
		if (type == ACPI_RESOURCE_TYPE_SERIAL_BUS) {
			acpi_rs_dump_descriptor(&resource_list->data,
						acpi_gbl_dump_serial_bus_dispatch
						[resource_list->data.
						 common_serial_bus.type]);
		} else {
			acpi_rs_dump_descriptor(&resource_list->data,
						acpi_gbl_dump_resource_dispatch
						[type]);
		}
R
Robert Moore 已提交
419

B
Bob Moore 已提交
420
		/* Point to the next resource structure */
R
Robert Moore 已提交
421

422
		resource_list = ACPI_NEXT_RESOURCE(resource_list);
R
Robert Moore 已提交
423

B
Bob Moore 已提交
424
		/* Exit when END_TAG descriptor is reached */
R
Robert Moore 已提交
425

B
Bob Moore 已提交
426
	} while (type != ACPI_RESOURCE_TYPE_END_TAG);
R
Robert Moore 已提交
427 428 429 430
}

/*******************************************************************************
 *
B
Bob Moore 已提交
431
 * FUNCTION:    acpi_rs_dump_irq_list
R
Robert Moore 已提交
432
 *
B
Bob Moore 已提交
433
 * PARAMETERS:  route_table     - Pointer to the routing table to dump.
R
Robert Moore 已提交
434 435 436
 *
 * RETURN:      None
 *
B
Bob Moore 已提交
437
 * DESCRIPTION: Print IRQ routing table
R
Robert Moore 已提交
438 439 440
 *
 ******************************************************************************/

B
Bob Moore 已提交
441
void acpi_rs_dump_irq_list(u8 * route_table)
R
Robert Moore 已提交
442
{
B
Bob Moore 已提交
443 444
	struct acpi_pci_routing_table *prt_element;
	u8 count;
L
Linus Torvalds 已提交
445

L
Len Brown 已提交
446
	ACPI_FUNCTION_ENTRY();
L
Linus Torvalds 已提交
447

448 449 450
	/* Check if debug output enabled */

	if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_RESOURCES, _COMPONENT)) {
B
Bob Moore 已提交
451
		return;
L
Linus Torvalds 已提交
452 453
	}

B
Bob Moore 已提交
454
	prt_element = ACPI_CAST_PTR(struct acpi_pci_routing_table, route_table);
L
Linus Torvalds 已提交
455

B
Bob Moore 已提交
456
	/* Dump all table elements, Exit on zero length element */
L
Linus Torvalds 已提交
457

B
Bob Moore 已提交
458 459 460 461
	for (count = 0; prt_element->length; count++) {
		acpi_os_printf("\n[%02X] PCI IRQ Routing Table Package\n",
			       count);
		acpi_rs_dump_descriptor(prt_element, acpi_rs_dump_prt);
L
Linus Torvalds 已提交
462

B
Bob Moore 已提交
463 464
		prt_element = ACPI_ADD_PTR(struct acpi_pci_routing_table,
					   prt_element, prt_element->length);
L
Linus Torvalds 已提交
465 466 467 468 469
	}
}

/*******************************************************************************
 *
B
Bob Moore 已提交
470
 * FUNCTION:    acpi_rs_out*
L
Linus Torvalds 已提交
471
 *
472 473
 * PARAMETERS:  title       - Name of the resource field
 *              value       - Value of the resource field
L
Linus Torvalds 已提交
474 475 476
 *
 * RETURN:      None
 *
B
Bob Moore 已提交
477 478
 * DESCRIPTION: Miscellaneous helper functions to consistently format the
 *              output of the resource dump routines
L
Linus Torvalds 已提交
479 480 481
 *
 ******************************************************************************/

B
Bob Moore 已提交
482
static void acpi_rs_out_string(char *title, char *value)
L
Linus Torvalds 已提交
483
{
B
Bob Moore 已提交
484 485 486 487 488
	acpi_os_printf("%27s : %s", title, value);
	if (!*value) {
		acpi_os_printf("[NULL NAMESTRING]");
	}
	acpi_os_printf("\n");
L
Linus Torvalds 已提交
489 490
}

B
Bob Moore 已提交
491
static void acpi_rs_out_integer8(char *title, u8 value)
L
Linus Torvalds 已提交
492
{
B
Bob Moore 已提交
493
	acpi_os_printf("%27s : %2.2X\n", title, value);
L
Linus Torvalds 已提交
494 495
}

B
Bob Moore 已提交
496
static void acpi_rs_out_integer16(char *title, u16 value)
L
Linus Torvalds 已提交
497
{
B
Bob Moore 已提交
498
	acpi_os_printf("%27s : %4.4X\n", title, value);
L
Linus Torvalds 已提交
499 500
}

B
Bob Moore 已提交
501
static void acpi_rs_out_integer32(char *title, u32 value)
B
Bob Moore 已提交
502
{
B
Bob Moore 已提交
503
	acpi_os_printf("%27s : %8.8X\n", title, value);
B
Bob Moore 已提交
504 505
}

B
Bob Moore 已提交
506
static void acpi_rs_out_integer64(char *title, u64 value)
L
Linus Torvalds 已提交
507
{
B
Bob Moore 已提交
508
	acpi_os_printf("%27s : %8.8X%8.8X\n", title, ACPI_FORMAT_UINT64(value));
L
Linus Torvalds 已提交
509 510
}

B
Bob Moore 已提交
511
static void acpi_rs_out_title(char *title)
L
Linus Torvalds 已提交
512
{
B
Bob Moore 已提交
513
	acpi_os_printf("%27s : ", title);
R
Robert Moore 已提交
514
}
L
Linus Torvalds 已提交
515

R
Robert Moore 已提交
516 517
/*******************************************************************************
 *
B
Bob Moore 已提交
518
 * FUNCTION:    acpi_rs_dump*List
R
Robert Moore 已提交
519
 *
520 521
 * PARAMETERS:  length      - Number of elements in the list
 *              data        - Start of the list
R
Robert Moore 已提交
522 523 524
 *
 * RETURN:      None
 *
B
Bob Moore 已提交
525
 * DESCRIPTION: Miscellaneous functions to dump lists of raw data
R
Robert Moore 已提交
526 527
 *
 ******************************************************************************/
L
Linus Torvalds 已提交
528

B
Bob Moore 已提交
529
static void acpi_rs_dump_byte_list(u16 length, u8 * data)
R
Robert Moore 已提交
530
{
B
Bob Moore 已提交
531
	u8 i;
L
Linus Torvalds 已提交
532

B
Bob Moore 已提交
533 534 535
	for (i = 0; i < length; i++) {
		acpi_os_printf("%25s%2.2X : %2.2X\n", "Byte", i, data[i]);
	}
R
Robert Moore 已提交
536
}
L
Linus Torvalds 已提交
537

B
Bob Moore 已提交
538
static void acpi_rs_dump_short_byte_list(u8 length, u8 * data)
R
Robert Moore 已提交
539
{
B
Bob Moore 已提交
540
	u8 i;
L
Linus Torvalds 已提交
541

B
Bob Moore 已提交
542 543 544 545
	for (i = 0; i < length; i++) {
		acpi_os_printf("%X ", data[i]);
	}
	acpi_os_printf("\n");
L
Linus Torvalds 已提交
546 547
}

B
Bob Moore 已提交
548
static void acpi_rs_dump_dword_list(u8 length, u32 * data)
L
Linus Torvalds 已提交
549
{
B
Bob Moore 已提交
550
	u8 i;
L
Linus Torvalds 已提交
551

B
Bob Moore 已提交
552 553
	for (i = 0; i < length; i++) {
		acpi_os_printf("%25s%2.2X : %8.8X\n", "Dword", i, data[i]);
L
Linus Torvalds 已提交
554 555 556
	}
}

557 558 559 560 561 562 563 564 565
static void acpi_rs_dump_word_list(u16 length, u16 *data)
{
	u16 i;

	for (i = 0; i < length; i++) {
		acpi_os_printf("%25s%2.2X : %4.4X\n", "Word", i, data[i]);
	}
}

L
Linus Torvalds 已提交
566
#endif