FreeBSD/sys/contrib/dev/acpica/components/namespace/nsdumpdv.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiNsDumpOneDevice
 *
 * PARAMETERS:  Handle              - Node to be dumped
 *              Level               - Nesting level of the handle
 *              Context             - Passed into WalkNamespace
 *              ReturnValue         - Not used
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Dump a single Node that represents a device
 *              This procedure is a UserFunction called by AcpiNsWalkNamespace.
 *
 ******************************************************************************/
AcpiNsDumpOneDevice
PARAMETERS:  Handle              - Node to be dumped
Level               - Nesting level of the handle
Context             - Passed into WalkNamespace
ReturnValue         - Not used

Status

Dump a single Node that represents a device
This procedure is a UserFunction called by AcpiNsWalkNamespace.
AcpiNsDumpOneDevice PARAMETERS : Handle - Node to be dumped Level - Nesting level of the handle Context - Passed into WalkNamespace ReturnValue - Not used Status Dump a single Node that represents a device This procedure is a UserFunction called by AcpiNsWalkNamespace .
static ACPI_STATUS
AcpiNsDumpOneDevice (
    ACPI_HANDLE             ObjHandle,
    UINT32                  Level,
    void                    *Context,
    void                    **ReturnValue)
{
    ACPI_BUFFER             Buffer;
    ACPI_DEVICE_INFO        *Info;
    ACPI_STATUS             Status;
    UINT32                  i;
    ACPI_FUNCTION_NAME (NsDumpOneDevice);
    Status = AcpiNsDumpOneObject (ObjHandle, Level, Context, ReturnValue);
    Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
    Status = AcpiGetObjectInfo (ObjHandle, &Buffer);
    if (ACPI_SUCCESS (Status))
    {
        Info = Buffer.Pointer;
        for (i = 0; i < Level; i++)
        {
            ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, " "));
        }
        ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES,
            "    HID: %s, ADR: %8.8X%8.8X, Status: %X\n",
            Info->HardwareId.Value, ACPI_FORMAT_UINT64 (Info->Address),
            Info->CurrentStatus));
        ACPI_FREE (Info);
    }
    return (Status);
}
static ACPI_STATUS AcpiNsDumpOneDevice ( ACPI_HANDLE ObjHandle , UINT32 Level , void * Context , void * * ReturnValue ) { ACPI_BUFFER Buffer ; ACPI_DEVICE_INFO * Info ; ACPI_STATUS Status ; UINT32 i ; ACPI_FUNCTION_NAME ( NsDumpOneDevice ) ; Status = AcpiNsDumpOneObject ( ObjHandle , Level , Context , ReturnValue ) ; Buffer . Length = ACPI_ALLOCATE_LOCAL_BUFFER ; Status = AcpiGetObjectInfo ( ObjHandle , & Buffer ) ; if ( ACPI_SUCCESS ( Status ) ) { Info = Buffer . Pointer ; for ( i = 0 ; i < Level ; i ++ ) { ACPI_DEBUG_PRINT_RAW ( ( ACPI_DB_TABLES , " " ) ) ; } ACPI_DEBUG_PRINT_RAW ( ( ACPI_DB_TABLES , " \n " , Info -> HardwareId . Value , ACPI_FORMAT_UINT64 ( Info -> Address ) , Info -> CurrentStatus ) ) ; ACPI_FREE ( Info ) ; } return ( Status ) ; }
FUNCTION:    AcpiNsDumpOneDevice
 PARAMETERS:  Handle              - Node to be dumped
              Level               - Nesting level of the handle
              Context             - Passed into WalkNamespace
              ReturnValue         - Not used
FUNCTION : AcpiNsDumpOneDevice PARAMETERS : Handle - Node to be dumped Level - Nesting level of the handle Context - Passed into WalkNamespace ReturnValue - Not used