diff options
author | Len Brown <len.brown@intel.com> | 2005-07-12 17:21:56 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-12 17:21:56 -0400 |
commit | 5028770a42e7bc4d15791a44c28f0ad539323807 (patch) | |
tree | 74800e35129775413c13ce7caf036ca19e3ce56c /drivers/acpi/resources/rsdump.c | |
parent | 9f02d6b7b43d46a74dd385f06090104ecd0fb807 (diff) | |
parent | d8683a0cb5d09cb7f19feefa708424a84577e68f (diff) |
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/resources/rsdump.c')
-rw-r--r-- | drivers/acpi/resources/rsdump.c | 402 |
1 files changed, 210 insertions, 192 deletions
diff --git a/drivers/acpi/resources/rsdump.c b/drivers/acpi/resources/rsdump.c index eef1b1f2c685..1935dab2ab51 100644 --- a/drivers/acpi/resources/rsdump.c +++ b/drivers/acpi/resources/rsdump.c | |||
@@ -48,9 +48,62 @@ | |||
48 | #define _COMPONENT ACPI_RESOURCES | 48 | #define _COMPONENT ACPI_RESOURCES |
49 | ACPI_MODULE_NAME ("rsdump") | 49 | ACPI_MODULE_NAME ("rsdump") |
50 | 50 | ||
51 | /* Local prototypes */ | ||
51 | 52 | ||
52 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) | 53 | static void |
54 | acpi_rs_dump_irq ( | ||
55 | union acpi_resource_data *data); | ||
56 | |||
57 | static void | ||
58 | acpi_rs_dump_address16 ( | ||
59 | union acpi_resource_data *data); | ||
60 | |||
61 | static void | ||
62 | acpi_rs_dump_address32 ( | ||
63 | union acpi_resource_data *data); | ||
64 | |||
65 | static void | ||
66 | acpi_rs_dump_address64 ( | ||
67 | union acpi_resource_data *data); | ||
68 | |||
69 | static void | ||
70 | acpi_rs_dump_dma ( | ||
71 | union acpi_resource_data *data); | ||
72 | |||
73 | static void | ||
74 | acpi_rs_dump_io ( | ||
75 | union acpi_resource_data *data); | ||
76 | |||
77 | static void | ||
78 | acpi_rs_dump_extended_irq ( | ||
79 | union acpi_resource_data *data); | ||
53 | 80 | ||
81 | static void | ||
82 | acpi_rs_dump_fixed_io ( | ||
83 | union acpi_resource_data *data); | ||
84 | |||
85 | static void | ||
86 | acpi_rs_dump_fixed_memory32 ( | ||
87 | union acpi_resource_data *data); | ||
88 | |||
89 | static void | ||
90 | acpi_rs_dump_memory24 ( | ||
91 | union acpi_resource_data *data); | ||
92 | |||
93 | static void | ||
94 | acpi_rs_dump_memory32 ( | ||
95 | union acpi_resource_data *data); | ||
96 | |||
97 | static void | ||
98 | acpi_rs_dump_start_depend_fns ( | ||
99 | union acpi_resource_data *data); | ||
100 | |||
101 | static void | ||
102 | acpi_rs_dump_vendor_specific ( | ||
103 | union acpi_resource_data *data); | ||
104 | |||
105 | |||
106 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) | ||
54 | /******************************************************************************* | 107 | /******************************************************************************* |
55 | * | 108 | * |
56 | * FUNCTION: acpi_rs_dump_irq | 109 | * FUNCTION: acpi_rs_dump_irq |
@@ -63,7 +116,7 @@ | |||
63 | * | 116 | * |
64 | ******************************************************************************/ | 117 | ******************************************************************************/ |
65 | 118 | ||
66 | void | 119 | static void |
67 | acpi_rs_dump_irq ( | 120 | acpi_rs_dump_irq ( |
68 | union acpi_resource_data *data) | 121 | union acpi_resource_data *data) |
69 | { | 122 | { |
@@ -77,13 +130,13 @@ acpi_rs_dump_irq ( | |||
77 | acpi_os_printf ("IRQ Resource\n"); | 130 | acpi_os_printf ("IRQ Resource\n"); |
78 | 131 | ||
79 | acpi_os_printf (" %s Triggered\n", | 132 | acpi_os_printf (" %s Triggered\n", |
80 | ACPI_LEVEL_SENSITIVE == irq_data->edge_level ? "Level" : "Edge"); | 133 | ACPI_LEVEL_SENSITIVE == irq_data->edge_level ? "Level" : "Edge"); |
81 | 134 | ||
82 | acpi_os_printf (" Active %s\n", | 135 | acpi_os_printf (" Active %s\n", |
83 | ACPI_ACTIVE_LOW == irq_data->active_high_low ? "Low" : "High"); | 136 | ACPI_ACTIVE_LOW == irq_data->active_high_low ? "Low" : "High"); |
84 | 137 | ||
85 | acpi_os_printf (" %s\n", | 138 | acpi_os_printf (" %s\n", |
86 | ACPI_SHARED == irq_data->shared_exclusive ? "Shared" : "Exclusive"); | 139 | ACPI_SHARED == irq_data->shared_exclusive ? "Shared" : "Exclusive"); |
87 | 140 | ||
88 | acpi_os_printf (" %X Interrupts ( ", irq_data->number_of_interrupts); | 141 | acpi_os_printf (" %X Interrupts ( ", irq_data->number_of_interrupts); |
89 | 142 | ||
@@ -108,7 +161,7 @@ acpi_rs_dump_irq ( | |||
108 | * | 161 | * |
109 | ******************************************************************************/ | 162 | ******************************************************************************/ |
110 | 163 | ||
111 | void | 164 | static void |
112 | acpi_rs_dump_dma ( | 165 | acpi_rs_dump_dma ( |
113 | union acpi_resource_data *data) | 166 | union acpi_resource_data *data) |
114 | { | 167 | { |
@@ -144,7 +197,7 @@ acpi_rs_dump_dma ( | |||
144 | } | 197 | } |
145 | 198 | ||
146 | acpi_os_printf (" %sBus Master\n", | 199 | acpi_os_printf (" %sBus Master\n", |
147 | ACPI_BUS_MASTER == dma_data->bus_master ? "" : "Not a "); | 200 | ACPI_BUS_MASTER == dma_data->bus_master ? "" : "Not a "); |
148 | 201 | ||
149 | 202 | ||
150 | switch (dma_data->transfer) { | 203 | switch (dma_data->transfer) { |
@@ -165,7 +218,8 @@ acpi_rs_dump_dma ( | |||
165 | break; | 218 | break; |
166 | } | 219 | } |
167 | 220 | ||
168 | acpi_os_printf (" Number of Channels: %X ( ", dma_data->number_of_channels); | 221 | acpi_os_printf (" Number of Channels: %X ( ", |
222 | dma_data->number_of_channels); | ||
169 | 223 | ||
170 | for (index = 0; index < dma_data->number_of_channels; index++) { | 224 | for (index = 0; index < dma_data->number_of_channels; index++) { |
171 | acpi_os_printf ("%X ", dma_data->channels[index]); | 225 | acpi_os_printf ("%X ", dma_data->channels[index]); |
@@ -188,7 +242,7 @@ acpi_rs_dump_dma ( | |||
188 | * | 242 | * |
189 | ******************************************************************************/ | 243 | ******************************************************************************/ |
190 | 244 | ||
191 | void | 245 | static void |
192 | acpi_rs_dump_start_depend_fns ( | 246 | acpi_rs_dump_start_depend_fns ( |
193 | union acpi_resource_data *data) | 247 | union acpi_resource_data *data) |
194 | { | 248 | { |
@@ -232,8 +286,7 @@ acpi_rs_dump_start_depend_fns ( | |||
232 | break; | 286 | break; |
233 | 287 | ||
234 | default: | 288 | default: |
235 | acpi_os_printf (" Invalid performance " | 289 | acpi_os_printf (" Invalid performance robustness preference\n"); |
236 | "robustness preference\n"); | ||
237 | break; | 290 | break; |
238 | } | 291 | } |
239 | 292 | ||
@@ -253,7 +306,7 @@ acpi_rs_dump_start_depend_fns ( | |||
253 | * | 306 | * |
254 | ******************************************************************************/ | 307 | ******************************************************************************/ |
255 | 308 | ||
256 | void | 309 | static void |
257 | acpi_rs_dump_io ( | 310 | acpi_rs_dump_io ( |
258 | union acpi_resource_data *data) | 311 | union acpi_resource_data *data) |
259 | { | 312 | { |
@@ -266,19 +319,15 @@ acpi_rs_dump_io ( | |||
266 | acpi_os_printf ("Io Resource\n"); | 319 | acpi_os_printf ("Io Resource\n"); |
267 | 320 | ||
268 | acpi_os_printf (" %d bit decode\n", | 321 | acpi_os_printf (" %d bit decode\n", |
269 | ACPI_DECODE_16 == io_data->io_decode ? 16 : 10); | 322 | ACPI_DECODE_16 == io_data->io_decode ? 16 : 10); |
270 | 323 | ||
271 | acpi_os_printf (" Range minimum base: %08X\n", | 324 | acpi_os_printf (" Range minimum base: %08X\n", io_data->min_base_address); |
272 | io_data->min_base_address); | ||
273 | 325 | ||
274 | acpi_os_printf (" Range maximum base: %08X\n", | 326 | acpi_os_printf (" Range maximum base: %08X\n", io_data->max_base_address); |
275 | io_data->max_base_address); | ||
276 | 327 | ||
277 | acpi_os_printf (" Alignment: %08X\n", | 328 | acpi_os_printf (" Alignment: %08X\n", io_data->alignment); |
278 | io_data->alignment); | ||
279 | 329 | ||
280 | acpi_os_printf (" Range Length: %08X\n", | 330 | acpi_os_printf (" Range Length: %08X\n", io_data->range_length); |
281 | io_data->range_length); | ||
282 | 331 | ||
283 | return; | 332 | return; |
284 | } | 333 | } |
@@ -296,7 +345,7 @@ acpi_rs_dump_io ( | |||
296 | * | 345 | * |
297 | ******************************************************************************/ | 346 | ******************************************************************************/ |
298 | 347 | ||
299 | void | 348 | static void |
300 | acpi_rs_dump_fixed_io ( | 349 | acpi_rs_dump_fixed_io ( |
301 | union acpi_resource_data *data) | 350 | union acpi_resource_data *data) |
302 | { | 351 | { |
@@ -307,11 +356,9 @@ acpi_rs_dump_fixed_io ( | |||
307 | 356 | ||
308 | 357 | ||
309 | acpi_os_printf ("Fixed Io Resource\n"); | 358 | acpi_os_printf ("Fixed Io Resource\n"); |
310 | acpi_os_printf (" Range base address: %08X", | 359 | acpi_os_printf (" Range base address: %08X", fixed_io_data->base_address); |
311 | fixed_io_data->base_address); | ||
312 | 360 | ||
313 | acpi_os_printf (" Range length: %08X", | 361 | acpi_os_printf (" Range length: %08X", fixed_io_data->range_length); |
314 | fixed_io_data->range_length); | ||
315 | 362 | ||
316 | return; | 363 | return; |
317 | } | 364 | } |
@@ -329,7 +376,7 @@ acpi_rs_dump_fixed_io ( | |||
329 | * | 376 | * |
330 | ******************************************************************************/ | 377 | ******************************************************************************/ |
331 | 378 | ||
332 | void | 379 | static void |
333 | acpi_rs_dump_vendor_specific ( | 380 | acpi_rs_dump_vendor_specific ( |
334 | union acpi_resource_data *data) | 381 | union acpi_resource_data *data) |
335 | { | 382 | { |
@@ -346,7 +393,7 @@ acpi_rs_dump_vendor_specific ( | |||
346 | 393 | ||
347 | for (index = 0; index < vendor_data->length; index++) { | 394 | for (index = 0; index < vendor_data->length; index++) { |
348 | acpi_os_printf (" Byte %X: %08X\n", | 395 | acpi_os_printf (" Byte %X: %08X\n", |
349 | index, vendor_data->reserved[index]); | 396 | index, vendor_data->reserved[index]); |
350 | } | 397 | } |
351 | 398 | ||
352 | return; | 399 | return; |
@@ -365,7 +412,7 @@ acpi_rs_dump_vendor_specific ( | |||
365 | * | 412 | * |
366 | ******************************************************************************/ | 413 | ******************************************************************************/ |
367 | 414 | ||
368 | void | 415 | static void |
369 | acpi_rs_dump_memory24 ( | 416 | acpi_rs_dump_memory24 ( |
370 | union acpi_resource_data *data) | 417 | union acpi_resource_data *data) |
371 | { | 418 | { |
@@ -378,21 +425,19 @@ acpi_rs_dump_memory24 ( | |||
378 | acpi_os_printf ("24-Bit Memory Range Resource\n"); | 425 | acpi_os_printf ("24-Bit Memory Range Resource\n"); |
379 | 426 | ||
380 | acpi_os_printf (" Read%s\n", | 427 | acpi_os_printf (" Read%s\n", |
381 | ACPI_READ_WRITE_MEMORY == | 428 | ACPI_READ_WRITE_MEMORY == |
382 | memory24_data->read_write_attribute ? | 429 | memory24_data->read_write_attribute ? |
383 | "/Write" : " only"); | 430 | "/Write" : " only"); |
384 | 431 | ||
385 | acpi_os_printf (" Range minimum base: %08X\n", | 432 | acpi_os_printf (" Range minimum base: %08X\n", |
386 | memory24_data->min_base_address); | 433 | memory24_data->min_base_address); |
387 | 434 | ||
388 | acpi_os_printf (" Range maximum base: %08X\n", | 435 | acpi_os_printf (" Range maximum base: %08X\n", |
389 | memory24_data->max_base_address); | 436 | memory24_data->max_base_address); |
390 | 437 | ||
391 | acpi_os_printf (" Alignment: %08X\n", | 438 | acpi_os_printf (" Alignment: %08X\n", memory24_data->alignment); |
392 | memory24_data->alignment); | ||
393 | 439 | ||
394 | acpi_os_printf (" Range length: %08X\n", | 440 | acpi_os_printf (" Range length: %08X\n", memory24_data->range_length); |
395 | memory24_data->range_length); | ||
396 | 441 | ||
397 | return; | 442 | return; |
398 | } | 443 | } |
@@ -410,7 +455,7 @@ acpi_rs_dump_memory24 ( | |||
410 | * | 455 | * |
411 | ******************************************************************************/ | 456 | ******************************************************************************/ |
412 | 457 | ||
413 | void | 458 | static void |
414 | acpi_rs_dump_memory32 ( | 459 | acpi_rs_dump_memory32 ( |
415 | union acpi_resource_data *data) | 460 | union acpi_resource_data *data) |
416 | { | 461 | { |
@@ -423,21 +468,19 @@ acpi_rs_dump_memory32 ( | |||
423 | acpi_os_printf ("32-Bit Memory Range Resource\n"); | 468 | acpi_os_printf ("32-Bit Memory Range Resource\n"); |
424 | 469 | ||
425 | acpi_os_printf (" Read%s\n", | 470 | acpi_os_printf (" Read%s\n", |
426 | ACPI_READ_WRITE_MEMORY == | 471 | ACPI_READ_WRITE_MEMORY == |
427 | memory32_data->read_write_attribute ? | 472 | memory32_data->read_write_attribute ? |
428 | "/Write" : " only"); | 473 | "/Write" : " only"); |
429 | 474 | ||
430 | acpi_os_printf (" Range minimum base: %08X\n", | 475 | acpi_os_printf (" Range minimum base: %08X\n", |
431 | memory32_data->min_base_address); | 476 | memory32_data->min_base_address); |
432 | 477 | ||
433 | acpi_os_printf (" Range maximum base: %08X\n", | 478 | acpi_os_printf (" Range maximum base: %08X\n", |
434 | memory32_data->max_base_address); | 479 | memory32_data->max_base_address); |
435 | 480 | ||
436 | acpi_os_printf (" Alignment: %08X\n", | 481 | acpi_os_printf (" Alignment: %08X\n", memory32_data->alignment); |
437 | memory32_data->alignment); | ||
438 | 482 | ||
439 | acpi_os_printf (" Range length: %08X\n", | 483 | acpi_os_printf (" Range length: %08X\n", memory32_data->range_length); |
440 | memory32_data->range_length); | ||
441 | 484 | ||
442 | return; | 485 | return; |
443 | } | 486 | } |
@@ -455,11 +498,12 @@ acpi_rs_dump_memory32 ( | |||
455 | * | 498 | * |
456 | ******************************************************************************/ | 499 | ******************************************************************************/ |
457 | 500 | ||
458 | void | 501 | static void |
459 | acpi_rs_dump_fixed_memory32 ( | 502 | acpi_rs_dump_fixed_memory32 ( |
460 | union acpi_resource_data *data) | 503 | union acpi_resource_data *data) |
461 | { | 504 | { |
462 | struct acpi_resource_fixed_mem32 *fixed_memory32_data = (struct acpi_resource_fixed_mem32 *) data; | 505 | struct acpi_resource_fixed_mem32 *fixed_memory32_data = |
506 | (struct acpi_resource_fixed_mem32 *) data; | ||
463 | 507 | ||
464 | 508 | ||
465 | ACPI_FUNCTION_ENTRY (); | 509 | ACPI_FUNCTION_ENTRY (); |
@@ -468,15 +512,14 @@ acpi_rs_dump_fixed_memory32 ( | |||
468 | acpi_os_printf ("32-Bit Fixed Location Memory Range Resource\n"); | 512 | acpi_os_printf ("32-Bit Fixed Location Memory Range Resource\n"); |
469 | 513 | ||
470 | acpi_os_printf (" Read%s\n", | 514 | acpi_os_printf (" Read%s\n", |
471 | ACPI_READ_WRITE_MEMORY == | 515 | ACPI_READ_WRITE_MEMORY == |
472 | fixed_memory32_data->read_write_attribute ? | 516 | fixed_memory32_data->read_write_attribute ? "/Write" : " Only"); |
473 | "/Write" : " Only"); | ||
474 | 517 | ||
475 | acpi_os_printf (" Range base address: %08X\n", | 518 | acpi_os_printf (" Range base address: %08X\n", |
476 | fixed_memory32_data->range_base_address); | 519 | fixed_memory32_data->range_base_address); |
477 | 520 | ||
478 | acpi_os_printf (" Range length: %08X\n", | 521 | acpi_os_printf (" Range length: %08X\n", |
479 | fixed_memory32_data->range_length); | 522 | fixed_memory32_data->range_length); |
480 | 523 | ||
481 | return; | 524 | return; |
482 | } | 525 | } |
@@ -494,7 +537,7 @@ acpi_rs_dump_fixed_memory32 ( | |||
494 | * | 537 | * |
495 | ******************************************************************************/ | 538 | ******************************************************************************/ |
496 | 539 | ||
497 | void | 540 | static void |
498 | acpi_rs_dump_address16 ( | 541 | acpi_rs_dump_address16 ( |
499 | union acpi_resource_data *data) | 542 | union acpi_resource_data *data) |
500 | { | 543 | { |
@@ -514,35 +557,30 @@ acpi_rs_dump_address16 ( | |||
514 | 557 | ||
515 | switch (address16_data->attribute.memory.cache_attribute) { | 558 | switch (address16_data->attribute.memory.cache_attribute) { |
516 | case ACPI_NON_CACHEABLE_MEMORY: | 559 | case ACPI_NON_CACHEABLE_MEMORY: |
517 | acpi_os_printf (" Type Specific: " | 560 | acpi_os_printf (" Type Specific: Noncacheable memory\n"); |
518 | "Noncacheable memory\n"); | ||
519 | break; | 561 | break; |
520 | 562 | ||
521 | case ACPI_CACHABLE_MEMORY: | 563 | case ACPI_CACHABLE_MEMORY: |
522 | acpi_os_printf (" Type Specific: " | 564 | acpi_os_printf (" Type Specific: Cacheable memory\n"); |
523 | "Cacheable memory\n"); | ||
524 | break; | 565 | break; |
525 | 566 | ||
526 | case ACPI_WRITE_COMBINING_MEMORY: | 567 | case ACPI_WRITE_COMBINING_MEMORY: |
527 | acpi_os_printf (" Type Specific: " | 568 | acpi_os_printf (" Type Specific: Write-combining memory\n"); |
528 | "Write-combining memory\n"); | ||
529 | break; | 569 | break; |
530 | 570 | ||
531 | case ACPI_PREFETCHABLE_MEMORY: | 571 | case ACPI_PREFETCHABLE_MEMORY: |
532 | acpi_os_printf (" Type Specific: " | 572 | acpi_os_printf (" Type Specific: Prefetchable memory\n"); |
533 | "Prefetchable memory\n"); | ||
534 | break; | 573 | break; |
535 | 574 | ||
536 | default: | 575 | default: |
537 | acpi_os_printf (" Type Specific: " | 576 | acpi_os_printf (" Type Specific: Invalid cache attribute\n"); |
538 | "Invalid cache attribute\n"); | ||
539 | break; | 577 | break; |
540 | } | 578 | } |
541 | 579 | ||
542 | acpi_os_printf (" Type Specific: Read%s\n", | 580 | acpi_os_printf (" Type Specific: Read%s\n", |
543 | ACPI_READ_WRITE_MEMORY == | 581 | ACPI_READ_WRITE_MEMORY == |
544 | address16_data->attribute.memory.read_write_attribute ? | 582 | address16_data->attribute.memory.read_write_attribute ? |
545 | "/Write" : " Only"); | 583 | "/Write" : " Only"); |
546 | break; | 584 | break; |
547 | 585 | ||
548 | case ACPI_IO_RANGE: | 586 | case ACPI_IO_RANGE: |
@@ -551,30 +589,26 @@ acpi_rs_dump_address16 ( | |||
551 | 589 | ||
552 | switch (address16_data->attribute.io.range_attribute) { | 590 | switch (address16_data->attribute.io.range_attribute) { |
553 | case ACPI_NON_ISA_ONLY_RANGES: | 591 | case ACPI_NON_ISA_ONLY_RANGES: |
554 | acpi_os_printf (" Type Specific: " | 592 | acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n"); |
555 | "Non-ISA Io Addresses\n"); | ||
556 | break; | 593 | break; |
557 | 594 | ||
558 | case ACPI_ISA_ONLY_RANGES: | 595 | case ACPI_ISA_ONLY_RANGES: |
559 | acpi_os_printf (" Type Specific: " | 596 | acpi_os_printf (" Type Specific: ISA Io Addresses\n"); |
560 | "ISA Io Addresses\n"); | ||
561 | break; | 597 | break; |
562 | 598 | ||
563 | case ACPI_ENTIRE_RANGE: | 599 | case ACPI_ENTIRE_RANGE: |
564 | acpi_os_printf (" Type Specific: " | 600 | acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n"); |
565 | "ISA and non-ISA Io Addresses\n"); | ||
566 | break; | 601 | break; |
567 | 602 | ||
568 | default: | 603 | default: |
569 | acpi_os_printf (" Type Specific: " | 604 | acpi_os_printf (" Type Specific: Invalid range attribute\n"); |
570 | "Invalid range attribute\n"); | ||
571 | break; | 605 | break; |
572 | } | 606 | } |
573 | 607 | ||
574 | acpi_os_printf (" Type Specific: %s Translation\n", | 608 | acpi_os_printf (" Type Specific: %s Translation\n", |
575 | ACPI_SPARSE_TRANSLATION == | 609 | ACPI_SPARSE_TRANSLATION == |
576 | address16_data->attribute.io.translation_attribute ? | 610 | address16_data->attribute.io.translation_attribute ? |
577 | "Sparse" : "Dense"); | 611 | "Sparse" : "Dense"); |
578 | break; | 612 | break; |
579 | 613 | ||
580 | case ACPI_BUS_NUMBER_RANGE: | 614 | case ACPI_BUS_NUMBER_RANGE: |
@@ -589,41 +623,42 @@ acpi_rs_dump_address16 ( | |||
589 | } | 623 | } |
590 | 624 | ||
591 | acpi_os_printf (" Resource %s\n", | 625 | acpi_os_printf (" Resource %s\n", |
592 | ACPI_CONSUMER == address16_data->producer_consumer ? | 626 | ACPI_CONSUMER == address16_data->producer_consumer ? |
593 | "Consumer" : "Producer"); | 627 | "Consumer" : "Producer"); |
594 | 628 | ||
595 | acpi_os_printf (" %s decode\n", | 629 | acpi_os_printf (" %s decode\n", |
596 | ACPI_SUB_DECODE == address16_data->decode ? | 630 | ACPI_SUB_DECODE == address16_data->decode ? |
597 | "Subtractive" : "Positive"); | 631 | "Subtractive" : "Positive"); |
598 | 632 | ||
599 | acpi_os_printf (" Min address is %s fixed\n", | 633 | acpi_os_printf (" Min address is %s fixed\n", |
600 | ACPI_ADDRESS_FIXED == address16_data->min_address_fixed ? | 634 | ACPI_ADDRESS_FIXED == address16_data->min_address_fixed ? |
601 | "" : "not"); | 635 | "" : "not"); |
602 | 636 | ||
603 | acpi_os_printf (" Max address is %s fixed\n", | 637 | acpi_os_printf (" Max address is %s fixed\n", |
604 | ACPI_ADDRESS_FIXED == address16_data->max_address_fixed ? | 638 | ACPI_ADDRESS_FIXED == address16_data->max_address_fixed ? |
605 | "" : "not"); | 639 | "" : "not"); |
606 | 640 | ||
607 | acpi_os_printf (" Granularity: %08X\n", | 641 | acpi_os_printf (" Granularity: %08X\n", |
608 | address16_data->granularity); | 642 | address16_data->granularity); |
609 | 643 | ||
610 | acpi_os_printf (" Address range min: %08X\n", | 644 | acpi_os_printf (" Address range min: %08X\n", |
611 | address16_data->min_address_range); | 645 | address16_data->min_address_range); |
612 | 646 | ||
613 | acpi_os_printf (" Address range max: %08X\n", | 647 | acpi_os_printf (" Address range max: %08X\n", |
614 | address16_data->max_address_range); | 648 | address16_data->max_address_range); |
615 | 649 | ||
616 | acpi_os_printf (" Address translation offset: %08X\n", | 650 | acpi_os_printf (" Address translation offset: %08X\n", |
617 | address16_data->address_translation_offset); | 651 | address16_data->address_translation_offset); |
618 | 652 | ||
619 | acpi_os_printf (" Address Length: %08X\n", | 653 | acpi_os_printf (" Address Length: %08X\n", |
620 | address16_data->address_length); | 654 | address16_data->address_length); |
621 | 655 | ||
622 | if (0xFF != address16_data->resource_source.index) { | 656 | if (0xFF != address16_data->resource_source.index) { |
623 | acpi_os_printf (" Resource Source Index: %X\n", | 657 | acpi_os_printf (" Resource Source Index: %X\n", |
624 | address16_data->resource_source.index); | 658 | address16_data->resource_source.index); |
659 | |||
625 | acpi_os_printf (" Resource Source: %s\n", | 660 | acpi_os_printf (" Resource Source: %s\n", |
626 | address16_data->resource_source.string_ptr); | 661 | address16_data->resource_source.string_ptr); |
627 | } | 662 | } |
628 | 663 | ||
629 | return; | 664 | return; |
@@ -642,7 +677,7 @@ acpi_rs_dump_address16 ( | |||
642 | * | 677 | * |
643 | ******************************************************************************/ | 678 | ******************************************************************************/ |
644 | 679 | ||
645 | void | 680 | static void |
646 | acpi_rs_dump_address32 ( | 681 | acpi_rs_dump_address32 ( |
647 | union acpi_resource_data *data) | 682 | union acpi_resource_data *data) |
648 | { | 683 | { |
@@ -661,35 +696,30 @@ acpi_rs_dump_address32 ( | |||
661 | 696 | ||
662 | switch (address32_data->attribute.memory.cache_attribute) { | 697 | switch (address32_data->attribute.memory.cache_attribute) { |
663 | case ACPI_NON_CACHEABLE_MEMORY: | 698 | case ACPI_NON_CACHEABLE_MEMORY: |
664 | acpi_os_printf (" Type Specific: " | 699 | acpi_os_printf (" Type Specific: Noncacheable memory\n"); |
665 | "Noncacheable memory\n"); | ||
666 | break; | 700 | break; |
667 | 701 | ||
668 | case ACPI_CACHABLE_MEMORY: | 702 | case ACPI_CACHABLE_MEMORY: |
669 | acpi_os_printf (" Type Specific: " | 703 | acpi_os_printf (" Type Specific: Cacheable memory\n"); |
670 | "Cacheable memory\n"); | ||
671 | break; | 704 | break; |
672 | 705 | ||
673 | case ACPI_WRITE_COMBINING_MEMORY: | 706 | case ACPI_WRITE_COMBINING_MEMORY: |
674 | acpi_os_printf (" Type Specific: " | 707 | acpi_os_printf (" Type Specific: Write-combining memory\n"); |
675 | "Write-combining memory\n"); | ||
676 | break; | 708 | break; |
677 | 709 | ||
678 | case ACPI_PREFETCHABLE_MEMORY: | 710 | case ACPI_PREFETCHABLE_MEMORY: |
679 | acpi_os_printf (" Type Specific: " | 711 | acpi_os_printf (" Type Specific: Prefetchable memory\n"); |
680 | "Prefetchable memory\n"); | ||
681 | break; | 712 | break; |
682 | 713 | ||
683 | default: | 714 | default: |
684 | acpi_os_printf (" Type Specific: " | 715 | acpi_os_printf (" Type Specific: Invalid cache attribute\n"); |
685 | "Invalid cache attribute\n"); | ||
686 | break; | 716 | break; |
687 | } | 717 | } |
688 | 718 | ||
689 | acpi_os_printf (" Type Specific: Read%s\n", | 719 | acpi_os_printf (" Type Specific: Read%s\n", |
690 | ACPI_READ_WRITE_MEMORY == | 720 | ACPI_READ_WRITE_MEMORY == |
691 | address32_data->attribute.memory.read_write_attribute ? | 721 | address32_data->attribute.memory.read_write_attribute ? |
692 | "/Write" : " Only"); | 722 | "/Write" : " Only"); |
693 | break; | 723 | break; |
694 | 724 | ||
695 | case ACPI_IO_RANGE: | 725 | case ACPI_IO_RANGE: |
@@ -698,30 +728,26 @@ acpi_rs_dump_address32 ( | |||
698 | 728 | ||
699 | switch (address32_data->attribute.io.range_attribute) { | 729 | switch (address32_data->attribute.io.range_attribute) { |
700 | case ACPI_NON_ISA_ONLY_RANGES: | 730 | case ACPI_NON_ISA_ONLY_RANGES: |
701 | acpi_os_printf (" Type Specific: " | 731 | acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n"); |
702 | "Non-ISA Io Addresses\n"); | ||
703 | break; | 732 | break; |
704 | 733 | ||
705 | case ACPI_ISA_ONLY_RANGES: | 734 | case ACPI_ISA_ONLY_RANGES: |
706 | acpi_os_printf (" Type Specific: " | 735 | acpi_os_printf (" Type Specific: ISA Io Addresses\n"); |
707 | "ISA Io Addresses\n"); | ||
708 | break; | 736 | break; |
709 | 737 | ||
710 | case ACPI_ENTIRE_RANGE: | 738 | case ACPI_ENTIRE_RANGE: |
711 | acpi_os_printf (" Type Specific: " | 739 | acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n"); |
712 | "ISA and non-ISA Io Addresses\n"); | ||
713 | break; | 740 | break; |
714 | 741 | ||
715 | default: | 742 | default: |
716 | acpi_os_printf (" Type Specific: " | 743 | acpi_os_printf (" Type Specific: Invalid Range attribute"); |
717 | "Invalid Range attribute"); | ||
718 | break; | 744 | break; |
719 | } | 745 | } |
720 | 746 | ||
721 | acpi_os_printf (" Type Specific: %s Translation\n", | 747 | acpi_os_printf (" Type Specific: %s Translation\n", |
722 | ACPI_SPARSE_TRANSLATION == | 748 | ACPI_SPARSE_TRANSLATION == |
723 | address32_data->attribute.io.translation_attribute ? | 749 | address32_data->attribute.io.translation_attribute ? |
724 | "Sparse" : "Dense"); | 750 | "Sparse" : "Dense"); |
725 | break; | 751 | break; |
726 | 752 | ||
727 | case ACPI_BUS_NUMBER_RANGE: | 753 | case ACPI_BUS_NUMBER_RANGE: |
@@ -731,46 +757,48 @@ acpi_rs_dump_address32 ( | |||
731 | 757 | ||
732 | default: | 758 | default: |
733 | 759 | ||
734 | acpi_os_printf (" Resource Type: 0x%2.2X\n", address32_data->resource_type); | 760 | acpi_os_printf (" Resource Type: 0x%2.2X\n", |
761 | address32_data->resource_type); | ||
735 | break; | 762 | break; |
736 | } | 763 | } |
737 | 764 | ||
738 | acpi_os_printf (" Resource %s\n", | 765 | acpi_os_printf (" Resource %s\n", |
739 | ACPI_CONSUMER == address32_data->producer_consumer ? | 766 | ACPI_CONSUMER == address32_data->producer_consumer ? |
740 | "Consumer" : "Producer"); | 767 | "Consumer" : "Producer"); |
741 | 768 | ||
742 | acpi_os_printf (" %s decode\n", | 769 | acpi_os_printf (" %s decode\n", |
743 | ACPI_SUB_DECODE == address32_data->decode ? | 770 | ACPI_SUB_DECODE == address32_data->decode ? |
744 | "Subtractive" : "Positive"); | 771 | "Subtractive" : "Positive"); |
745 | 772 | ||
746 | acpi_os_printf (" Min address is %s fixed\n", | 773 | acpi_os_printf (" Min address is %s fixed\n", |
747 | ACPI_ADDRESS_FIXED == address32_data->min_address_fixed ? | 774 | ACPI_ADDRESS_FIXED == address32_data->min_address_fixed ? |
748 | "" : "not "); | 775 | "" : "not "); |
749 | 776 | ||
750 | acpi_os_printf (" Max address is %s fixed\n", | 777 | acpi_os_printf (" Max address is %s fixed\n", |
751 | ACPI_ADDRESS_FIXED == address32_data->max_address_fixed ? | 778 | ACPI_ADDRESS_FIXED == address32_data->max_address_fixed ? |
752 | "" : "not "); | 779 | "" : "not "); |
753 | 780 | ||
754 | acpi_os_printf (" Granularity: %08X\n", | 781 | acpi_os_printf (" Granularity: %08X\n", |
755 | address32_data->granularity); | 782 | address32_data->granularity); |
756 | 783 | ||
757 | acpi_os_printf (" Address range min: %08X\n", | 784 | acpi_os_printf (" Address range min: %08X\n", |
758 | address32_data->min_address_range); | 785 | address32_data->min_address_range); |
759 | 786 | ||
760 | acpi_os_printf (" Address range max: %08X\n", | 787 | acpi_os_printf (" Address range max: %08X\n", |
761 | address32_data->max_address_range); | 788 | address32_data->max_address_range); |
762 | 789 | ||
763 | acpi_os_printf (" Address translation offset: %08X\n", | 790 | acpi_os_printf (" Address translation offset: %08X\n", |
764 | address32_data->address_translation_offset); | 791 | address32_data->address_translation_offset); |
765 | 792 | ||
766 | acpi_os_printf (" Address Length: %08X\n", | 793 | acpi_os_printf (" Address Length: %08X\n", |
767 | address32_data->address_length); | 794 | address32_data->address_length); |
768 | 795 | ||
769 | if(0xFF != address32_data->resource_source.index) { | 796 | if(0xFF != address32_data->resource_source.index) { |
770 | acpi_os_printf (" Resource Source Index: %X\n", | 797 | acpi_os_printf (" Resource Source Index: %X\n", |
771 | address32_data->resource_source.index); | 798 | address32_data->resource_source.index); |
799 | |||
772 | acpi_os_printf (" Resource Source: %s\n", | 800 | acpi_os_printf (" Resource Source: %s\n", |
773 | address32_data->resource_source.string_ptr); | 801 | address32_data->resource_source.string_ptr); |
774 | } | 802 | } |
775 | 803 | ||
776 | return; | 804 | return; |
@@ -789,7 +817,7 @@ acpi_rs_dump_address32 ( | |||
789 | * | 817 | * |
790 | ******************************************************************************/ | 818 | ******************************************************************************/ |
791 | 819 | ||
792 | void | 820 | static void |
793 | acpi_rs_dump_address64 ( | 821 | acpi_rs_dump_address64 ( |
794 | union acpi_resource_data *data) | 822 | union acpi_resource_data *data) |
795 | { | 823 | { |
@@ -808,35 +836,30 @@ acpi_rs_dump_address64 ( | |||
808 | 836 | ||
809 | switch (address64_data->attribute.memory.cache_attribute) { | 837 | switch (address64_data->attribute.memory.cache_attribute) { |
810 | case ACPI_NON_CACHEABLE_MEMORY: | 838 | case ACPI_NON_CACHEABLE_MEMORY: |
811 | acpi_os_printf (" Type Specific: " | 839 | acpi_os_printf (" Type Specific: Noncacheable memory\n"); |
812 | "Noncacheable memory\n"); | ||
813 | break; | 840 | break; |
814 | 841 | ||
815 | case ACPI_CACHABLE_MEMORY: | 842 | case ACPI_CACHABLE_MEMORY: |
816 | acpi_os_printf (" Type Specific: " | 843 | acpi_os_printf (" Type Specific: Cacheable memory\n"); |
817 | "Cacheable memory\n"); | ||
818 | break; | 844 | break; |
819 | 845 | ||
820 | case ACPI_WRITE_COMBINING_MEMORY: | 846 | case ACPI_WRITE_COMBINING_MEMORY: |
821 | acpi_os_printf (" Type Specific: " | 847 | acpi_os_printf (" Type Specific: Write-combining memory\n"); |
822 | "Write-combining memory\n"); | ||
823 | break; | 848 | break; |
824 | 849 | ||
825 | case ACPI_PREFETCHABLE_MEMORY: | 850 | case ACPI_PREFETCHABLE_MEMORY: |
826 | acpi_os_printf (" Type Specific: " | 851 | acpi_os_printf (" Type Specific: Prefetchable memory\n"); |
827 | "Prefetchable memory\n"); | ||
828 | break; | 852 | break; |
829 | 853 | ||
830 | default: | 854 | default: |
831 | acpi_os_printf (" Type Specific: " | 855 | acpi_os_printf (" Type Specific: Invalid cache attribute\n"); |
832 | "Invalid cache attribute\n"); | ||
833 | break; | 856 | break; |
834 | } | 857 | } |
835 | 858 | ||
836 | acpi_os_printf (" Type Specific: Read%s\n", | 859 | acpi_os_printf (" Type Specific: Read%s\n", |
837 | ACPI_READ_WRITE_MEMORY == | 860 | ACPI_READ_WRITE_MEMORY == |
838 | address64_data->attribute.memory.read_write_attribute ? | 861 | address64_data->attribute.memory.read_write_attribute ? |
839 | "/Write" : " Only"); | 862 | "/Write" : " Only"); |
840 | break; | 863 | break; |
841 | 864 | ||
842 | case ACPI_IO_RANGE: | 865 | case ACPI_IO_RANGE: |
@@ -845,30 +868,26 @@ acpi_rs_dump_address64 ( | |||
845 | 868 | ||
846 | switch (address64_data->attribute.io.range_attribute) { | 869 | switch (address64_data->attribute.io.range_attribute) { |
847 | case ACPI_NON_ISA_ONLY_RANGES: | 870 | case ACPI_NON_ISA_ONLY_RANGES: |
848 | acpi_os_printf (" Type Specific: " | 871 | acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n"); |
849 | "Non-ISA Io Addresses\n"); | ||
850 | break; | 872 | break; |
851 | 873 | ||
852 | case ACPI_ISA_ONLY_RANGES: | 874 | case ACPI_ISA_ONLY_RANGES: |
853 | acpi_os_printf (" Type Specific: " | 875 | acpi_os_printf (" Type Specific: ISA Io Addresses\n"); |
854 | "ISA Io Addresses\n"); | ||
855 | break; | 876 | break; |
856 | 877 | ||
857 | case ACPI_ENTIRE_RANGE: | 878 | case ACPI_ENTIRE_RANGE: |
858 | acpi_os_printf (" Type Specific: " | 879 | acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n"); |
859 | "ISA and non-ISA Io Addresses\n"); | ||
860 | break; | 880 | break; |
861 | 881 | ||
862 | default: | 882 | default: |
863 | acpi_os_printf (" Type Specific: " | 883 | acpi_os_printf (" Type Specific: Invalid Range attribute"); |
864 | "Invalid Range attribute"); | ||
865 | break; | 884 | break; |
866 | } | 885 | } |
867 | 886 | ||
868 | acpi_os_printf (" Type Specific: %s Translation\n", | 887 | acpi_os_printf (" Type Specific: %s Translation\n", |
869 | ACPI_SPARSE_TRANSLATION == | 888 | ACPI_SPARSE_TRANSLATION == |
870 | address64_data->attribute.io.translation_attribute ? | 889 | address64_data->attribute.io.translation_attribute ? |
871 | "Sparse" : "Dense"); | 890 | "Sparse" : "Dense"); |
872 | break; | 891 | break; |
873 | 892 | ||
874 | case ACPI_BUS_NUMBER_RANGE: | 893 | case ACPI_BUS_NUMBER_RANGE: |
@@ -878,49 +897,51 @@ acpi_rs_dump_address64 ( | |||
878 | 897 | ||
879 | default: | 898 | default: |
880 | 899 | ||
881 | acpi_os_printf (" Resource Type: 0x%2.2X\n", address64_data->resource_type); | 900 | acpi_os_printf (" Resource Type: 0x%2.2X\n", |
901 | address64_data->resource_type); | ||
882 | break; | 902 | break; |
883 | } | 903 | } |
884 | 904 | ||
885 | acpi_os_printf (" Resource %s\n", | 905 | acpi_os_printf (" Resource %s\n", |
886 | ACPI_CONSUMER == address64_data->producer_consumer ? | 906 | ACPI_CONSUMER == address64_data->producer_consumer ? |
887 | "Consumer" : "Producer"); | 907 | "Consumer" : "Producer"); |
888 | 908 | ||
889 | acpi_os_printf (" %s decode\n", | 909 | acpi_os_printf (" %s decode\n", |
890 | ACPI_SUB_DECODE == address64_data->decode ? | 910 | ACPI_SUB_DECODE == address64_data->decode ? |
891 | "Subtractive" : "Positive"); | 911 | "Subtractive" : "Positive"); |
892 | 912 | ||
893 | acpi_os_printf (" Min address is %s fixed\n", | 913 | acpi_os_printf (" Min address is %s fixed\n", |
894 | ACPI_ADDRESS_FIXED == address64_data->min_address_fixed ? | 914 | ACPI_ADDRESS_FIXED == address64_data->min_address_fixed ? |
895 | "" : "not "); | 915 | "" : "not "); |
896 | 916 | ||
897 | acpi_os_printf (" Max address is %s fixed\n", | 917 | acpi_os_printf (" Max address is %s fixed\n", |
898 | ACPI_ADDRESS_FIXED == address64_data->max_address_fixed ? | 918 | ACPI_ADDRESS_FIXED == address64_data->max_address_fixed ? |
899 | "" : "not "); | 919 | "" : "not "); |
900 | 920 | ||
901 | acpi_os_printf (" Granularity: %8.8X%8.8X\n", | 921 | acpi_os_printf (" Granularity: %8.8X%8.8X\n", |
902 | ACPI_FORMAT_UINT64 (address64_data->granularity)); | 922 | ACPI_FORMAT_UINT64 (address64_data->granularity)); |
903 | 923 | ||
904 | acpi_os_printf (" Address range min: %8.8X%8.8X\n", | 924 | acpi_os_printf (" Address range min: %8.8X%8.8X\n", |
905 | ACPI_FORMAT_UINT64 (address64_data->min_address_range)); | 925 | ACPI_FORMAT_UINT64 (address64_data->min_address_range)); |
906 | 926 | ||
907 | acpi_os_printf (" Address range max: %8.8X%8.8X\n", | 927 | acpi_os_printf (" Address range max: %8.8X%8.8X\n", |
908 | ACPI_FORMAT_UINT64 (address64_data->max_address_range)); | 928 | ACPI_FORMAT_UINT64 (address64_data->max_address_range)); |
909 | 929 | ||
910 | acpi_os_printf (" Address translation offset: %8.8X%8.8X\n", | 930 | acpi_os_printf (" Address translation offset: %8.8X%8.8X\n", |
911 | ACPI_FORMAT_UINT64 (address64_data->address_translation_offset)); | 931 | ACPI_FORMAT_UINT64 (address64_data->address_translation_offset)); |
912 | 932 | ||
913 | acpi_os_printf (" Address Length: %8.8X%8.8X\n", | 933 | acpi_os_printf (" Address Length: %8.8X%8.8X\n", |
914 | ACPI_FORMAT_UINT64 (address64_data->address_length)); | 934 | ACPI_FORMAT_UINT64 (address64_data->address_length)); |
915 | 935 | ||
916 | acpi_os_printf (" Type Specific Attributes: %8.8X%8.8X\n", | 936 | acpi_os_printf (" Type Specific Attributes: %8.8X%8.8X\n", |
917 | ACPI_FORMAT_UINT64 (address64_data->type_specific_attributes)); | 937 | ACPI_FORMAT_UINT64 (address64_data->type_specific_attributes)); |
918 | 938 | ||
919 | if (0xFF != address64_data->resource_source.index) { | 939 | if (0xFF != address64_data->resource_source.index) { |
920 | acpi_os_printf (" Resource Source Index: %X\n", | 940 | acpi_os_printf (" Resource Source Index: %X\n", |
921 | address64_data->resource_source.index); | 941 | address64_data->resource_source.index); |
942 | |||
922 | acpi_os_printf (" Resource Source: %s\n", | 943 | acpi_os_printf (" Resource Source: %s\n", |
923 | address64_data->resource_source.string_ptr); | 944 | address64_data->resource_source.string_ptr); |
924 | } | 945 | } |
925 | 946 | ||
926 | return; | 947 | return; |
@@ -939,7 +960,7 @@ acpi_rs_dump_address64 ( | |||
939 | * | 960 | * |
940 | ******************************************************************************/ | 961 | ******************************************************************************/ |
941 | 962 | ||
942 | void | 963 | static void |
943 | acpi_rs_dump_extended_irq ( | 964 | acpi_rs_dump_extended_irq ( |
944 | union acpi_resource_data *data) | 965 | union acpi_resource_data *data) |
945 | { | 966 | { |
@@ -953,23 +974,22 @@ acpi_rs_dump_extended_irq ( | |||
953 | acpi_os_printf ("Extended IRQ Resource\n"); | 974 | acpi_os_printf ("Extended IRQ Resource\n"); |
954 | 975 | ||
955 | acpi_os_printf (" Resource %s\n", | 976 | acpi_os_printf (" Resource %s\n", |
956 | ACPI_CONSUMER == ext_irq_data->producer_consumer ? | 977 | ACPI_CONSUMER == ext_irq_data->producer_consumer ? |
957 | "Consumer" : "Producer"); | 978 | "Consumer" : "Producer"); |
958 | 979 | ||
959 | acpi_os_printf (" %s\n", | 980 | acpi_os_printf (" %s\n", |
960 | ACPI_LEVEL_SENSITIVE == ext_irq_data->edge_level ? | 981 | ACPI_LEVEL_SENSITIVE == ext_irq_data->edge_level ? |
961 | "Level" : "Edge"); | 982 | "Level" : "Edge"); |
962 | 983 | ||
963 | acpi_os_printf (" Active %s\n", | 984 | acpi_os_printf (" Active %s\n", |
964 | ACPI_ACTIVE_LOW == ext_irq_data->active_high_low ? | 985 | ACPI_ACTIVE_LOW == ext_irq_data->active_high_low ? |
965 | "low" : "high"); | 986 | "low" : "high"); |
966 | 987 | ||
967 | acpi_os_printf (" %s\n", | 988 | acpi_os_printf (" %s\n", |
968 | ACPI_SHARED == ext_irq_data->shared_exclusive ? | 989 | ACPI_SHARED == ext_irq_data->shared_exclusive ? |
969 | "Shared" : "Exclusive"); | 990 | "Shared" : "Exclusive"); |
970 | 991 | ||
971 | acpi_os_printf (" Interrupts : %X ( ", | 992 | acpi_os_printf (" Interrupts : %X ( ", ext_irq_data->number_of_interrupts); |
972 | ext_irq_data->number_of_interrupts); | ||
973 | 993 | ||
974 | for (index = 0; index < ext_irq_data->number_of_interrupts; index++) { | 994 | for (index = 0; index < ext_irq_data->number_of_interrupts; index++) { |
975 | acpi_os_printf ("%X ", ext_irq_data->interrupts[index]); | 995 | acpi_os_printf ("%X ", ext_irq_data->interrupts[index]); |
@@ -979,9 +999,10 @@ acpi_rs_dump_extended_irq ( | |||
979 | 999 | ||
980 | if(0xFF != ext_irq_data->resource_source.index) { | 1000 | if(0xFF != ext_irq_data->resource_source.index) { |
981 | acpi_os_printf (" Resource Source Index: %X", | 1001 | acpi_os_printf (" Resource Source Index: %X", |
982 | ext_irq_data->resource_source.index); | 1002 | ext_irq_data->resource_source.index); |
1003 | |||
983 | acpi_os_printf (" Resource Source: %s", | 1004 | acpi_os_printf (" Resource Source: %s", |
984 | ext_irq_data->resource_source.string_ptr); | 1005 | ext_irq_data->resource_source.string_ptr); |
985 | } | 1006 | } |
986 | 1007 | ||
987 | return; | 1008 | return; |
@@ -992,7 +1013,7 @@ acpi_rs_dump_extended_irq ( | |||
992 | * | 1013 | * |
993 | * FUNCTION: acpi_rs_dump_resource_list | 1014 | * FUNCTION: acpi_rs_dump_resource_list |
994 | * | 1015 | * |
995 | * PARAMETERS: Data - pointer to the resource structure to dump. | 1016 | * PARAMETERS: Resource - pointer to the resource structure to dump. |
996 | * | 1017 | * |
997 | * RETURN: None | 1018 | * RETURN: None |
998 | * | 1019 | * |
@@ -1096,7 +1117,7 @@ acpi_rs_dump_resource_list ( | |||
1096 | * | 1117 | * |
1097 | * FUNCTION: acpi_rs_dump_irq_list | 1118 | * FUNCTION: acpi_rs_dump_irq_list |
1098 | * | 1119 | * |
1099 | * PARAMETERS: Data - pointer to the routing table to dump. | 1120 | * PARAMETERS: route_table - pointer to the routing table to dump. |
1100 | * | 1121 | * |
1101 | * RETURN: None | 1122 | * RETURN: None |
1102 | * | 1123 | * |
@@ -1124,20 +1145,17 @@ acpi_rs_dump_irq_list ( | |||
1124 | acpi_os_printf ("PCI IRQ Routing Table structure %X.\n", count++); | 1145 | acpi_os_printf ("PCI IRQ Routing Table structure %X.\n", count++); |
1125 | 1146 | ||
1126 | acpi_os_printf (" Address: %8.8X%8.8X\n", | 1147 | acpi_os_printf (" Address: %8.8X%8.8X\n", |
1127 | ACPI_FORMAT_UINT64 (prt_element->address)); | 1148 | ACPI_FORMAT_UINT64 (prt_element->address)); |
1128 | 1149 | ||
1129 | acpi_os_printf (" Pin: %X\n", prt_element->pin); | 1150 | acpi_os_printf (" Pin: %X\n", prt_element->pin); |
1130 | 1151 | ||
1131 | acpi_os_printf (" Source: %s\n", prt_element->source); | 1152 | acpi_os_printf (" Source: %s\n", prt_element->source); |
1132 | 1153 | ||
1133 | acpi_os_printf (" source_index: %X\n", | 1154 | acpi_os_printf (" source_index: %X\n", prt_element->source_index); |
1134 | prt_element->source_index); | ||
1135 | 1155 | ||
1136 | buffer += prt_element->length; | 1156 | buffer += prt_element->length; |
1137 | |||
1138 | prt_element = ACPI_CAST_PTR (struct acpi_pci_routing_table, buffer); | 1157 | prt_element = ACPI_CAST_PTR (struct acpi_pci_routing_table, buffer); |
1139 | 1158 | if (0 == prt_element->length) { | |
1140 | if(0 == prt_element->length) { | ||
1141 | done = TRUE; | 1159 | done = TRUE; |
1142 | } | 1160 | } |
1143 | } | 1161 | } |