Deleted Added
full compact
1/*******************************************************************************
2 *
3 * Module Name: dbdisply - debug display commands
4 * $Revision: 75 $
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 AcpiOsPrintf (" %s", AcpiUtGetObjectTypeName (ObjDesc));
415
416 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
417 {
418 case ACPI_TYPE_INTEGER:
419
420 AcpiOsPrintf (" %8.8X%8.8X", ACPI_HIDWORD (ObjDesc->Integer.Value),
421 ACPI_LODWORD (ObjDesc->Integer.Value));

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

444 for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++)
445 {
446 AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]);
447 }
448 break;
449
450
451 default:
452 /* No additional display for other types */
453 break;
454 }
455}
456
457
458/*******************************************************************************
459 *
460 * FUNCTION: AcpiDbDisplayInternalObject
461 *
462 * PARAMETERS: ObjDesc - Object to be displayed
463 * WalkState - Current walk state
464 *
465 * RETURN: None
466 *
467 * DESCRIPTION: Short display of an internal object

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

491 case ACPI_DESC_TYPE_PARSER:
492
493 AcpiOsPrintf ("<Parser> ");
494 break;
495
496
497 case ACPI_DESC_TYPE_NAMED:
498
499 AcpiOsPrintf ("<Node> Name %4.4s Type-%s",
500 ((ACPI_NAMESPACE_NODE *)ObjDesc)->Name.Ascii,
501 AcpiUtGetTypeName (((ACPI_NAMESPACE_NODE *) ObjDesc)->Type));
502
503 if (((ACPI_NAMESPACE_NODE *) ObjDesc)->Flags & ANOBJ_METHOD_ARG)
504 {
505 AcpiOsPrintf (" [Method Arg]");
506 }
507 if (((ACPI_NAMESPACE_NODE *) ObjDesc)->Flags & ANOBJ_METHOD_LOCAL)
508 {
509 AcpiOsPrintf (" [Method Local]");
510 }
511 break;
512
513
514 case ACPI_DESC_TYPE_OPERAND:
515
516 Type = ACPI_GET_OBJECT_TYPE (ObjDesc);
517 if (Type > INTERNAL_TYPE_MAX)
518 {
519 AcpiOsPrintf (" Type %hX [Invalid Type]", Type);
520 return;
521 }
522
523 /* Decode the ACPI object type */
524
525 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
526 {
527 case INTERNAL_TYPE_REFERENCE:
528 switch (ObjDesc->Reference.Opcode)
529 {
530 case AML_LOCAL_OP:
531 AcpiOsPrintf ("[Local%d] ", ObjDesc->Reference.Offset);
532 if (WalkState)
533 {
534 ObjDesc = WalkState->LocalVariables[ObjDesc->Reference.Offset].Object;
535 AcpiOsPrintf ("%p", ObjDesc);
536 AcpiDbDecodeInternalObject (ObjDesc);
537 }
538 break;
539
540 case AML_ARG_OP:
541 AcpiOsPrintf ("[Arg%d] ", ObjDesc->Reference.Offset);
542 if (WalkState)
543 {
544 ObjDesc = WalkState->Arguments[ObjDesc->Reference.Offset].Object;
545 AcpiOsPrintf ("%p", ObjDesc);
546 AcpiDbDecodeInternalObject (ObjDesc);
547 }
548 break;
549
550 case AML_DEBUG_OP:
551 AcpiOsPrintf ("[Debug] ");
552 break;
553
554 case AML_INDEX_OP:
555 AcpiOsPrintf ("[Index] ");
556 AcpiDbDecodeInternalObject (ObjDesc->Reference.Object);
557 break;
558
559 default:
560 AcpiOsPrintf ("Unknown Reference opcode %X\n",
561 ObjDesc->Reference.Opcode);
562 break;
563
564 }
565 break;
566
567 default:
568 AcpiOsPrintf ("<Obj> ");
569 AcpiOsPrintf (" ");
570 AcpiDbDecodeInternalObject (ObjDesc);
571 break;
572 }
573 break;
574
575

--- 365 unchanged lines hidden ---