mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 09:24:08 +03:00
Added the DumpObjectDesciptor function
date 99.04.08.21.02.00; author grsmith1; state Exp;
This commit is contained in:
parent
18c7852f4f
commit
faf69915eb
@ -91,6 +91,232 @@ GetMasterLogHandle (void)
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* FUNCTION: DumpObjectDescriptor
|
||||
*
|
||||
* DESCRIPTION: Dumps the members of the object descriptor given.
|
||||
*
|
||||
****************************************************************************/
|
||||
void
|
||||
DumpObjectDescriptor (OBJECT_DESCRIPTOR *Object)
|
||||
{
|
||||
|
||||
FUNCTION_TRACE ("DumpObjectDescriptor");
|
||||
|
||||
|
||||
switch (Object->ValType)
|
||||
{
|
||||
case Number:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Number"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Number.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Number.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Number", Object->Number.Number));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->Number.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Number.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->Number.Reserved5));
|
||||
break;
|
||||
|
||||
case String:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "String"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->String.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "StrLen", Object->String.StrLen));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->String.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->String.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "String", Object->String.String));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->String.Reserved4));
|
||||
break;
|
||||
|
||||
case Buffer:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Buffer"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Buffer.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "BufLen", Object->Buffer.BufLen));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Buffer.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Sequence", Object->Buffer.Sequence));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Buffer", Object->Buffer.Buffer));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Buffer.Reserved4));
|
||||
break;
|
||||
|
||||
|
||||
case Package:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Package"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Package.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "PkgCount", Object->Package.PkgCount));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Package.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->Package.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "PackageElems", Object->Package.PackageElems));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "NextElement", Object->Package.NextElement));
|
||||
break;
|
||||
|
||||
case FieldUnit:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "FieldUnit"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Access", Object->FieldUnit.Access));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "LockRule", Object->FieldUnit.LockRule));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "UpdateRule", Object->FieldUnit.UpdateRule));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->FieldUnit.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "DatLen", Object->FieldUnit.DatLen));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "BitOffset", Object->FieldUnit.BitOffset));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Offset", Object->FieldUnit.Offset));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "ConSeq", Object->FieldUnit.ConSeq));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Container", Object->FieldUnit.Container));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->FieldUnit.Reserved3));
|
||||
break;
|
||||
|
||||
case Device:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Device"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Device.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Device.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->Device.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Device.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Device", Object->Device.Device));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->Device.Reserved5));
|
||||
break;
|
||||
|
||||
case Event:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Event"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Event.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "SignalCount", Object->Event.SignalCount));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Semaphore", Object->Event.Semaphore));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "LockCount", Object->Event.LockCount));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "ThreadId", Object->Event.ThreadId));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Event.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->Event.Reserved5));
|
||||
break;
|
||||
|
||||
case Method:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Method"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "NumParam", Object->Method.NumParam));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Length", Object->Method.Length));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "AmlOffset", Object->Method.AmlOffset));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->Method.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "AmlBase", Object->Method.AmlBase));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Method.Reserved4));
|
||||
break;
|
||||
|
||||
case Mutex:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Mutex"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "SyncLevel", Object->Mutex.SyncLevel));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Mutex.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Semaphore", Object->Mutex.Semaphore));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "LockCount", Object->Mutex.LockCount));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "ThreadId", Object->Mutex.ThreadId));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Mutex.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->Mutex.Reserved5));
|
||||
break;
|
||||
|
||||
case Region:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Region"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "SpaceId", Object->Region.SpaceId));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "AdrLenValid", Object->Region.AdrLenValid));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Address", Object->Region.Address));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Length", Object->Region.Length));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "AdrLoc", Object->Region.AdrLoc));
|
||||
break;
|
||||
|
||||
case Power:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "PowerResource"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->PowerResource.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->PowerResource.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->PowerResource.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->PowerResource.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "PowerResource", Object->PowerResource.PowerResource));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->PowerResource.Reserved5));
|
||||
break;
|
||||
|
||||
case Processor:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Processor"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Processor.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Processor.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->Processor.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Processor.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Processor", Object->Processor.Processor));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->Processor.Reserved5));
|
||||
break;
|
||||
|
||||
case Thermal:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "ThermalZone"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->ThermalZone.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->ThermalZone.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->ThermalZone.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->ThermalZone.Reserved4));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "ThermalZone", Object->ThermalZone.ThermalZone));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved5", Object->ThermalZone.Reserved5));
|
||||
break;
|
||||
|
||||
case BankField:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "BankField"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Access", Object->BankField.Access));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "LockRule", Object->BankField.LockRule));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "UpdateRule", Object->BankField.UpdateRule));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->BankField.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "DatLen", Object->BankField.DatLen));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "BitOffset", Object->BankField.BitOffset));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Offset", Object->BankField.Offset));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "BankVal", Object->BankField.BankVal));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Container", Object->BankField.Container));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "BankSelect", Object->BankField.BankSelect));
|
||||
break;
|
||||
|
||||
case IndexField:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "IndexField"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Access", Object->IndexField.Access));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "LockRule", Object->IndexField.LockRule));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "UpdateRule", Object->IndexField.UpdateRule));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->IndexField.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "DatLen", Object->IndexField.DatLen));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "BitOffset", Object->IndexField.BitOffset));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "IndexVal", Object->IndexField.IndexVal));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->IndexField.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Index", Object->IndexField.Index));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Data", Object->IndexField.Data));
|
||||
break;
|
||||
|
||||
case Lvalue:
|
||||
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %s\n", "ValType", "Lvalue"));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "OpCode", Object->Lvalue.OpCode));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved1", Object->Lvalue.Reserved1));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved2", Object->Lvalue.Reserved2));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved3", Object->Lvalue.Reserved3));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Ref", Object->Lvalue.Ref));
|
||||
DEBUG_PRINT (ACPI_INFO, ("%20s : %x\n", "Reserved4", Object->Lvalue.Reserved4));
|
||||
break;
|
||||
|
||||
case Alias:
|
||||
case DefField:
|
||||
case DefFieldDefn:
|
||||
case BankFieldDefn:
|
||||
case IndexFieldDefn:
|
||||
case If:
|
||||
case Else:
|
||||
case While:
|
||||
case Scope:
|
||||
case DefAny:
|
||||
default:
|
||||
|
||||
DEBUG_PRINT (ACPI_ERROR, ("*** No definition for this structure! ***\n"));
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user