Deleted Added
full compact
rsdump.c (77424) rsdump.c (78986)
1/*******************************************************************************
2 *
3 * Module Name: rsdump - Functions to display the resource structures.
1/*******************************************************************************
2 *
3 * Module Name: rsdump - Functions to display the resource structures.
4 * $Revision: 19 $
4 * $Revision: 20 $
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

--- 126 unchanged lines hidden (view full) ---

139void
140AcpiRsDumpIrq (
141 ACPI_RESOURCE_DATA *Data)
142{
143 ACPI_RESOURCE_IRQ *IrqData = (ACPI_RESOURCE_IRQ *) Data;
144 UINT8 Index = 0;
145
146
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

--- 126 unchanged lines hidden (view full) ---

139void
140AcpiRsDumpIrq (
141 ACPI_RESOURCE_DATA *Data)
142{
143 ACPI_RESOURCE_IRQ *IrqData = (ACPI_RESOURCE_IRQ *) Data;
144 UINT8 Index = 0;
145
146
147 AcpiOsPrintf ("\tIRQ Resource\n");
147 AcpiOsPrintf ("IRQ Resource\n");
148
148
149 AcpiOsPrintf ("\t\t%s Triggered\n",
149 AcpiOsPrintf (" %s Triggered\n",
150 LEVEL_SENSITIVE == IrqData->EdgeLevel ? "Level" : "Edge");
151
150 LEVEL_SENSITIVE == IrqData->EdgeLevel ? "Level" : "Edge");
151
152 AcpiOsPrintf ("\t\tActive %s\n",
152 AcpiOsPrintf (" Active %s\n",
153 ACTIVE_LOW == IrqData->ActiveHighLow ? "Low" : "High");
154
153 ACTIVE_LOW == IrqData->ActiveHighLow ? "Low" : "High");
154
155 AcpiOsPrintf ("\t\t%s\n",
155 AcpiOsPrintf (" %s\n",
156 SHARED == IrqData->SharedExclusive ? "Shared" : "Exclusive");
157
156 SHARED == IrqData->SharedExclusive ? "Shared" : "Exclusive");
157
158 AcpiOsPrintf ("\t\t%X Interrupts ( ", IrqData->NumberOfInterrupts);
158 AcpiOsPrintf (" %X Interrupts ( ", IrqData->NumberOfInterrupts);
159
160 for (Index = 0; Index < IrqData->NumberOfInterrupts; Index++)
161 {
162 AcpiOsPrintf ("%X ", IrqData->Interrupts[Index]);
163 }
164
165 AcpiOsPrintf (")\n");
166 return;

--- 15 unchanged lines hidden (view full) ---

182void
183AcpiRsDumpDma (
184 ACPI_RESOURCE_DATA *Data)
185{
186 ACPI_RESOURCE_DMA *DmaData = (ACPI_RESOURCE_DMA *) Data;
187 UINT8 Index = 0;
188
189
159
160 for (Index = 0; Index < IrqData->NumberOfInterrupts; Index++)
161 {
162 AcpiOsPrintf ("%X ", IrqData->Interrupts[Index]);
163 }
164
165 AcpiOsPrintf (")\n");
166 return;

--- 15 unchanged lines hidden (view full) ---

182void
183AcpiRsDumpDma (
184 ACPI_RESOURCE_DATA *Data)
185{
186 ACPI_RESOURCE_DMA *DmaData = (ACPI_RESOURCE_DMA *) Data;
187 UINT8 Index = 0;
188
189
190 AcpiOsPrintf ("\tDMA Resource\n");
190 AcpiOsPrintf ("DMA Resource\n");
191
192 switch (DmaData->Type)
193 {
194 case COMPATIBILITY:
191
192 switch (DmaData->Type)
193 {
194 case COMPATIBILITY:
195 AcpiOsPrintf ("\t\tCompatibility mode\n");
195 AcpiOsPrintf (" Compatibility mode\n");
196 break;
197
198 case TYPE_A:
196 break;
197
198 case TYPE_A:
199 AcpiOsPrintf ("\t\tType A\n");
199 AcpiOsPrintf (" Type A\n");
200 break;
201
202 case TYPE_B:
200 break;
201
202 case TYPE_B:
203 AcpiOsPrintf ("\t\tType B\n");
203 AcpiOsPrintf (" Type B\n");
204 break;
205
206 case TYPE_F:
204 break;
205
206 case TYPE_F:
207 AcpiOsPrintf ("\t\tType F\n");
207 AcpiOsPrintf (" Type F\n");
208 break;
209
210 default:
208 break;
209
210 default:
211 AcpiOsPrintf ("\t\tInvalid DMA type\n");
211 AcpiOsPrintf (" Invalid DMA type\n");
212 break;
213 }
214
212 break;
213 }
214
215 AcpiOsPrintf ("\t\t%sBus Master\n",
215 AcpiOsPrintf (" %sBus Master\n",
216 BUS_MASTER == DmaData->BusMaster ? "" : "Not a ");
217
218
219 switch (DmaData->Transfer)
220 {
221 case TRANSFER_8:
216 BUS_MASTER == DmaData->BusMaster ? "" : "Not a ");
217
218
219 switch (DmaData->Transfer)
220 {
221 case TRANSFER_8:
222 AcpiOsPrintf ("\t\t8-bit only transfer\n");
222 AcpiOsPrintf (" 8-bit only transfer\n");
223 break;
224
225 case TRANSFER_8_16:
223 break;
224
225 case TRANSFER_8_16:
226 AcpiOsPrintf ("\t\t8 and 16-bit transfer\n");
226 AcpiOsPrintf (" 8 and 16-bit transfer\n");
227 break;
228
229 case TRANSFER_16:
227 break;
228
229 case TRANSFER_16:
230 AcpiOsPrintf ("\t\t16 bit only transfer\n");
230 AcpiOsPrintf (" 16 bit only transfer\n");
231 break;
232
233 default:
231 break;
232
233 default:
234 AcpiOsPrintf ("\t\tInvalid transfer preference\n");
234 AcpiOsPrintf (" Invalid transfer preference\n");
235 break;
236 }
237
235 break;
236 }
237
238 AcpiOsPrintf ("\t\tNumber of Channels: %X ( ", DmaData->NumberOfChannels);
238 AcpiOsPrintf (" Number of Channels: %X ( ", DmaData->NumberOfChannels);
239
240 for (Index = 0; Index < DmaData->NumberOfChannels; Index++)
241 {
242 AcpiOsPrintf ("%X ", DmaData->Channels[Index]);
243 }
244
245 AcpiOsPrintf (")\n");
246 return;

--- 14 unchanged lines hidden (view full) ---

261
262void
263AcpiRsDumpStartDependentFunctions (
264 ACPI_RESOURCE_DATA *Data)
265{
266 ACPI_RESOURCE_START_DPF *SdfData = (ACPI_RESOURCE_START_DPF *) Data;
267
268
239
240 for (Index = 0; Index < DmaData->NumberOfChannels; Index++)
241 {
242 AcpiOsPrintf ("%X ", DmaData->Channels[Index]);
243 }
244
245 AcpiOsPrintf (")\n");
246 return;

--- 14 unchanged lines hidden (view full) ---

261
262void
263AcpiRsDumpStartDependentFunctions (
264 ACPI_RESOURCE_DATA *Data)
265{
266 ACPI_RESOURCE_START_DPF *SdfData = (ACPI_RESOURCE_START_DPF *) Data;
267
268
269 AcpiOsPrintf ("\tStart Dependent Functions Resource\n");
269 AcpiOsPrintf ("Start Dependent Functions Resource\n");
270
271
272 switch (SdfData->CompatibilityPriority)
273 {
274 case GOOD_CONFIGURATION:
270
271
272 switch (SdfData->CompatibilityPriority)
273 {
274 case GOOD_CONFIGURATION:
275 AcpiOsPrintf ("\t\tGood configuration\n");
275 AcpiOsPrintf (" Good configuration\n");
276 break;
277
278 case ACCEPTABLE_CONFIGURATION:
276 break;
277
278 case ACCEPTABLE_CONFIGURATION:
279 AcpiOsPrintf ("\t\tAcceptable configuration\n");
279 AcpiOsPrintf (" Acceptable configuration\n");
280 break;
281
282 case SUB_OPTIMAL_CONFIGURATION:
280 break;
281
282 case SUB_OPTIMAL_CONFIGURATION:
283 AcpiOsPrintf ("\t\tSub-optimal configuration\n");
283 AcpiOsPrintf (" Sub-optimal configuration\n");
284 break;
285
286 default:
284 break;
285
286 default:
287 AcpiOsPrintf ("\t\tInvalid compatibility priority\n");
287 AcpiOsPrintf (" Invalid compatibility priority\n");
288 break;
289 }
290
291 switch(SdfData->PerformanceRobustness)
292 {
293 case GOOD_CONFIGURATION:
288 break;
289 }
290
291 switch(SdfData->PerformanceRobustness)
292 {
293 case GOOD_CONFIGURATION:
294 AcpiOsPrintf ("\t\tGood configuration\n");
294 AcpiOsPrintf (" Good configuration\n");
295 break;
296
297 case ACCEPTABLE_CONFIGURATION:
295 break;
296
297 case ACCEPTABLE_CONFIGURATION:
298 AcpiOsPrintf ("\t\tAcceptable configuration\n");
298 AcpiOsPrintf (" Acceptable configuration\n");
299 break;
300
301 case SUB_OPTIMAL_CONFIGURATION:
299 break;
300
301 case SUB_OPTIMAL_CONFIGURATION:
302 AcpiOsPrintf ("\t\tSub-optimal configuration\n");
302 AcpiOsPrintf (" Sub-optimal configuration\n");
303 break;
304
305 default:
303 break;
304
305 default:
306 AcpiOsPrintf ("\t\tInvalid performance "
306 AcpiOsPrintf (" Invalid performance "
307 "robustness preference\n");
308 break;
309 }
310
311 return;
312}
313
314

--- 11 unchanged lines hidden (view full) ---

326
327void
328AcpiRsDumpIo (
329 ACPI_RESOURCE_DATA *Data)
330{
331 ACPI_RESOURCE_IO *IoData = (ACPI_RESOURCE_IO *) Data;
332
333
307 "robustness preference\n");
308 break;
309 }
310
311 return;
312}
313
314

--- 11 unchanged lines hidden (view full) ---

326
327void
328AcpiRsDumpIo (
329 ACPI_RESOURCE_DATA *Data)
330{
331 ACPI_RESOURCE_IO *IoData = (ACPI_RESOURCE_IO *) Data;
332
333
334 AcpiOsPrintf ("\tIo Resource\n");
334 AcpiOsPrintf ("Io Resource\n");
335
335
336 AcpiOsPrintf ("\t\t%d bit decode\n",
336 AcpiOsPrintf (" %d bit decode\n",
337 DECODE_16 == IoData->IoDecode ? 16 : 10);
338
337 DECODE_16 == IoData->IoDecode ? 16 : 10);
338
339 AcpiOsPrintf ("\t\tRange minimum base: %08X\n",
339 AcpiOsPrintf (" Range minimum base: %08X\n",
340 IoData->MinBaseAddress);
341
340 IoData->MinBaseAddress);
341
342 AcpiOsPrintf ("\t\tRange maximum base: %08X\n",
342 AcpiOsPrintf (" Range maximum base: %08X\n",
343 IoData->MaxBaseAddress);
344
343 IoData->MaxBaseAddress);
344
345 AcpiOsPrintf ("\t\tAlignment: %08X\n",
345 AcpiOsPrintf (" Alignment: %08X\n",
346 IoData->Alignment);
347
346 IoData->Alignment);
347
348 AcpiOsPrintf ("\t\tRange Length: %08X\n",
348 AcpiOsPrintf (" Range Length: %08X\n",
349 IoData->RangeLength);
350
351 return;
352}
353
354
355/*******************************************************************************
356 *

--- 9 unchanged lines hidden (view full) ---

366
367void
368AcpiRsDumpFixedIo (
369 ACPI_RESOURCE_DATA *Data)
370{
371 ACPI_RESOURCE_FIXED_IO *FixedIoData = (ACPI_RESOURCE_FIXED_IO *) Data;
372
373
349 IoData->RangeLength);
350
351 return;
352}
353
354
355/*******************************************************************************
356 *

--- 9 unchanged lines hidden (view full) ---

366
367void
368AcpiRsDumpFixedIo (
369 ACPI_RESOURCE_DATA *Data)
370{
371 ACPI_RESOURCE_FIXED_IO *FixedIoData = (ACPI_RESOURCE_FIXED_IO *) Data;
372
373
374 AcpiOsPrintf ("\tFixed Io Resource\n");
375 AcpiOsPrintf ("\t\tRange base address: %08X",
374 AcpiOsPrintf ("Fixed Io Resource\n");
375 AcpiOsPrintf (" Range base address: %08X",
376 FixedIoData->BaseAddress);
377
376 FixedIoData->BaseAddress);
377
378 AcpiOsPrintf ("\t\tRange length: %08X",
378 AcpiOsPrintf (" Range length: %08X",
379 FixedIoData->RangeLength);
380
381 return;
382}
383
384
385/*******************************************************************************
386 *

--- 10 unchanged lines hidden (view full) ---

397void
398AcpiRsDumpVendorSpecific (
399 ACPI_RESOURCE_DATA *Data)
400{
401 ACPI_RESOURCE_VENDOR *VendorData = (ACPI_RESOURCE_VENDOR *) Data;
402 UINT16 Index = 0;
403
404
379 FixedIoData->RangeLength);
380
381 return;
382}
383
384
385/*******************************************************************************
386 *

--- 10 unchanged lines hidden (view full) ---

397void
398AcpiRsDumpVendorSpecific (
399 ACPI_RESOURCE_DATA *Data)
400{
401 ACPI_RESOURCE_VENDOR *VendorData = (ACPI_RESOURCE_VENDOR *) Data;
402 UINT16 Index = 0;
403
404
405 AcpiOsPrintf ("\tVendor Specific Resource\n");
405 AcpiOsPrintf ("Vendor Specific Resource\n");
406
406
407 AcpiOsPrintf ("\t\tLength: %08X\n", VendorData->Length);
407 AcpiOsPrintf (" Length: %08X\n", VendorData->Length);
408
409 for (Index = 0; Index < VendorData->Length; Index++)
410 {
408
409 for (Index = 0; Index < VendorData->Length; Index++)
410 {
411 AcpiOsPrintf ("\t\tByte %X: %08X\n",
411 AcpiOsPrintf (" Byte %X: %08X\n",
412 Index, VendorData->Reserved[Index]);
413 }
414
415 return;
416}
417
418
419/*******************************************************************************

--- 10 unchanged lines hidden (view full) ---

430
431void
432AcpiRsDumpMemory24 (
433 ACPI_RESOURCE_DATA *Data)
434{
435 ACPI_RESOURCE_MEM24 *Memory24Data = (ACPI_RESOURCE_MEM24 *) Data;
436
437
412 Index, VendorData->Reserved[Index]);
413 }
414
415 return;
416}
417
418
419/*******************************************************************************

--- 10 unchanged lines hidden (view full) ---

430
431void
432AcpiRsDumpMemory24 (
433 ACPI_RESOURCE_DATA *Data)
434{
435 ACPI_RESOURCE_MEM24 *Memory24Data = (ACPI_RESOURCE_MEM24 *) Data;
436
437
438 AcpiOsPrintf ("\t24-Bit Memory Range Resource\n");
438 AcpiOsPrintf ("24-Bit Memory Range Resource\n");
439
439
440 AcpiOsPrintf ("\t\tRead%s\n",
440 AcpiOsPrintf (" Read%s\n",
441 READ_WRITE_MEMORY ==
442 Memory24Data->ReadWriteAttribute ?
443 "/Write" : " only");
444
441 READ_WRITE_MEMORY ==
442 Memory24Data->ReadWriteAttribute ?
443 "/Write" : " only");
444
445 AcpiOsPrintf ("\t\tRange minimum base: %08X\n",
445 AcpiOsPrintf (" Range minimum base: %08X\n",
446 Memory24Data->MinBaseAddress);
447
446 Memory24Data->MinBaseAddress);
447
448 AcpiOsPrintf ("\t\tRange maximum base: %08X\n",
448 AcpiOsPrintf (" Range maximum base: %08X\n",
449 Memory24Data->MaxBaseAddress);
450
449 Memory24Data->MaxBaseAddress);
450
451 AcpiOsPrintf ("\t\tAlignment: %08X\n",
451 AcpiOsPrintf (" Alignment: %08X\n",
452 Memory24Data->Alignment);
453
452 Memory24Data->Alignment);
453
454 AcpiOsPrintf ("\t\tRange length: %08X\n",
454 AcpiOsPrintf (" Range length: %08X\n",
455 Memory24Data->RangeLength);
456
457 return;
458}
459
460
461/*******************************************************************************
462 *

--- 9 unchanged lines hidden (view full) ---

472
473void
474AcpiRsDumpMemory32 (
475 ACPI_RESOURCE_DATA *Data)
476{
477 ACPI_RESOURCE_MEM32 *Memory32Data = (ACPI_RESOURCE_MEM32 *) Data;
478
479
455 Memory24Data->RangeLength);
456
457 return;
458}
459
460
461/*******************************************************************************
462 *

--- 9 unchanged lines hidden (view full) ---

472
473void
474AcpiRsDumpMemory32 (
475 ACPI_RESOURCE_DATA *Data)
476{
477 ACPI_RESOURCE_MEM32 *Memory32Data = (ACPI_RESOURCE_MEM32 *) Data;
478
479
480 AcpiOsPrintf ("\t32-Bit Memory Range Resource\n");
480 AcpiOsPrintf ("32-Bit Memory Range Resource\n");
481
481
482 AcpiOsPrintf ("\t\tRead%s\n",
482 AcpiOsPrintf (" Read%s\n",
483 READ_WRITE_MEMORY ==
484 Memory32Data->ReadWriteAttribute ?
485 "/Write" : " only");
486
483 READ_WRITE_MEMORY ==
484 Memory32Data->ReadWriteAttribute ?
485 "/Write" : " only");
486
487 AcpiOsPrintf ("\t\tRange minimum base: %08X\n",
487 AcpiOsPrintf (" Range minimum base: %08X\n",
488 Memory32Data->MinBaseAddress);
489
488 Memory32Data->MinBaseAddress);
489
490 AcpiOsPrintf ("\t\tRange maximum base: %08X\n",
490 AcpiOsPrintf (" Range maximum base: %08X\n",
491 Memory32Data->MaxBaseAddress);
492
491 Memory32Data->MaxBaseAddress);
492
493 AcpiOsPrintf ("\t\tAlignment: %08X\n",
493 AcpiOsPrintf (" Alignment: %08X\n",
494 Memory32Data->Alignment);
495
494 Memory32Data->Alignment);
495
496 AcpiOsPrintf ("\t\tRange length: %08X\n",
496 AcpiOsPrintf (" Range length: %08X\n",
497 Memory32Data->RangeLength);
498
499 return;
500}
501
502
503/*******************************************************************************
504 *

--- 9 unchanged lines hidden (view full) ---

514
515void
516AcpiRsDumpFixedMemory32 (
517 ACPI_RESOURCE_DATA *Data)
518{
519 ACPI_RESOURCE_FIXED_MEM32 *FixedMemory32Data = (ACPI_RESOURCE_FIXED_MEM32 *) Data;
520
521
497 Memory32Data->RangeLength);
498
499 return;
500}
501
502
503/*******************************************************************************
504 *

--- 9 unchanged lines hidden (view full) ---

514
515void
516AcpiRsDumpFixedMemory32 (
517 ACPI_RESOURCE_DATA *Data)
518{
519 ACPI_RESOURCE_FIXED_MEM32 *FixedMemory32Data = (ACPI_RESOURCE_FIXED_MEM32 *) Data;
520
521
522 AcpiOsPrintf ("\t32-Bit Fixed Location Memory Range Resource\n");
522 AcpiOsPrintf ("32-Bit Fixed Location Memory Range Resource\n");
523
523
524 AcpiOsPrintf ("\t\tRead%s\n",
524 AcpiOsPrintf (" Read%s\n",
525 READ_WRITE_MEMORY ==
526 FixedMemory32Data->ReadWriteAttribute ?
527 "/Write" : " Only");
528
525 READ_WRITE_MEMORY ==
526 FixedMemory32Data->ReadWriteAttribute ?
527 "/Write" : " Only");
528
529 AcpiOsPrintf ("\t\tRange base address: %08X\n",
529 AcpiOsPrintf (" Range base address: %08X\n",
530 FixedMemory32Data->RangeBaseAddress);
531
530 FixedMemory32Data->RangeBaseAddress);
531
532 AcpiOsPrintf ("\t\tRange length: %08X\n",
532 AcpiOsPrintf (" Range length: %08X\n",
533 FixedMemory32Data->RangeLength);
534
535 return;
536}
537
538
539/*******************************************************************************
540 *

--- 9 unchanged lines hidden (view full) ---

550
551void
552AcpiRsDumpAddress16 (
553 ACPI_RESOURCE_DATA *Data)
554{
555 ACPI_RESOURCE_ADDRESS16 *Address16Data = (ACPI_RESOURCE_ADDRESS16 *) Data;
556
557
533 FixedMemory32Data->RangeLength);
534
535 return;
536}
537
538
539/*******************************************************************************
540 *

--- 9 unchanged lines hidden (view full) ---

550
551void
552AcpiRsDumpAddress16 (
553 ACPI_RESOURCE_DATA *Data)
554{
555 ACPI_RESOURCE_ADDRESS16 *Address16Data = (ACPI_RESOURCE_ADDRESS16 *) Data;
556
557
558 AcpiOsPrintf ("\t16-Bit Address Space Resource\n");
559 AcpiOsPrintf ("\t\tResource Type: ");
558 AcpiOsPrintf ("16-Bit Address Space Resource\n");
559 AcpiOsPrintf (" Resource Type: ");
560
561 switch (Address16Data->ResourceType)
562 {
563 case MEMORY_RANGE:
564
565 AcpiOsPrintf ("Memory Range\n");
566
567 switch (Address16Data->Attribute.Memory.CacheAttribute)
568 {
569 case NON_CACHEABLE_MEMORY:
560
561 switch (Address16Data->ResourceType)
562 {
563 case MEMORY_RANGE:
564
565 AcpiOsPrintf ("Memory Range\n");
566
567 switch (Address16Data->Attribute.Memory.CacheAttribute)
568 {
569 case NON_CACHEABLE_MEMORY:
570 AcpiOsPrintf ("\t\tType Specific: "
570 AcpiOsPrintf (" Type Specific: "
571 "Noncacheable memory\n");
572 break;
573
574 case CACHABLE_MEMORY:
571 "Noncacheable memory\n");
572 break;
573
574 case CACHABLE_MEMORY:
575 AcpiOsPrintf ("\t\tType Specific: "
575 AcpiOsPrintf (" Type Specific: "
576 "Cacheable memory\n");
577 break;
578
579 case WRITE_COMBINING_MEMORY:
576 "Cacheable memory\n");
577 break;
578
579 case WRITE_COMBINING_MEMORY:
580 AcpiOsPrintf ("\t\tType Specific: "
580 AcpiOsPrintf (" Type Specific: "
581 "Write-combining memory\n");
582 break;
583
584 case PREFETCHABLE_MEMORY:
581 "Write-combining memory\n");
582 break;
583
584 case PREFETCHABLE_MEMORY:
585 AcpiOsPrintf ("\t\tType Specific: "
585 AcpiOsPrintf (" Type Specific: "
586 "Prefetchable memory\n");
587 break;
588
589 default:
586 "Prefetchable memory\n");
587 break;
588
589 default:
590 AcpiOsPrintf ("\t\tType Specific: "
590 AcpiOsPrintf (" Type Specific: "
591 "Invalid cache attribute\n");
592 break;
593 }
594
591 "Invalid cache attribute\n");
592 break;
593 }
594
595 AcpiOsPrintf ("\t\tType Specific: Read%s\n",
595 AcpiOsPrintf (" Type Specific: Read%s\n",
596 READ_WRITE_MEMORY ==
597 Address16Data->Attribute.Memory.ReadWriteAttribute ?
598 "/Write" : " Only");
599 break;
600
601 case IO_RANGE:
602
603 AcpiOsPrintf ("I/O Range\n");
604
605 switch (Address16Data->Attribute.Io.RangeAttribute)
606 {
607 case NON_ISA_ONLY_RANGES:
596 READ_WRITE_MEMORY ==
597 Address16Data->Attribute.Memory.ReadWriteAttribute ?
598 "/Write" : " Only");
599 break;
600
601 case IO_RANGE:
602
603 AcpiOsPrintf ("I/O Range\n");
604
605 switch (Address16Data->Attribute.Io.RangeAttribute)
606 {
607 case NON_ISA_ONLY_RANGES:
608 AcpiOsPrintf ("\t\tType Specific: "
608 AcpiOsPrintf (" Type Specific: "
609 "Non-ISA Io Addresses\n");
610 break;
611
612 case ISA_ONLY_RANGES:
609 "Non-ISA Io Addresses\n");
610 break;
611
612 case ISA_ONLY_RANGES:
613 AcpiOsPrintf ("\t\tType Specific: "
613 AcpiOsPrintf (" Type Specific: "
614 "ISA Io Addresses\n");
615 break;
616
617 case ENTIRE_RANGE:
614 "ISA Io Addresses\n");
615 break;
616
617 case ENTIRE_RANGE:
618 AcpiOsPrintf ("\t\tType Specific: "
618 AcpiOsPrintf (" Type Specific: "
619 "ISA and non-ISA Io Addresses\n");
620 break;
621
622 default:
619 "ISA and non-ISA Io Addresses\n");
620 break;
621
622 default:
623 AcpiOsPrintf ("\t\tType Specific: "
623 AcpiOsPrintf (" Type Specific: "
624 "Invalid range attribute\n");
625 break;
626 }
627 break;
628
629 case BUS_NUMBER_RANGE:
630
631 AcpiOsPrintf ("Bus Number Range\n");
632 break;
633
634 default:
635
636 AcpiOsPrintf ("Invalid resource type. Exiting.\n");
637 return;
638 }
639
624 "Invalid range attribute\n");
625 break;
626 }
627 break;
628
629 case BUS_NUMBER_RANGE:
630
631 AcpiOsPrintf ("Bus Number Range\n");
632 break;
633
634 default:
635
636 AcpiOsPrintf ("Invalid resource type. Exiting.\n");
637 return;
638 }
639
640 AcpiOsPrintf ("\t\tResource %s\n",
640 AcpiOsPrintf (" Resource %s\n",
641 CONSUMER == Address16Data->ProducerConsumer ?
642 "Consumer" : "Producer");
643
641 CONSUMER == Address16Data->ProducerConsumer ?
642 "Consumer" : "Producer");
643
644 AcpiOsPrintf ("\t\t%s decode\n",
644 AcpiOsPrintf (" %s decode\n",
645 SUB_DECODE == Address16Data->Decode ?
646 "Subtractive" : "Positive");
647
645 SUB_DECODE == Address16Data->Decode ?
646 "Subtractive" : "Positive");
647
648 AcpiOsPrintf ("\t\tMin address is %s fixed\n",
648 AcpiOsPrintf (" Min address is %s fixed\n",
649 ADDRESS_FIXED == Address16Data->MinAddressFixed ?
650 "" : "not");
651
649 ADDRESS_FIXED == Address16Data->MinAddressFixed ?
650 "" : "not");
651
652 AcpiOsPrintf ("\t\tMax address is %s fixed\n",
652 AcpiOsPrintf (" Max address is %s fixed\n",
653 ADDRESS_FIXED == Address16Data->MaxAddressFixed ?
654 "" : "not");
655
653 ADDRESS_FIXED == Address16Data->MaxAddressFixed ?
654 "" : "not");
655
656 AcpiOsPrintf ("\t\tGranularity: %08X\n",
656 AcpiOsPrintf (" Granularity: %08X\n",
657 Address16Data->Granularity);
658
657 Address16Data->Granularity);
658
659 AcpiOsPrintf ("\t\tAddress range min: %08X\n",
659 AcpiOsPrintf (" Address range min: %08X\n",
660 Address16Data->MinAddressRange);
661
660 Address16Data->MinAddressRange);
661
662 AcpiOsPrintf ("\t\tAddress range max: %08X\n",
662 AcpiOsPrintf (" Address range max: %08X\n",
663 Address16Data->MaxAddressRange);
664
663 Address16Data->MaxAddressRange);
664
665 AcpiOsPrintf ("\t\tAddress translation offset: %08X\n",
665 AcpiOsPrintf (" Address translation offset: %08X\n",
666 Address16Data->AddressTranslationOffset);
667
666 Address16Data->AddressTranslationOffset);
667
668 AcpiOsPrintf ("\t\tAddress Length: %08X\n",
668 AcpiOsPrintf (" Address Length: %08X\n",
669 Address16Data->AddressLength);
670
671 if (0xFF != Address16Data->ResourceSource.Index)
672 {
669 Address16Data->AddressLength);
670
671 if (0xFF != Address16Data->ResourceSource.Index)
672 {
673 AcpiOsPrintf ("\t\tResource Source Index: %X\n",
673 AcpiOsPrintf (" Resource Source Index: %X\n",
674 Address16Data->ResourceSource.Index);
674 Address16Data->ResourceSource.Index);
675 AcpiOsPrintf ("\t\tResource Source: %s\n",
675 AcpiOsPrintf (" Resource Source: %s\n",
676 Address16Data->ResourceSource.StringPtr);
677 }
678
679 return;
680}
681
682
683/*******************************************************************************

--- 10 unchanged lines hidden (view full) ---

694
695void
696AcpiRsDumpAddress32 (
697 ACPI_RESOURCE_DATA *Data)
698{
699 ACPI_RESOURCE_ADDRESS32 *Address32Data = (ACPI_RESOURCE_ADDRESS32 *) Data;
700
701
676 Address16Data->ResourceSource.StringPtr);
677 }
678
679 return;
680}
681
682
683/*******************************************************************************

--- 10 unchanged lines hidden (view full) ---

694
695void
696AcpiRsDumpAddress32 (
697 ACPI_RESOURCE_DATA *Data)
698{
699 ACPI_RESOURCE_ADDRESS32 *Address32Data = (ACPI_RESOURCE_ADDRESS32 *) Data;
700
701
702 AcpiOsPrintf ("\t32-Bit Address Space Resource\n");
702 AcpiOsPrintf ("32-Bit Address Space Resource\n");
703
704 switch (Address32Data->ResourceType)
705 {
706 case MEMORY_RANGE:
707
703
704 switch (Address32Data->ResourceType)
705 {
706 case MEMORY_RANGE:
707
708 AcpiOsPrintf ("\t\tResource Type: Memory Range\n");
708 AcpiOsPrintf (" Resource Type: Memory Range\n");
709
710 switch (Address32Data->Attribute.Memory.CacheAttribute)
711 {
712 case NON_CACHEABLE_MEMORY:
709
710 switch (Address32Data->Attribute.Memory.CacheAttribute)
711 {
712 case NON_CACHEABLE_MEMORY:
713 AcpiOsPrintf ("\t\tType Specific: "
713 AcpiOsPrintf (" Type Specific: "
714 "Noncacheable memory\n");
715 break;
716
717 case CACHABLE_MEMORY:
714 "Noncacheable memory\n");
715 break;
716
717 case CACHABLE_MEMORY:
718 AcpiOsPrintf ("\t\tType Specific: "
718 AcpiOsPrintf (" Type Specific: "
719 "Cacheable memory\n");
720 break;
721
722 case WRITE_COMBINING_MEMORY:
719 "Cacheable memory\n");
720 break;
721
722 case WRITE_COMBINING_MEMORY:
723 AcpiOsPrintf ("\t\tType Specific: "
723 AcpiOsPrintf (" Type Specific: "
724 "Write-combining memory\n");
725 break;
726
727 case PREFETCHABLE_MEMORY:
724 "Write-combining memory\n");
725 break;
726
727 case PREFETCHABLE_MEMORY:
728 AcpiOsPrintf ("\t\tType Specific: "
728 AcpiOsPrintf (" Type Specific: "
729 "Prefetchable memory\n");
730 break;
731
732 default:
729 "Prefetchable memory\n");
730 break;
731
732 default:
733 AcpiOsPrintf ("\t\tType Specific: "
733 AcpiOsPrintf (" Type Specific: "
734 "Invalid cache attribute\n");
735 break;
736 }
737
734 "Invalid cache attribute\n");
735 break;
736 }
737
738 AcpiOsPrintf ("\t\tType Specific: Read%s\n",
738 AcpiOsPrintf (" Type Specific: Read%s\n",
739 READ_WRITE_MEMORY ==
740 Address32Data->Attribute.Memory.ReadWriteAttribute ?
741 "/Write" : " Only");
742 break;
743
744 case IO_RANGE:
745
739 READ_WRITE_MEMORY ==
740 Address32Data->Attribute.Memory.ReadWriteAttribute ?
741 "/Write" : " Only");
742 break;
743
744 case IO_RANGE:
745
746 AcpiOsPrintf ("\t\tResource Type: Io Range\n");
746 AcpiOsPrintf (" Resource Type: Io Range\n");
747
748 switch (Address32Data->Attribute.Io.RangeAttribute)
749 {
750 case NON_ISA_ONLY_RANGES:
747
748 switch (Address32Data->Attribute.Io.RangeAttribute)
749 {
750 case NON_ISA_ONLY_RANGES:
751 AcpiOsPrintf ("\t\tType Specific: "
751 AcpiOsPrintf (" Type Specific: "
752 "Non-ISA Io Addresses\n");
753 break;
754
755 case ISA_ONLY_RANGES:
752 "Non-ISA Io Addresses\n");
753 break;
754
755 case ISA_ONLY_RANGES:
756 AcpiOsPrintf ("\t\tType Specific: "
756 AcpiOsPrintf (" Type Specific: "
757 "ISA Io Addresses\n");
758 break;
759
760 case ENTIRE_RANGE:
757 "ISA Io Addresses\n");
758 break;
759
760 case ENTIRE_RANGE:
761 AcpiOsPrintf ("\t\tType Specific: "
761 AcpiOsPrintf (" Type Specific: "
762 "ISA and non-ISA Io Addresses\n");
763 break;
764
765 default:
762 "ISA and non-ISA Io Addresses\n");
763 break;
764
765 default:
766 AcpiOsPrintf ("\t\tType Specific: "
766 AcpiOsPrintf (" Type Specific: "
767 "Invalid Range attribute");
768 break;
769 }
770 break;
771
772 case BUS_NUMBER_RANGE:
773
767 "Invalid Range attribute");
768 break;
769 }
770 break;
771
772 case BUS_NUMBER_RANGE:
773
774 AcpiOsPrintf ("\t\tResource Type: Bus Number Range\n");
774 AcpiOsPrintf (" Resource Type: Bus Number Range\n");
775 break;
776
777 default:
778
775 break;
776
777 default:
778
779 AcpiOsPrintf ("\t\tInvalid Resource Type..exiting.\n");
779 AcpiOsPrintf (" Invalid Resource Type..exiting.\n");
780 return;
781 }
782
780 return;
781 }
782
783 AcpiOsPrintf ("\t\tResource %s\n",
783 AcpiOsPrintf (" Resource %s\n",
784 CONSUMER == Address32Data->ProducerConsumer ?
785 "Consumer" : "Producer");
786
784 CONSUMER == Address32Data->ProducerConsumer ?
785 "Consumer" : "Producer");
786
787 AcpiOsPrintf ("\t\t%s decode\n",
787 AcpiOsPrintf (" %s decode\n",
788 SUB_DECODE == Address32Data->Decode ?
789 "Subtractive" : "Positive");
790
788 SUB_DECODE == Address32Data->Decode ?
789 "Subtractive" : "Positive");
790
791 AcpiOsPrintf ("\t\tMin address is %s fixed\n",
791 AcpiOsPrintf (" Min address is %s fixed\n",
792 ADDRESS_FIXED == Address32Data->MinAddressFixed ?
793 "" : "not ");
794
792 ADDRESS_FIXED == Address32Data->MinAddressFixed ?
793 "" : "not ");
794
795 AcpiOsPrintf ("\t\tMax address is %s fixed\n",
795 AcpiOsPrintf (" Max address is %s fixed\n",
796 ADDRESS_FIXED == Address32Data->MaxAddressFixed ?
797 "" : "not ");
798
796 ADDRESS_FIXED == Address32Data->MaxAddressFixed ?
797 "" : "not ");
798
799 AcpiOsPrintf ("\t\tGranularity: %08X\n",
799 AcpiOsPrintf (" Granularity: %08X\n",
800 Address32Data->Granularity);
801
800 Address32Data->Granularity);
801
802 AcpiOsPrintf ("\t\tAddress range min: %08X\n",
802 AcpiOsPrintf (" Address range min: %08X\n",
803 Address32Data->MinAddressRange);
804
803 Address32Data->MinAddressRange);
804
805 AcpiOsPrintf ("\t\tAddress range max: %08X\n",
805 AcpiOsPrintf (" Address range max: %08X\n",
806 Address32Data->MaxAddressRange);
807
806 Address32Data->MaxAddressRange);
807
808 AcpiOsPrintf ("\t\tAddress translation offset: %08X\n",
808 AcpiOsPrintf (" Address translation offset: %08X\n",
809 Address32Data->AddressTranslationOffset);
810
809 Address32Data->AddressTranslationOffset);
810
811 AcpiOsPrintf ("\t\tAddress Length: %08X\n",
811 AcpiOsPrintf (" Address Length: %08X\n",
812 Address32Data->AddressLength);
813
814 if(0xFF != Address32Data->ResourceSource.Index)
815 {
812 Address32Data->AddressLength);
813
814 if(0xFF != Address32Data->ResourceSource.Index)
815 {
816 AcpiOsPrintf ("\t\tResource Source Index: %X\n",
816 AcpiOsPrintf (" Resource Source Index: %X\n",
817 Address32Data->ResourceSource.Index);
817 Address32Data->ResourceSource.Index);
818 AcpiOsPrintf ("\t\tResource Source: %s\n",
818 AcpiOsPrintf (" Resource Source: %s\n",
819 Address32Data->ResourceSource.StringPtr);
820 }
821
822 return;
823}
824
825
826/*******************************************************************************

--- 10 unchanged lines hidden (view full) ---

837
838void
839AcpiRsDumpAddress64 (
840 ACPI_RESOURCE_DATA *Data)
841{
842 ACPI_RESOURCE_ADDRESS64 *Address64Data = (ACPI_RESOURCE_ADDRESS64 *) Data;
843
844
819 Address32Data->ResourceSource.StringPtr);
820 }
821
822 return;
823}
824
825
826/*******************************************************************************

--- 10 unchanged lines hidden (view full) ---

837
838void
839AcpiRsDumpAddress64 (
840 ACPI_RESOURCE_DATA *Data)
841{
842 ACPI_RESOURCE_ADDRESS64 *Address64Data = (ACPI_RESOURCE_ADDRESS64 *) Data;
843
844
845 AcpiOsPrintf ("\t64-Bit Address Space Resource\n");
845 AcpiOsPrintf ("64-Bit Address Space Resource\n");
846
847 switch (Address64Data->ResourceType)
848 {
849 case MEMORY_RANGE:
850
846
847 switch (Address64Data->ResourceType)
848 {
849 case MEMORY_RANGE:
850
851 AcpiOsPrintf ("\t\tResource Type: Memory Range\n");
851 AcpiOsPrintf (" Resource Type: Memory Range\n");
852
853 switch (Address64Data->Attribute.Memory.CacheAttribute)
854 {
855 case NON_CACHEABLE_MEMORY:
852
853 switch (Address64Data->Attribute.Memory.CacheAttribute)
854 {
855 case NON_CACHEABLE_MEMORY:
856 AcpiOsPrintf ("\t\tType Specific: "
856 AcpiOsPrintf (" Type Specific: "
857 "Noncacheable memory\n");
858 break;
859
860 case CACHABLE_MEMORY:
857 "Noncacheable memory\n");
858 break;
859
860 case CACHABLE_MEMORY:
861 AcpiOsPrintf ("\t\tType Specific: "
861 AcpiOsPrintf (" Type Specific: "
862 "Cacheable memory\n");
863 break;
864
865 case WRITE_COMBINING_MEMORY:
862 "Cacheable memory\n");
863 break;
864
865 case WRITE_COMBINING_MEMORY:
866 AcpiOsPrintf ("\t\tType Specific: "
866 AcpiOsPrintf (" Type Specific: "
867 "Write-combining memory\n");
868 break;
869
870 case PREFETCHABLE_MEMORY:
867 "Write-combining memory\n");
868 break;
869
870 case PREFETCHABLE_MEMORY:
871 AcpiOsPrintf ("\t\tType Specific: "
871 AcpiOsPrintf (" Type Specific: "
872 "Prefetchable memory\n");
873 break;
874
875 default:
872 "Prefetchable memory\n");
873 break;
874
875 default:
876 AcpiOsPrintf ("\t\tType Specific: "
876 AcpiOsPrintf (" Type Specific: "
877 "Invalid cache attribute\n");
878 break;
879 }
880
877 "Invalid cache attribute\n");
878 break;
879 }
880
881 AcpiOsPrintf ("\t\tType Specific: Read%s\n",
881 AcpiOsPrintf (" Type Specific: Read%s\n",
882 READ_WRITE_MEMORY ==
883 Address64Data->Attribute.Memory.ReadWriteAttribute ?
884 "/Write" : " Only");
885 break;
886
887 case IO_RANGE:
888
882 READ_WRITE_MEMORY ==
883 Address64Data->Attribute.Memory.ReadWriteAttribute ?
884 "/Write" : " Only");
885 break;
886
887 case IO_RANGE:
888
889 AcpiOsPrintf ("\t\tResource Type: Io Range\n");
889 AcpiOsPrintf (" Resource Type: Io Range\n");
890
891 switch (Address64Data->Attribute.Io.RangeAttribute)
892 {
893 case NON_ISA_ONLY_RANGES:
890
891 switch (Address64Data->Attribute.Io.RangeAttribute)
892 {
893 case NON_ISA_ONLY_RANGES:
894 AcpiOsPrintf ("\t\tType Specific: "
894 AcpiOsPrintf (" Type Specific: "
895 "Non-ISA Io Addresses\n");
896 break;
897
898 case ISA_ONLY_RANGES:
895 "Non-ISA Io Addresses\n");
896 break;
897
898 case ISA_ONLY_RANGES:
899 AcpiOsPrintf ("\t\tType Specific: "
899 AcpiOsPrintf (" Type Specific: "
900 "ISA Io Addresses\n");
901 break;
902
903 case ENTIRE_RANGE:
900 "ISA Io Addresses\n");
901 break;
902
903 case ENTIRE_RANGE:
904 AcpiOsPrintf ("\t\tType Specific: "
904 AcpiOsPrintf (" Type Specific: "
905 "ISA and non-ISA Io Addresses\n");
906 break;
907
908 default:
905 "ISA and non-ISA Io Addresses\n");
906 break;
907
908 default:
909 AcpiOsPrintf ("\t\tType Specific: "
909 AcpiOsPrintf (" Type Specific: "
910 "Invalid Range attribute");
911 break;
912 }
913 break;
914
915 case BUS_NUMBER_RANGE:
916
910 "Invalid Range attribute");
911 break;
912 }
913 break;
914
915 case BUS_NUMBER_RANGE:
916
917 AcpiOsPrintf ("\t\tResource Type: Bus Number Range\n");
917 AcpiOsPrintf (" Resource Type: Bus Number Range\n");
918 break;
919
920 default:
921
918 break;
919
920 default:
921
922 AcpiOsPrintf ("\t\tInvalid Resource Type..exiting.\n");
922 AcpiOsPrintf (" Invalid Resource Type..exiting.\n");
923 return;
924 }
925
923 return;
924 }
925
926 AcpiOsPrintf ("\t\tResource %s\n",
926 AcpiOsPrintf (" Resource %s\n",
927 CONSUMER == Address64Data->ProducerConsumer ?
928 "Consumer" : "Producer");
929
927 CONSUMER == Address64Data->ProducerConsumer ?
928 "Consumer" : "Producer");
929
930 AcpiOsPrintf ("\t\t%s decode\n",
930 AcpiOsPrintf (" %s decode\n",
931 SUB_DECODE == Address64Data->Decode ?
932 "Subtractive" : "Positive");
933
931 SUB_DECODE == Address64Data->Decode ?
932 "Subtractive" : "Positive");
933
934 AcpiOsPrintf ("\t\tMin address is %s fixed\n",
934 AcpiOsPrintf (" Min address is %s fixed\n",
935 ADDRESS_FIXED == Address64Data->MinAddressFixed ?
936 "" : "not ");
937
935 ADDRESS_FIXED == Address64Data->MinAddressFixed ?
936 "" : "not ");
937
938 AcpiOsPrintf ("\t\tMax address is %s fixed\n",
938 AcpiOsPrintf (" Max address is %s fixed\n",
939 ADDRESS_FIXED == Address64Data->MaxAddressFixed ?
940 "" : "not ");
941
939 ADDRESS_FIXED == Address64Data->MaxAddressFixed ?
940 "" : "not ");
941
942 AcpiOsPrintf ("\t\tGranularity: %16X\n",
942 AcpiOsPrintf (" Granularity: %16X\n",
943 Address64Data->Granularity);
944
943 Address64Data->Granularity);
944
945 AcpiOsPrintf ("\t\tAddress range min: %16X\n",
945 AcpiOsPrintf (" Address range min: %16X\n",
946 Address64Data->MinAddressRange);
947
946 Address64Data->MinAddressRange);
947
948 AcpiOsPrintf ("\t\tAddress range max: %16X\n",
948 AcpiOsPrintf (" Address range max: %16X\n",
949 Address64Data->MaxAddressRange);
950
949 Address64Data->MaxAddressRange);
950
951 AcpiOsPrintf ("\t\tAddress translation offset: %16X\n",
951 AcpiOsPrintf (" Address translation offset: %16X\n",
952 Address64Data->AddressTranslationOffset);
953
952 Address64Data->AddressTranslationOffset);
953
954 AcpiOsPrintf ("\t\tAddress Length: %16X\n",
954 AcpiOsPrintf (" Address Length: %16X\n",
955 Address64Data->AddressLength);
956
957 if(0xFF != Address64Data->ResourceSource.Index)
958 {
955 Address64Data->AddressLength);
956
957 if(0xFF != Address64Data->ResourceSource.Index)
958 {
959 AcpiOsPrintf ("\t\tResource Source Index: %X\n",
959 AcpiOsPrintf (" Resource Source Index: %X\n",
960 Address64Data->ResourceSource.Index);
960 Address64Data->ResourceSource.Index);
961 AcpiOsPrintf ("\t\tResource Source: %s\n",
961 AcpiOsPrintf (" Resource Source: %s\n",
962 Address64Data->ResourceSource.StringPtr);
963 }
964
965 return;
966}
967
968
969/*******************************************************************************

--- 11 unchanged lines hidden (view full) ---

981void
982AcpiRsDumpExtendedIrq (
983 ACPI_RESOURCE_DATA *Data)
984{
985 ACPI_RESOURCE_EXT_IRQ *ExtIrqData = (ACPI_RESOURCE_EXT_IRQ *) Data;
986 UINT8 Index = 0;
987
988
962 Address64Data->ResourceSource.StringPtr);
963 }
964
965 return;
966}
967
968
969/*******************************************************************************

--- 11 unchanged lines hidden (view full) ---

981void
982AcpiRsDumpExtendedIrq (
983 ACPI_RESOURCE_DATA *Data)
984{
985 ACPI_RESOURCE_EXT_IRQ *ExtIrqData = (ACPI_RESOURCE_EXT_IRQ *) Data;
986 UINT8 Index = 0;
987
988
989 AcpiOsPrintf ("\tExtended IRQ Resource\n");
989 AcpiOsPrintf ("Extended IRQ Resource\n");
990
990
991 AcpiOsPrintf ("\t\tResource %s\n",
991 AcpiOsPrintf (" Resource %s\n",
992 CONSUMER == ExtIrqData->ProducerConsumer ?
993 "Consumer" : "Producer");
994
992 CONSUMER == ExtIrqData->ProducerConsumer ?
993 "Consumer" : "Producer");
994
995 AcpiOsPrintf ("\t\t%s\n",
995 AcpiOsPrintf (" %s\n",
996 LEVEL_SENSITIVE == ExtIrqData->EdgeLevel ?
997 "Level" : "Edge");
998
996 LEVEL_SENSITIVE == ExtIrqData->EdgeLevel ?
997 "Level" : "Edge");
998
999 AcpiOsPrintf ("\t\tActive %s\n",
999 AcpiOsPrintf (" Active %s\n",
1000 ACTIVE_LOW == ExtIrqData->ActiveHighLow ?
1001 "low" : "high");
1002
1000 ACTIVE_LOW == ExtIrqData->ActiveHighLow ?
1001 "low" : "high");
1002
1003 AcpiOsPrintf ("\t\t%s\n",
1003 AcpiOsPrintf (" %s\n",
1004 SHARED == ExtIrqData->SharedExclusive ?
1005 "Shared" : "Exclusive");
1006
1004 SHARED == ExtIrqData->SharedExclusive ?
1005 "Shared" : "Exclusive");
1006
1007 AcpiOsPrintf ("\t\tInterrupts : %X ( ",
1007 AcpiOsPrintf (" Interrupts : %X ( ",
1008 ExtIrqData->NumberOfInterrupts);
1009
1010 for (Index = 0; Index < ExtIrqData->NumberOfInterrupts; Index++)
1011 {
1012 AcpiOsPrintf ("%X ", ExtIrqData->Interrupts[Index]);
1013 }
1014
1015 AcpiOsPrintf (")\n");
1016
1017 if(0xFF != ExtIrqData->ResourceSource.Index)
1018 {
1008 ExtIrqData->NumberOfInterrupts);
1009
1010 for (Index = 0; Index < ExtIrqData->NumberOfInterrupts; Index++)
1011 {
1012 AcpiOsPrintf ("%X ", ExtIrqData->Interrupts[Index]);
1013 }
1014
1015 AcpiOsPrintf (")\n");
1016
1017 if(0xFF != ExtIrqData->ResourceSource.Index)
1018 {
1019 AcpiOsPrintf ("\t\tResource Source Index: %X",
1019 AcpiOsPrintf (" Resource Source Index: %X",
1020 ExtIrqData->ResourceSource.Index);
1020 ExtIrqData->ResourceSource.Index);
1021 AcpiOsPrintf ("\t\tResource Source: %s",
1021 AcpiOsPrintf (" Resource Source: %s",
1022 ExtIrqData->ResourceSource.StringPtr);
1023 }
1024
1025 return;
1026}
1027
1028
1029/*******************************************************************************

--- 15 unchanged lines hidden (view full) ---

1045 UINT8 Count = 0;
1046 BOOLEAN Done = FALSE;
1047
1048
1049 if (AcpiDbgLevel & TRACE_RESOURCES && _COMPONENT & AcpiDbgLayer)
1050 {
1051 while (!Done)
1052 {
1022 ExtIrqData->ResourceSource.StringPtr);
1023 }
1024
1025 return;
1026}
1027
1028
1029/*******************************************************************************

--- 15 unchanged lines hidden (view full) ---

1045 UINT8 Count = 0;
1046 BOOLEAN Done = FALSE;
1047
1048
1049 if (AcpiDbgLevel & TRACE_RESOURCES && _COMPONENT & AcpiDbgLayer)
1050 {
1051 while (!Done)
1052 {
1053 AcpiOsPrintf ("\tResource structure %x.\n", Count++);
1053 AcpiOsPrintf ("Resource structure %x.\n", Count++);
1054
1055 switch (Resource->Id)
1056 {
1057 case ACPI_RSTYPE_IRQ:
1058 AcpiRsDumpIrq (&Resource->Data);
1059 break;
1060
1061 case ACPI_RSTYPE_DMA:
1062 AcpiRsDumpDma (&Resource->Data);
1063 break;
1064
1065 case ACPI_RSTYPE_START_DPF:
1066 AcpiRsDumpStartDependentFunctions (&Resource->Data);
1067 break;
1068
1069 case ACPI_RSTYPE_END_DPF:
1054
1055 switch (Resource->Id)
1056 {
1057 case ACPI_RSTYPE_IRQ:
1058 AcpiRsDumpIrq (&Resource->Data);
1059 break;
1060
1061 case ACPI_RSTYPE_DMA:
1062 AcpiRsDumpDma (&Resource->Data);
1063 break;
1064
1065 case ACPI_RSTYPE_START_DPF:
1066 AcpiRsDumpStartDependentFunctions (&Resource->Data);
1067 break;
1068
1069 case ACPI_RSTYPE_END_DPF:
1070 AcpiOsPrintf ("\tEndDependentFunctions Resource\n");
1070 AcpiOsPrintf ("EndDependentFunctions Resource\n");
1071 /* AcpiRsDumpEndDependentFunctions (Resource->Data);*/
1072 break;
1073
1074 case ACPI_RSTYPE_IO:
1075 AcpiRsDumpIo (&Resource->Data);
1076 break;
1077
1078 case ACPI_RSTYPE_FIXED_IO:
1079 AcpiRsDumpFixedIo (&Resource->Data);
1080 break;
1081
1082 case ACPI_RSTYPE_VENDOR:
1083 AcpiRsDumpVendorSpecific (&Resource->Data);
1084 break;
1085
1086 case ACPI_RSTYPE_END_TAG:
1087 /*RsDumpEndTag (Resource->Data);*/
1071 /* AcpiRsDumpEndDependentFunctions (Resource->Data);*/
1072 break;
1073
1074 case ACPI_RSTYPE_IO:
1075 AcpiRsDumpIo (&Resource->Data);
1076 break;
1077
1078 case ACPI_RSTYPE_FIXED_IO:
1079 AcpiRsDumpFixedIo (&Resource->Data);
1080 break;
1081
1082 case ACPI_RSTYPE_VENDOR:
1083 AcpiRsDumpVendorSpecific (&Resource->Data);
1084 break;
1085
1086 case ACPI_RSTYPE_END_TAG:
1087 /*RsDumpEndTag (Resource->Data);*/
1088 AcpiOsPrintf ("\tEndTag Resource\n");
1088 AcpiOsPrintf ("EndTag Resource\n");
1089 Done = TRUE;
1090 break;
1091
1092 case ACPI_RSTYPE_MEM24:
1093 AcpiRsDumpMemory24 (&Resource->Data);
1094 break;
1095
1096 case ACPI_RSTYPE_MEM32:

--- 56 unchanged lines hidden (view full) ---

1153
1154
1155 if (AcpiDbgLevel & TRACE_RESOURCES && _COMPONENT & AcpiDbgLayer)
1156 {
1157 PrtElement = (PCI_ROUTING_TABLE *) Buffer;
1158
1159 while (!Done)
1160 {
1089 Done = TRUE;
1090 break;
1091
1092 case ACPI_RSTYPE_MEM24:
1093 AcpiRsDumpMemory24 (&Resource->Data);
1094 break;
1095
1096 case ACPI_RSTYPE_MEM32:

--- 56 unchanged lines hidden (view full) ---

1153
1154
1155 if (AcpiDbgLevel & TRACE_RESOURCES && _COMPONENT & AcpiDbgLayer)
1156 {
1157 PrtElement = (PCI_ROUTING_TABLE *) Buffer;
1158
1159 while (!Done)
1160 {
1161 AcpiOsPrintf ("\tPCI IRQ Routing Table structure %X.\n", Count++);
1161 AcpiOsPrintf ("PCI IRQ Routing Table structure %X.\n", Count++);
1162
1162
1163 AcpiOsPrintf ("\t\tAddress: %X\n",
1163 AcpiOsPrintf (" Address: %X\n",
1164 PrtElement->Address);
1165
1164 PrtElement->Address);
1165
1166 AcpiOsPrintf ("\t\tPin: %X\n", PrtElement->Pin);
1166 AcpiOsPrintf (" Pin: %X\n", PrtElement->Pin);
1167
1167
1168 AcpiOsPrintf ("\t\tSource: %s\n", PrtElement->Source);
1168 AcpiOsPrintf (" Source: %s\n", PrtElement->Source);
1169
1169
1170 AcpiOsPrintf ("\t\tSourceIndex: %X\n",
1170 AcpiOsPrintf (" SourceIndex: %X\n",
1171 PrtElement->SourceIndex);
1172
1173 Buffer += PrtElement->Length;
1174
1175 PrtElement = (PCI_ROUTING_TABLE *) Buffer;
1176
1177 if(0 == PrtElement->Length)
1178 {
1179 Done = TRUE;
1180 }
1181 }
1182 }
1183
1184 return;
1185}
1186
1171 PrtElement->SourceIndex);
1172
1173 Buffer += PrtElement->Length;
1174
1175 PrtElement = (PCI_ROUTING_TABLE *) Buffer;
1176
1177 if(0 == PrtElement->Length)
1178 {
1179 Done = TRUE;
1180 }
1181 }
1182 }
1183
1184 return;
1185}
1186