dmresrcl.c (241973) | dmresrcl.c (243347) |
---|---|
1/******************************************************************************* 2 * 3 * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly 4 * 5 ******************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 304 unchanged lines hidden (view full) --- 313 AcpiOsPrintf ("Space (0x%2.2X, ", ResourceType); 314 AcpiDmSpaceFlags (Flags); 315 AcpiOsPrintf (" 0x%2.2X,", SpecificFlags); 316 return; 317 } 318 319 /* This is either a Memory, IO, or BusNumber descriptor (0,1,2) */ 320 | 1/******************************************************************************* 2 * 3 * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly 4 * 5 ******************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 304 unchanged lines hidden (view full) --- 313 AcpiOsPrintf ("Space (0x%2.2X, ", ResourceType); 314 AcpiDmSpaceFlags (Flags); 315 AcpiOsPrintf (" 0x%2.2X,", SpecificFlags); 316 return; 317 } 318 319 /* This is either a Memory, IO, or BusNumber descriptor (0,1,2) */ 320 |
321 AcpiOsPrintf ("%s (", AcpiGbl_WordDecode [ResourceType & 0x3]); | 321 AcpiOsPrintf ("%s (", AcpiGbl_WordDecode [ACPI_GET_2BIT_FLAG (ResourceType)]); |
322 323 /* Decode the general and type-specific flags */ 324 325 if (ResourceType == ACPI_MEMORY_RANGE) 326 { 327 AcpiDmMemoryFlags (Flags, SpecificFlags); 328 } 329 else /* IO range or BusNumberRange */ 330 { 331 AcpiDmIoFlags (Flags); 332 if (ResourceType == ACPI_IO_RANGE) 333 { | 322 323 /* Decode the general and type-specific flags */ 324 325 if (ResourceType == ACPI_MEMORY_RANGE) 326 { 327 AcpiDmMemoryFlags (Flags, SpecificFlags); 328 } 329 else /* IO range or BusNumberRange */ 330 { 331 AcpiDmIoFlags (Flags); 332 if (ResourceType == ACPI_IO_RANGE) 333 { |
334 AcpiOsPrintf (" %s,", AcpiGbl_RngDecode [SpecificFlags & 0x3]); | 334 AcpiOsPrintf (" %s,", AcpiGbl_RngDecode [ACPI_GET_2BIT_FLAG (SpecificFlags)]); |
335 } 336 } 337} 338 339 340/******************************************************************************* 341 * 342 * FUNCTION: AcpiDmAddressFlags --- 35 unchanged lines hidden (view full) --- 378 ******************************************************************************/ 379 380static void 381AcpiDmSpaceFlags ( 382 UINT8 Flags) 383{ 384 385 AcpiOsPrintf ("%s, %s, %s, %s,", | 335 } 336 } 337} 338 339 340/******************************************************************************* 341 * 342 * FUNCTION: AcpiDmAddressFlags --- 35 unchanged lines hidden (view full) --- 378 ******************************************************************************/ 379 380static void 381AcpiDmSpaceFlags ( 382 UINT8 Flags) 383{ 384 385 AcpiOsPrintf ("%s, %s, %s, %s,", |
386 AcpiGbl_ConsumeDecode [(Flags & 1)], 387 AcpiGbl_DecDecode [(Flags & 0x2) >> 1], 388 AcpiGbl_MinDecode [(Flags & 0x4) >> 2], 389 AcpiGbl_MaxDecode [(Flags & 0x8) >> 3]); | 386 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)], 387 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)], 388 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)], 389 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)]); |
390} 391 392 393/******************************************************************************* 394 * 395 * FUNCTION: AcpiDmIoFlags 396 * 397 * PARAMETERS: Flags - Flag byte to be decoded --- 4 unchanged lines hidden (view full) --- 402 * 403 ******************************************************************************/ 404 405static void 406AcpiDmIoFlags ( 407 UINT8 Flags) 408{ 409 AcpiOsPrintf ("%s, %s, %s, %s,", | 390} 391 392 393/******************************************************************************* 394 * 395 * FUNCTION: AcpiDmIoFlags 396 * 397 * PARAMETERS: Flags - Flag byte to be decoded --- 4 unchanged lines hidden (view full) --- 402 * 403 ******************************************************************************/ 404 405static void 406AcpiDmIoFlags ( 407 UINT8 Flags) 408{ 409 AcpiOsPrintf ("%s, %s, %s, %s,", |
410 AcpiGbl_ConsumeDecode [(Flags & 1)], 411 AcpiGbl_MinDecode [(Flags & 0x4) >> 2], 412 AcpiGbl_MaxDecode [(Flags & 0x8) >> 3], 413 AcpiGbl_DecDecode [(Flags & 0x2) >> 1]); | 410 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)], 411 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)], 412 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)], 413 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)]); |
414} 415 416 417/******************************************************************************* 418 * 419 * FUNCTION: AcpiDmIoFlags2 420 * 421 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded --- 5 unchanged lines hidden (view full) --- 427 ******************************************************************************/ 428 429static void 430AcpiDmIoFlags2 ( 431 UINT8 SpecificFlags) 432{ 433 434 AcpiOsPrintf (", %s", | 414} 415 416 417/******************************************************************************* 418 * 419 * FUNCTION: AcpiDmIoFlags2 420 * 421 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded --- 5 unchanged lines hidden (view full) --- 427 ******************************************************************************/ 428 429static void 430AcpiDmIoFlags2 ( 431 UINT8 SpecificFlags) 432{ 433 434 AcpiOsPrintf (", %s", |
435 AcpiGbl_TtpDecode [(SpecificFlags & 0x10) >> 4]); | 435 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 4)]); |
436 437 /* TRS is only used if TTP is TypeTranslation */ 438 439 if (SpecificFlags & 0x10) 440 { 441 AcpiOsPrintf (", %s", | 436 437 /* TRS is only used if TTP is TypeTranslation */ 438 439 if (SpecificFlags & 0x10) 440 { 441 AcpiOsPrintf (", %s", |
442 AcpiGbl_TrsDecode [(SpecificFlags & 0x20) >> 5]); | 442 AcpiGbl_TrsDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]); |
443 } 444} 445 446 447/******************************************************************************* 448 * 449 * FUNCTION: AcpiDmMemoryFlags 450 * --- 8 unchanged lines hidden (view full) --- 459 460static void 461AcpiDmMemoryFlags ( 462 UINT8 Flags, 463 UINT8 SpecificFlags) 464{ 465 466 AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,", | 443 } 444} 445 446 447/******************************************************************************* 448 * 449 * FUNCTION: AcpiDmMemoryFlags 450 * --- 8 unchanged lines hidden (view full) --- 459 460static void 461AcpiDmMemoryFlags ( 462 UINT8 Flags, 463 UINT8 SpecificFlags) 464{ 465 466 AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,", |
467 AcpiGbl_ConsumeDecode [(Flags & 1)], 468 AcpiGbl_DecDecode [(Flags & 0x2) >> 1], 469 AcpiGbl_MinDecode [(Flags & 0x4) >> 2], 470 AcpiGbl_MaxDecode [(Flags & 0x8) >> 3], 471 AcpiGbl_MemDecode [(SpecificFlags & 0x6) >> 1], 472 AcpiGbl_RwDecode [(SpecificFlags & 0x1)]); | 467 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)], 468 AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)], 469 AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)], 470 AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)], 471 AcpiGbl_MemDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 1)], 472 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (SpecificFlags)]); |
473} 474 475 476/******************************************************************************* 477 * 478 * FUNCTION: AcpiDmMemoryFlags2 479 * 480 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded --- 5 unchanged lines hidden (view full) --- 486 ******************************************************************************/ 487 488static void 489AcpiDmMemoryFlags2 ( 490 UINT8 SpecificFlags) 491{ 492 493 AcpiOsPrintf (", %s, %s", | 473} 474 475 476/******************************************************************************* 477 * 478 * FUNCTION: AcpiDmMemoryFlags2 479 * 480 * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded --- 5 unchanged lines hidden (view full) --- 486 ******************************************************************************/ 487 488static void 489AcpiDmMemoryFlags2 ( 490 UINT8 SpecificFlags) 491{ 492 493 AcpiOsPrintf (", %s, %s", |
494 AcpiGbl_MtpDecode [(SpecificFlags & 0x18) >> 3], 495 AcpiGbl_TtpDecode [(SpecificFlags & 0x20) >> 5]); | 494 AcpiGbl_MtpDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 3)], 495 AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]); |
496} 497 498 499/******************************************************************************* 500 * 501 * FUNCTION: AcpiDmResourceSource 502 * 503 * PARAMETERS: Resource - Raw AML descriptor --- 258 unchanged lines hidden (view full) --- 762 UINT32 Length, 763 UINT32 Level) 764{ 765 766 /* Dump name and read/write flag */ 767 768 AcpiDmIndent (Level); 769 AcpiOsPrintf ("Memory24 (%s,\n", | 496} 497 498 499/******************************************************************************* 500 * 501 * FUNCTION: AcpiDmResourceSource 502 * 503 * PARAMETERS: Resource - Raw AML descriptor --- 258 unchanged lines hidden (view full) --- 762 UINT32 Length, 763 UINT32 Level) 764{ 765 766 /* Dump name and read/write flag */ 767 768 AcpiDmIndent (Level); 769 AcpiOsPrintf ("Memory24 (%s,\n", |
770 AcpiGbl_RwDecode [Resource->Memory24.Flags & 1]); | 770 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory24.Flags)]); |
771 772 /* Dump the 4 contiguous WORD values */ 773 774 AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level); 775 776 /* Insert a descriptor name */ 777 778 AcpiDmIndent (Level + 1); --- 22 unchanged lines hidden (view full) --- 801 UINT32 Length, 802 UINT32 Level) 803{ 804 805 /* Dump name and read/write flag */ 806 807 AcpiDmIndent (Level); 808 AcpiOsPrintf ("Memory32 (%s,\n", | 771 772 /* Dump the 4 contiguous WORD values */ 773 774 AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level); 775 776 /* Insert a descriptor name */ 777 778 AcpiDmIndent (Level + 1); --- 22 unchanged lines hidden (view full) --- 801 UINT32 Length, 802 UINT32 Level) 803{ 804 805 /* Dump name and read/write flag */ 806 807 AcpiDmIndent (Level); 808 AcpiOsPrintf ("Memory32 (%s,\n", |
809 AcpiGbl_RwDecode [Resource->Memory32.Flags & 1]); | 809 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]); |
810 811 /* Dump the 4 contiguous DWORD values */ 812 813 AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level); 814 815 /* Insert a descriptor name */ 816 817 AcpiDmIndent (Level + 1); --- 22 unchanged lines hidden (view full) --- 840 UINT32 Length, 841 UINT32 Level) 842{ 843 844 /* Dump name and read/write flag */ 845 846 AcpiDmIndent (Level); 847 AcpiOsPrintf ("Memory32Fixed (%s,\n", | 810 811 /* Dump the 4 contiguous DWORD values */ 812 813 AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level); 814 815 /* Insert a descriptor name */ 816 817 AcpiDmIndent (Level + 1); --- 22 unchanged lines hidden (view full) --- 840 UINT32 Length, 841 UINT32 Level) 842{ 843 844 /* Dump name and read/write flag */ 845 846 AcpiDmIndent (Level); 847 AcpiOsPrintf ("Memory32Fixed (%s,\n", |
848 AcpiGbl_RwDecode [Resource->FixedMemory32.Flags & 1]); | 848 AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]); |
849 850 AcpiDmIndent (Level + 1); 851 AcpiDmDumpInteger32 (Resource->FixedMemory32.Address, "Address Base"); 852 853 AcpiDmIndent (Level + 1); 854 AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength, "Address Length"); 855 856 /* Insert a descriptor name */ --- 80 unchanged lines hidden (view full) --- 937 UINT32 Length, 938 UINT32 Level) 939{ 940 UINT32 i; 941 942 943 AcpiDmIndent (Level); 944 AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ", | 849 850 AcpiDmIndent (Level + 1); 851 AcpiDmDumpInteger32 (Resource->FixedMemory32.Address, "Address Base"); 852 853 AcpiDmIndent (Level + 1); 854 AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength, "Address Length"); 855 856 /* Insert a descriptor name */ --- 80 unchanged lines hidden (view full) --- 937 UINT32 Length, 938 UINT32 Level) 939{ 940 UINT32 i; 941 942 943 AcpiDmIndent (Level); 944 AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ", |
945 AcpiGbl_ConsumeDecode [(Resource->ExtendedIrq.Flags & 1)], 946 AcpiGbl_HeDecode [(Resource->ExtendedIrq.Flags >> 1) & 1], 947 AcpiGbl_LlDecode [(Resource->ExtendedIrq.Flags >> 2) & 1], 948 AcpiGbl_ShrDecode [(Resource->ExtendedIrq.Flags >> 3) & 1]); | 945 AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)], 946 AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)], 947 AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)], 948 AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]); |
949 950 /* 951 * The ResourceSource fields are optional and appear after the interrupt 952 * list. Must compute length based on length of the list. First xrupt 953 * is included in the struct (reason for -1 below) 954 */ 955 AcpiDmResourceSource (Resource, 956 sizeof (AML_RESOURCE_EXTENDED_IRQ) + --- 96 unchanged lines hidden --- | 949 950 /* 951 * The ResourceSource fields are optional and appear after the interrupt 952 * list. Must compute length based on length of the list. First xrupt 953 * is included in the struct (reason for -1 below) 954 */ 955 AcpiDmResourceSource (Resource, 956 sizeof (AML_RESOURCE_EXTENDED_IRQ) + --- 96 unchanged lines hidden --- |