Deleted Added
sdiff udiff text old ( 99679 ) new ( 100966 )
full compact
1/*******************************************************************************
2 *
3 * Module Name: dbdisply - debug display commands
4 * $Revision: 76 $
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.

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

406
407
408 if (!ObjDesc)
409 {
410 AcpiOsPrintf (" Uninitialized\n");
411 return;
412 }
413
414 if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND)
415 {
416 AcpiOsPrintf ("%p", ObjDesc);
417 return;
418 }
419
420 AcpiOsPrintf (" %s", AcpiUtGetObjectTypeName (ObjDesc));
421
422 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
423 {
424 case ACPI_TYPE_INTEGER:
425
426 AcpiOsPrintf (" %8.8X%8.8X", ACPI_HIDWORD (ObjDesc->Integer.Value),
427 ACPI_LODWORD (ObjDesc->Integer.Value));

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

450 for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++)
451 {
452 AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]);
453 }
454 break;
455
456
457 default:
458
459 AcpiOsPrintf ("%p", ObjDesc);
460 break;
461 }
462}
463
464
465/*******************************************************************************
466 *
467 * FUNCTION: AcpiDbDecodeNode
468 *
469 * PARAMETERS: Node - Object to be displayed
470 *
471 * RETURN: None
472 *
473 * DESCRIPTION: Short display of a namespace node
474 *
475 ******************************************************************************/
476
477void
478AcpiDbDecodeNode (
479 ACPI_NAMESPACE_NODE *Node)
480{
481
482
483 AcpiOsPrintf ("<Node> Name %4.4s Type-%s",
484 Node->Name.Ascii, AcpiUtGetTypeName (Node->Type));
485
486 if (Node->Flags & ANOBJ_METHOD_ARG)
487 {
488 AcpiOsPrintf (" [Method Arg]");
489 }
490 if (Node->Flags & ANOBJ_METHOD_LOCAL)
491 {
492 AcpiOsPrintf (" [Method Local]");
493 }
494
495 AcpiDbDecodeInternalObject (AcpiNsGetAttachedObject (Node));
496}
497
498
499/*******************************************************************************
500 *
501 * FUNCTION: AcpiDbDisplayInternalObject
502 *
503 * PARAMETERS: ObjDesc - Object to be displayed
504 * WalkState - Current walk state
505 *
506 * RETURN: None
507 *
508 * DESCRIPTION: Short display of an internal object

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

532 case ACPI_DESC_TYPE_PARSER:
533
534 AcpiOsPrintf ("<Parser> ");
535 break;
536
537
538 case ACPI_DESC_TYPE_NAMED:
539
540 AcpiDbDecodeNode ((ACPI_NAMESPACE_NODE *) ObjDesc);
541 break;
542
543
544 case ACPI_DESC_TYPE_OPERAND:
545
546 Type = ACPI_GET_OBJECT_TYPE (ObjDesc);
547 if (Type > INTERNAL_TYPE_MAX)
548 {
549 AcpiOsPrintf (" Type %hX [Invalid Type]", Type);
550 return;
551 }
552
553 /* Decode the ACPI object type */
554
555 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
556 {
557 case INTERNAL_TYPE_REFERENCE:
558
559 switch (ObjDesc->Reference.Opcode)
560 {
561 case AML_LOCAL_OP:
562
563 AcpiOsPrintf ("[Local%d] ", ObjDesc->Reference.Offset);
564 if (WalkState)
565 {
566 ObjDesc = WalkState->LocalVariables[ObjDesc->Reference.Offset].Object;
567 AcpiOsPrintf ("%p", ObjDesc);
568 AcpiDbDecodeInternalObject (ObjDesc);
569 }
570 break;
571
572
573 case AML_ARG_OP:
574
575 AcpiOsPrintf ("[Arg%d] ", ObjDesc->Reference.Offset);
576 if (WalkState)
577 {
578 ObjDesc = WalkState->Arguments[ObjDesc->Reference.Offset].Object;
579 AcpiOsPrintf ("%p", ObjDesc);
580 AcpiDbDecodeInternalObject (ObjDesc);
581 }
582 break;
583
584
585 case AML_DEBUG_OP:
586
587 AcpiOsPrintf ("[Debug] ");
588 break;
589
590
591 case AML_INDEX_OP:
592
593 AcpiOsPrintf ("[Index] ");
594 AcpiDbDecodeInternalObject (ObjDesc->Reference.Object);
595 break;
596
597
598 case AML_REF_OF_OP:
599
600 AcpiOsPrintf ("[Reference] ");
601
602 /* Reference can be to a Node or an Operand object */
603
604 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc->Reference.Object))
605 {
606 case ACPI_DESC_TYPE_NAMED:
607 AcpiDbDecodeNode (ObjDesc->Reference.Object);
608 break;
609
610 case ACPI_DESC_TYPE_OPERAND:
611 AcpiDbDecodeInternalObject (ObjDesc->Reference.Object);
612 break;
613
614 default:
615 break;
616 }
617 break;
618
619
620 default:
621
622 AcpiOsPrintf ("Unknown Reference opcode %X\n",
623 ObjDesc->Reference.Opcode);
624 break;
625 }
626 break;
627
628 default:
629
630 AcpiOsPrintf ("<Obj> ");
631 AcpiOsPrintf (" ");
632 AcpiDbDecodeInternalObject (ObjDesc);
633 break;
634 }
635 break;
636
637

--- 365 unchanged lines hidden ---