1 /*******************************************************************************
3 * Module Name: rsdump - Functions to display the resource structures.
5 ******************************************************************************/
8 * Copyright (C) 2000 - 2005, R. Byron Moore
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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.
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.
45 #include <acpi/acpi.h>
46 #include <acpi/acresrc.h>
48 #define _COMPONENT ACPI_RESOURCES
49 ACPI_MODULE_NAME ("rsdump")
51 /* Local prototypes */
55 union acpi_resource_data *data);
58 acpi_rs_dump_address16 (
59 union acpi_resource_data *data);
62 acpi_rs_dump_address32 (
63 union acpi_resource_data *data);
66 acpi_rs_dump_address64 (
67 union acpi_resource_data *data);
71 union acpi_resource_data *data);
75 union acpi_resource_data *data);
78 acpi_rs_dump_extended_irq (
79 union acpi_resource_data *data);
82 acpi_rs_dump_fixed_io (
83 union acpi_resource_data *data);
86 acpi_rs_dump_fixed_memory32 (
87 union acpi_resource_data *data);
90 acpi_rs_dump_memory24 (
91 union acpi_resource_data *data);
94 acpi_rs_dump_memory32 (
95 union acpi_resource_data *data);
98 acpi_rs_dump_start_depend_fns (
99 union acpi_resource_data *data);
102 acpi_rs_dump_vendor_specific (
103 union acpi_resource_data *data);
106 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
107 /*******************************************************************************
109 * FUNCTION: acpi_rs_dump_irq
111 * PARAMETERS: Data - pointer to the resource structure to dump.
115 * DESCRIPTION: Prints out the various members of the Data structure type.
117 ******************************************************************************/
121 union acpi_resource_data *data)
123 struct acpi_resource_irq *irq_data = (struct acpi_resource_irq *) data;
127 ACPI_FUNCTION_ENTRY ();
130 acpi_os_printf ("IRQ Resource\n");
132 acpi_os_printf (" %s Triggered\n",
133 ACPI_LEVEL_SENSITIVE == irq_data->edge_level ? "Level" : "Edge");
135 acpi_os_printf (" Active %s\n",
136 ACPI_ACTIVE_LOW == irq_data->active_high_low ? "Low" : "High");
138 acpi_os_printf (" %s\n",
139 ACPI_SHARED == irq_data->shared_exclusive ? "Shared" : "Exclusive");
141 acpi_os_printf (" %X Interrupts ( ", irq_data->number_of_interrupts);
143 for (index = 0; index < irq_data->number_of_interrupts; index++) {
144 acpi_os_printf ("%X ", irq_data->interrupts[index]);
147 acpi_os_printf (")\n");
152 /*******************************************************************************
154 * FUNCTION: acpi_rs_dump_dma
156 * PARAMETERS: Data - pointer to the resource structure to dump.
160 * DESCRIPTION: Prints out the various members of the Data structure type.
162 ******************************************************************************/
166 union acpi_resource_data *data)
168 struct acpi_resource_dma *dma_data = (struct acpi_resource_dma *) data;
172 ACPI_FUNCTION_ENTRY ();
175 acpi_os_printf ("DMA Resource\n");
177 switch (dma_data->type) {
178 case ACPI_COMPATIBILITY:
179 acpi_os_printf (" Compatibility mode\n");
183 acpi_os_printf (" Type A\n");
187 acpi_os_printf (" Type B\n");
191 acpi_os_printf (" Type F\n");
195 acpi_os_printf (" Invalid DMA type\n");
199 acpi_os_printf (" %sBus Master\n",
200 ACPI_BUS_MASTER == dma_data->bus_master ? "" : "Not a ");
203 switch (dma_data->transfer) {
204 case ACPI_TRANSFER_8:
205 acpi_os_printf (" 8-bit only transfer\n");
208 case ACPI_TRANSFER_8_16:
209 acpi_os_printf (" 8 and 16-bit transfer\n");
212 case ACPI_TRANSFER_16:
213 acpi_os_printf (" 16 bit only transfer\n");
217 acpi_os_printf (" Invalid transfer preference\n");
221 acpi_os_printf (" Number of Channels: %X ( ",
222 dma_data->number_of_channels);
224 for (index = 0; index < dma_data->number_of_channels; index++) {
225 acpi_os_printf ("%X ", dma_data->channels[index]);
228 acpi_os_printf (")\n");
233 /*******************************************************************************
235 * FUNCTION: acpi_rs_dump_start_depend_fns
237 * PARAMETERS: Data - pointer to the resource structure to dump.
241 * DESCRIPTION: Prints out the various members of the Data structure type.
243 ******************************************************************************/
246 acpi_rs_dump_start_depend_fns (
247 union acpi_resource_data *data)
249 struct acpi_resource_start_dpf *sdf_data = (struct acpi_resource_start_dpf *) data;
252 ACPI_FUNCTION_ENTRY ();
255 acpi_os_printf ("Start Dependent Functions Resource\n");
257 switch (sdf_data->compatibility_priority) {
258 case ACPI_GOOD_CONFIGURATION:
259 acpi_os_printf (" Good configuration\n");
262 case ACPI_ACCEPTABLE_CONFIGURATION:
263 acpi_os_printf (" Acceptable configuration\n");
266 case ACPI_SUB_OPTIMAL_CONFIGURATION:
267 acpi_os_printf (" Sub-optimal configuration\n");
271 acpi_os_printf (" Invalid compatibility priority\n");
275 switch(sdf_data->performance_robustness) {
276 case ACPI_GOOD_CONFIGURATION:
277 acpi_os_printf (" Good configuration\n");
280 case ACPI_ACCEPTABLE_CONFIGURATION:
281 acpi_os_printf (" Acceptable configuration\n");
284 case ACPI_SUB_OPTIMAL_CONFIGURATION:
285 acpi_os_printf (" Sub-optimal configuration\n");
289 acpi_os_printf (" Invalid performance robustness preference\n");
297 /*******************************************************************************
299 * FUNCTION: acpi_rs_dump_io
301 * PARAMETERS: Data - pointer to the resource structure to dump.
305 * DESCRIPTION: Prints out the various members of the Data structure type.
307 ******************************************************************************/
311 union acpi_resource_data *data)
313 struct acpi_resource_io *io_data = (struct acpi_resource_io *) data;
316 ACPI_FUNCTION_ENTRY ();
319 acpi_os_printf ("Io Resource\n");
321 acpi_os_printf (" %d bit decode\n",
322 ACPI_DECODE_16 == io_data->io_decode ? 16 : 10);
324 acpi_os_printf (" Range minimum base: %08X\n", io_data->min_base_address);
326 acpi_os_printf (" Range maximum base: %08X\n", io_data->max_base_address);
328 acpi_os_printf (" Alignment: %08X\n", io_data->alignment);
330 acpi_os_printf (" Range Length: %08X\n", io_data->range_length);
336 /*******************************************************************************
338 * FUNCTION: acpi_rs_dump_fixed_io
340 * PARAMETERS: Data - pointer to the resource structure to dump.
344 * DESCRIPTION: Prints out the various members of the Data structure type.
346 ******************************************************************************/
349 acpi_rs_dump_fixed_io (
350 union acpi_resource_data *data)
352 struct acpi_resource_fixed_io *fixed_io_data = (struct acpi_resource_fixed_io *) data;
355 ACPI_FUNCTION_ENTRY ();
358 acpi_os_printf ("Fixed Io Resource\n");
359 acpi_os_printf (" Range base address: %08X", fixed_io_data->base_address);
361 acpi_os_printf (" Range length: %08X", fixed_io_data->range_length);
367 /*******************************************************************************
369 * FUNCTION: acpi_rs_dump_vendor_specific
371 * PARAMETERS: Data - pointer to the resource structure to dump.
375 * DESCRIPTION: Prints out the various members of the Data structure type.
377 ******************************************************************************/
380 acpi_rs_dump_vendor_specific (
381 union acpi_resource_data *data)
383 struct acpi_resource_vendor *vendor_data = (struct acpi_resource_vendor *) data;
387 ACPI_FUNCTION_ENTRY ();
390 acpi_os_printf ("Vendor Specific Resource\n");
392 acpi_os_printf (" Length: %08X\n", vendor_data->length);
394 for (index = 0; index < vendor_data->length; index++) {
395 acpi_os_printf (" Byte %X: %08X\n",
396 index, vendor_data->reserved[index]);
403 /*******************************************************************************
405 * FUNCTION: acpi_rs_dump_memory24
407 * PARAMETERS: Data - pointer to the resource structure to dump.
411 * DESCRIPTION: Prints out the various members of the Data structure type.
413 ******************************************************************************/
416 acpi_rs_dump_memory24 (
417 union acpi_resource_data *data)
419 struct acpi_resource_mem24 *memory24_data = (struct acpi_resource_mem24 *) data;
422 ACPI_FUNCTION_ENTRY ();
425 acpi_os_printf ("24-Bit Memory Range Resource\n");
427 acpi_os_printf (" Read%s\n",
428 ACPI_READ_WRITE_MEMORY ==
429 memory24_data->read_write_attribute ?
432 acpi_os_printf (" Range minimum base: %08X\n",
433 memory24_data->min_base_address);
435 acpi_os_printf (" Range maximum base: %08X\n",
436 memory24_data->max_base_address);
438 acpi_os_printf (" Alignment: %08X\n", memory24_data->alignment);
440 acpi_os_printf (" Range length: %08X\n", memory24_data->range_length);
446 /*******************************************************************************
448 * FUNCTION: acpi_rs_dump_memory32
450 * PARAMETERS: Data - pointer to the resource structure to dump.
454 * DESCRIPTION: Prints out the various members of the Data structure type.
456 ******************************************************************************/
459 acpi_rs_dump_memory32 (
460 union acpi_resource_data *data)
462 struct acpi_resource_mem32 *memory32_data = (struct acpi_resource_mem32 *) data;
465 ACPI_FUNCTION_ENTRY ();
468 acpi_os_printf ("32-Bit Memory Range Resource\n");
470 acpi_os_printf (" Read%s\n",
471 ACPI_READ_WRITE_MEMORY ==
472 memory32_data->read_write_attribute ?
475 acpi_os_printf (" Range minimum base: %08X\n",
476 memory32_data->min_base_address);
478 acpi_os_printf (" Range maximum base: %08X\n",
479 memory32_data->max_base_address);
481 acpi_os_printf (" Alignment: %08X\n", memory32_data->alignment);
483 acpi_os_printf (" Range length: %08X\n", memory32_data->range_length);
489 /*******************************************************************************
491 * FUNCTION: acpi_rs_dump_fixed_memory32
493 * PARAMETERS: Data - pointer to the resource structure to dump.
497 * DESCRIPTION: Prints out the various members of the Data structure type.
499 ******************************************************************************/
502 acpi_rs_dump_fixed_memory32 (
503 union acpi_resource_data *data)
505 struct acpi_resource_fixed_mem32 *fixed_memory32_data =
506 (struct acpi_resource_fixed_mem32 *) data;
509 ACPI_FUNCTION_ENTRY ();
512 acpi_os_printf ("32-Bit Fixed Location Memory Range Resource\n");
514 acpi_os_printf (" Read%s\n",
515 ACPI_READ_WRITE_MEMORY ==
516 fixed_memory32_data->read_write_attribute ? "/Write" : " Only");
518 acpi_os_printf (" Range base address: %08X\n",
519 fixed_memory32_data->range_base_address);
521 acpi_os_printf (" Range length: %08X\n",
522 fixed_memory32_data->range_length);
528 /*******************************************************************************
530 * FUNCTION: acpi_rs_dump_address16
532 * PARAMETERS: Data - pointer to the resource structure to dump.
536 * DESCRIPTION: Prints out the various members of the Data structure type.
538 ******************************************************************************/
541 acpi_rs_dump_address16 (
542 union acpi_resource_data *data)
544 struct acpi_resource_address16 *address16_data = (struct acpi_resource_address16 *) data;
547 ACPI_FUNCTION_ENTRY ();
550 acpi_os_printf ("16-Bit Address Space Resource\n");
551 acpi_os_printf (" Resource Type: ");
553 switch (address16_data->resource_type) {
554 case ACPI_MEMORY_RANGE:
556 acpi_os_printf ("Memory Range\n");
558 switch (address16_data->attribute.memory.cache_attribute) {
559 case ACPI_NON_CACHEABLE_MEMORY:
560 acpi_os_printf (" Type Specific: Noncacheable memory\n");
563 case ACPI_CACHABLE_MEMORY:
564 acpi_os_printf (" Type Specific: Cacheable memory\n");
567 case ACPI_WRITE_COMBINING_MEMORY:
568 acpi_os_printf (" Type Specific: Write-combining memory\n");
571 case ACPI_PREFETCHABLE_MEMORY:
572 acpi_os_printf (" Type Specific: Prefetchable memory\n");
576 acpi_os_printf (" Type Specific: Invalid cache attribute\n");
580 acpi_os_printf (" Type Specific: Read%s\n",
581 ACPI_READ_WRITE_MEMORY ==
582 address16_data->attribute.memory.read_write_attribute ?
588 acpi_os_printf ("I/O Range\n");
590 switch (address16_data->attribute.io.range_attribute) {
591 case ACPI_NON_ISA_ONLY_RANGES:
592 acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n");
595 case ACPI_ISA_ONLY_RANGES:
596 acpi_os_printf (" Type Specific: ISA Io Addresses\n");
599 case ACPI_ENTIRE_RANGE:
600 acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n");
604 acpi_os_printf (" Type Specific: Invalid range attribute\n");
608 acpi_os_printf (" Type Specific: %s Translation\n",
609 ACPI_SPARSE_TRANSLATION ==
610 address16_data->attribute.io.translation_attribute ?
614 case ACPI_BUS_NUMBER_RANGE:
616 acpi_os_printf ("Bus Number Range\n");
621 acpi_os_printf ("0x%2.2X\n", address16_data->resource_type);
625 acpi_os_printf (" Resource %s\n",
626 ACPI_CONSUMER == address16_data->producer_consumer ?
627 "Consumer" : "Producer");
629 acpi_os_printf (" %s decode\n",
630 ACPI_SUB_DECODE == address16_data->decode ?
631 "Subtractive" : "Positive");
633 acpi_os_printf (" Min address is %s fixed\n",
634 ACPI_ADDRESS_FIXED == address16_data->min_address_fixed ?
637 acpi_os_printf (" Max address is %s fixed\n",
638 ACPI_ADDRESS_FIXED == address16_data->max_address_fixed ?
641 acpi_os_printf (" Granularity: %08X\n",
642 address16_data->granularity);
644 acpi_os_printf (" Address range min: %08X\n",
645 address16_data->min_address_range);
647 acpi_os_printf (" Address range max: %08X\n",
648 address16_data->max_address_range);
650 acpi_os_printf (" Address translation offset: %08X\n",
651 address16_data->address_translation_offset);
653 acpi_os_printf (" Address Length: %08X\n",
654 address16_data->address_length);
656 if (0xFF != address16_data->resource_source.index) {
657 acpi_os_printf (" Resource Source Index: %X\n",
658 address16_data->resource_source.index);
660 acpi_os_printf (" Resource Source: %s\n",
661 address16_data->resource_source.string_ptr);
668 /*******************************************************************************
670 * FUNCTION: acpi_rs_dump_address32
672 * PARAMETERS: Data - pointer to the resource structure to dump.
676 * DESCRIPTION: Prints out the various members of the Data structure type.
678 ******************************************************************************/
681 acpi_rs_dump_address32 (
682 union acpi_resource_data *data)
684 struct acpi_resource_address32 *address32_data = (struct acpi_resource_address32 *) data;
687 ACPI_FUNCTION_ENTRY ();
690 acpi_os_printf ("32-Bit Address Space Resource\n");
692 switch (address32_data->resource_type) {
693 case ACPI_MEMORY_RANGE:
695 acpi_os_printf (" Resource Type: Memory Range\n");
697 switch (address32_data->attribute.memory.cache_attribute) {
698 case ACPI_NON_CACHEABLE_MEMORY:
699 acpi_os_printf (" Type Specific: Noncacheable memory\n");
702 case ACPI_CACHABLE_MEMORY:
703 acpi_os_printf (" Type Specific: Cacheable memory\n");
706 case ACPI_WRITE_COMBINING_MEMORY:
707 acpi_os_printf (" Type Specific: Write-combining memory\n");
710 case ACPI_PREFETCHABLE_MEMORY:
711 acpi_os_printf (" Type Specific: Prefetchable memory\n");
715 acpi_os_printf (" Type Specific: Invalid cache attribute\n");
719 acpi_os_printf (" Type Specific: Read%s\n",
720 ACPI_READ_WRITE_MEMORY ==
721 address32_data->attribute.memory.read_write_attribute ?
727 acpi_os_printf (" Resource Type: Io Range\n");
729 switch (address32_data->attribute.io.range_attribute) {
730 case ACPI_NON_ISA_ONLY_RANGES:
731 acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n");
734 case ACPI_ISA_ONLY_RANGES:
735 acpi_os_printf (" Type Specific: ISA Io Addresses\n");
738 case ACPI_ENTIRE_RANGE:
739 acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n");
743 acpi_os_printf (" Type Specific: Invalid Range attribute");
747 acpi_os_printf (" Type Specific: %s Translation\n",
748 ACPI_SPARSE_TRANSLATION ==
749 address32_data->attribute.io.translation_attribute ?
753 case ACPI_BUS_NUMBER_RANGE:
755 acpi_os_printf (" Resource Type: Bus Number Range\n");
760 acpi_os_printf (" Resource Type: 0x%2.2X\n",
761 address32_data->resource_type);
765 acpi_os_printf (" Resource %s\n",
766 ACPI_CONSUMER == address32_data->producer_consumer ?
767 "Consumer" : "Producer");
769 acpi_os_printf (" %s decode\n",
770 ACPI_SUB_DECODE == address32_data->decode ?
771 "Subtractive" : "Positive");
773 acpi_os_printf (" Min address is %s fixed\n",
774 ACPI_ADDRESS_FIXED == address32_data->min_address_fixed ?
777 acpi_os_printf (" Max address is %s fixed\n",
778 ACPI_ADDRESS_FIXED == address32_data->max_address_fixed ?
781 acpi_os_printf (" Granularity: %08X\n",
782 address32_data->granularity);
784 acpi_os_printf (" Address range min: %08X\n",
785 address32_data->min_address_range);
787 acpi_os_printf (" Address range max: %08X\n",
788 address32_data->max_address_range);
790 acpi_os_printf (" Address translation offset: %08X\n",
791 address32_data->address_translation_offset);
793 acpi_os_printf (" Address Length: %08X\n",
794 address32_data->address_length);
796 if(0xFF != address32_data->resource_source.index) {
797 acpi_os_printf (" Resource Source Index: %X\n",
798 address32_data->resource_source.index);
800 acpi_os_printf (" Resource Source: %s\n",
801 address32_data->resource_source.string_ptr);
808 /*******************************************************************************
810 * FUNCTION: acpi_rs_dump_address64
812 * PARAMETERS: Data - pointer to the resource structure to dump.
816 * DESCRIPTION: Prints out the various members of the Data structure type.
818 ******************************************************************************/
821 acpi_rs_dump_address64 (
822 union acpi_resource_data *data)
824 struct acpi_resource_address64 *address64_data = (struct acpi_resource_address64 *) data;
827 ACPI_FUNCTION_ENTRY ();
830 acpi_os_printf ("64-Bit Address Space Resource\n");
832 switch (address64_data->resource_type) {
833 case ACPI_MEMORY_RANGE:
835 acpi_os_printf (" Resource Type: Memory Range\n");
837 switch (address64_data->attribute.memory.cache_attribute) {
838 case ACPI_NON_CACHEABLE_MEMORY:
839 acpi_os_printf (" Type Specific: Noncacheable memory\n");
842 case ACPI_CACHABLE_MEMORY:
843 acpi_os_printf (" Type Specific: Cacheable memory\n");
846 case ACPI_WRITE_COMBINING_MEMORY:
847 acpi_os_printf (" Type Specific: Write-combining memory\n");
850 case ACPI_PREFETCHABLE_MEMORY:
851 acpi_os_printf (" Type Specific: Prefetchable memory\n");
855 acpi_os_printf (" Type Specific: Invalid cache attribute\n");
859 acpi_os_printf (" Type Specific: Read%s\n",
860 ACPI_READ_WRITE_MEMORY ==
861 address64_data->attribute.memory.read_write_attribute ?
867 acpi_os_printf (" Resource Type: Io Range\n");
869 switch (address64_data->attribute.io.range_attribute) {
870 case ACPI_NON_ISA_ONLY_RANGES:
871 acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n");
874 case ACPI_ISA_ONLY_RANGES:
875 acpi_os_printf (" Type Specific: ISA Io Addresses\n");
878 case ACPI_ENTIRE_RANGE:
879 acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n");
883 acpi_os_printf (" Type Specific: Invalid Range attribute");
887 acpi_os_printf (" Type Specific: %s Translation\n",
888 ACPI_SPARSE_TRANSLATION ==
889 address64_data->attribute.io.translation_attribute ?
893 case ACPI_BUS_NUMBER_RANGE:
895 acpi_os_printf (" Resource Type: Bus Number Range\n");
900 acpi_os_printf (" Resource Type: 0x%2.2X\n",
901 address64_data->resource_type);
905 acpi_os_printf (" Resource %s\n",
906 ACPI_CONSUMER == address64_data->producer_consumer ?
907 "Consumer" : "Producer");
909 acpi_os_printf (" %s decode\n",
910 ACPI_SUB_DECODE == address64_data->decode ?
911 "Subtractive" : "Positive");
913 acpi_os_printf (" Min address is %s fixed\n",
914 ACPI_ADDRESS_FIXED == address64_data->min_address_fixed ?
917 acpi_os_printf (" Max address is %s fixed\n",
918 ACPI_ADDRESS_FIXED == address64_data->max_address_fixed ?
921 acpi_os_printf (" Granularity: %8.8X%8.8X\n",
922 ACPI_FORMAT_UINT64 (address64_data->granularity));
924 acpi_os_printf (" Address range min: %8.8X%8.8X\n",
925 ACPI_FORMAT_UINT64 (address64_data->min_address_range));
927 acpi_os_printf (" Address range max: %8.8X%8.8X\n",
928 ACPI_FORMAT_UINT64 (address64_data->max_address_range));
930 acpi_os_printf (" Address translation offset: %8.8X%8.8X\n",
931 ACPI_FORMAT_UINT64 (address64_data->address_translation_offset));
933 acpi_os_printf (" Address Length: %8.8X%8.8X\n",
934 ACPI_FORMAT_UINT64 (address64_data->address_length));
936 acpi_os_printf (" Type Specific Attributes: %8.8X%8.8X\n",
937 ACPI_FORMAT_UINT64 (address64_data->type_specific_attributes));
939 if (0xFF != address64_data->resource_source.index) {
940 acpi_os_printf (" Resource Source Index: %X\n",
941 address64_data->resource_source.index);
943 acpi_os_printf (" Resource Source: %s\n",
944 address64_data->resource_source.string_ptr);
951 /*******************************************************************************
953 * FUNCTION: acpi_rs_dump_extended_irq
955 * PARAMETERS: Data - pointer to the resource structure to dump.
959 * DESCRIPTION: Prints out the various members of the Data structure type.
961 ******************************************************************************/
964 acpi_rs_dump_extended_irq (
965 union acpi_resource_data *data)
967 struct acpi_resource_ext_irq *ext_irq_data = (struct acpi_resource_ext_irq *) data;
971 ACPI_FUNCTION_ENTRY ();
974 acpi_os_printf ("Extended IRQ Resource\n");
976 acpi_os_printf (" Resource %s\n",
977 ACPI_CONSUMER == ext_irq_data->producer_consumer ?
978 "Consumer" : "Producer");
980 acpi_os_printf (" %s\n",
981 ACPI_LEVEL_SENSITIVE == ext_irq_data->edge_level ?
984 acpi_os_printf (" Active %s\n",
985 ACPI_ACTIVE_LOW == ext_irq_data->active_high_low ?
988 acpi_os_printf (" %s\n",
989 ACPI_SHARED == ext_irq_data->shared_exclusive ?
990 "Shared" : "Exclusive");
992 acpi_os_printf (" Interrupts : %X ( ", ext_irq_data->number_of_interrupts);
994 for (index = 0; index < ext_irq_data->number_of_interrupts; index++) {
995 acpi_os_printf ("%X ", ext_irq_data->interrupts[index]);
998 acpi_os_printf (")\n");
1000 if(0xFF != ext_irq_data->resource_source.index) {
1001 acpi_os_printf (" Resource Source Index: %X",
1002 ext_irq_data->resource_source.index);
1004 acpi_os_printf (" Resource Source: %s",
1005 ext_irq_data->resource_source.string_ptr);
1012 /*******************************************************************************
1014 * FUNCTION: acpi_rs_dump_resource_list
1016 * PARAMETERS: Resource - pointer to the resource structure to dump.
1020 * DESCRIPTION: Dispatches the structure to the correct dump routine.
1022 ******************************************************************************/
1025 acpi_rs_dump_resource_list (
1026 struct acpi_resource *resource)
1032 ACPI_FUNCTION_ENTRY ();
1035 if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) {
1037 acpi_os_printf ("Resource structure %X.\n", count++);
1039 switch (resource->id) {
1040 case ACPI_RSTYPE_IRQ:
1041 acpi_rs_dump_irq (&resource->data);
1044 case ACPI_RSTYPE_DMA:
1045 acpi_rs_dump_dma (&resource->data);
1048 case ACPI_RSTYPE_START_DPF:
1049 acpi_rs_dump_start_depend_fns (&resource->data);
1052 case ACPI_RSTYPE_END_DPF:
1053 acpi_os_printf ("end_dependent_functions Resource\n");
1054 /* acpi_rs_dump_end_dependent_functions (Resource->Data);*/
1057 case ACPI_RSTYPE_IO:
1058 acpi_rs_dump_io (&resource->data);
1061 case ACPI_RSTYPE_FIXED_IO:
1062 acpi_rs_dump_fixed_io (&resource->data);
1065 case ACPI_RSTYPE_VENDOR:
1066 acpi_rs_dump_vendor_specific (&resource->data);
1069 case ACPI_RSTYPE_END_TAG:
1070 /*rs_dump_end_tag (Resource->Data);*/
1071 acpi_os_printf ("end_tag Resource\n");
1075 case ACPI_RSTYPE_MEM24:
1076 acpi_rs_dump_memory24 (&resource->data);
1079 case ACPI_RSTYPE_MEM32:
1080 acpi_rs_dump_memory32 (&resource->data);
1083 case ACPI_RSTYPE_FIXED_MEM32:
1084 acpi_rs_dump_fixed_memory32 (&resource->data);
1087 case ACPI_RSTYPE_ADDRESS16:
1088 acpi_rs_dump_address16 (&resource->data);
1091 case ACPI_RSTYPE_ADDRESS32:
1092 acpi_rs_dump_address32 (&resource->data);
1095 case ACPI_RSTYPE_ADDRESS64:
1096 acpi_rs_dump_address64 (&resource->data);
1099 case ACPI_RSTYPE_EXT_IRQ:
1100 acpi_rs_dump_extended_irq (&resource->data);
1104 acpi_os_printf ("Invalid resource type\n");
1109 resource = ACPI_PTR_ADD (struct acpi_resource, resource, resource->length);
1116 /*******************************************************************************
1118 * FUNCTION: acpi_rs_dump_irq_list
1120 * PARAMETERS: route_table - pointer to the routing table to dump.
1124 * DESCRIPTION: Dispatches the structures to the correct dump routine.
1126 ******************************************************************************/
1129 acpi_rs_dump_irq_list (
1132 u8 *buffer = route_table;
1135 struct acpi_pci_routing_table *prt_element;
1138 ACPI_FUNCTION_ENTRY ();
1141 if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) {
1142 prt_element = ACPI_CAST_PTR (struct acpi_pci_routing_table, buffer);
1145 acpi_os_printf ("PCI IRQ Routing Table structure %X.\n", count++);
1147 acpi_os_printf (" Address: %8.8X%8.8X\n",
1148 ACPI_FORMAT_UINT64 (prt_element->address));
1150 acpi_os_printf (" Pin: %X\n", prt_element->pin);
1152 acpi_os_printf (" Source: %s\n", prt_element->source);
1154 acpi_os_printf (" source_index: %X\n", prt_element->source_index);
1156 buffer += prt_element->length;
1157 prt_element = ACPI_CAST_PTR (struct acpi_pci_routing_table, buffer);
1158 if (0 == prt_element->length) {