sys/contrib/dev/acpica/source/compiler/aslmapoutput.c
/*******************************************************************************
 *
 * FUNCTION:    MpEmitOneDevice
 *
 * PARAMETERS:  ACPI_NAMESPACE_WALK callback
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Emit information about one ACPI device in the namespace. Used
 *              during dump of all device objects within the namespace.
 *
 ******************************************************************************/


Status

Emit information about one ACPI device in the namespace. Used
during dump of all device objects within the namespace.
Status Emit information about one ACPI device in the namespace . Used during dump of all device objects within the namespace .
static ACPI_STATUS
MpEmitOneDevice (
    ACPI_HANDLE             ObjHandle,
    UINT32                  NestingLevel,
    void                    *Context,
    void                    **ReturnValue)
{
    char                    *DevicePathname;
    char                    *DdnString;
    char                    *HidString;
    const AH_DEVICE_ID      *HidInfo;
    DevicePathname = AcpiNsGetExternalPathname (
        ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle));
    FlPrintFile (ASL_FILE_MAP_OUTPUT, "%-32s", DevicePathname);
    HidString = MpGetHidValue (
        ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle));
    FlPrintFile (ASL_FILE_MAP_OUTPUT, "%8s", HidString);
    HidInfo = AcpiAhMatchHardwareId (HidString);
    if (HidInfo)
    {
        FlPrintFile (ASL_FILE_MAP_OUTPUT, "    // %s",
            HidInfo->Description);
    }
    else if ((DdnString = MpGetDdnValue (DevicePathname)))
    {
        FlPrintFile (ASL_FILE_MAP_OUTPUT, "    // %s (_DDN)", DdnString);
    }
    FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n");
    ACPI_FREE (DevicePathname);
    return (AE_OK);
}
static ACPI_STATUS MpEmitOneDevice ( ACPI_HANDLE ObjHandle , UINT32 NestingLevel , void * Context , void * * ReturnValue ) { char * DevicePathname ; char * DdnString ; char * HidString ; const AH_DEVICE_ID * HidInfo ; DevicePathname = AcpiNsGetExternalPathname ( ACPI_CAST_PTR ( ACPI_NAMESPACE_NODE , ObjHandle ) ) ; FlPrintFile ( ASL_FILE_MAP_OUTPUT , " " , DevicePathname ) ; HidString = MpGetHidValue ( ACPI_CAST_PTR ( ACPI_NAMESPACE_NODE , ObjHandle ) ) ; FlPrintFile ( ASL_FILE_MAP_OUTPUT , " " , HidString ) ; HidInfo = AcpiAhMatchHardwareId ( HidString ) ; if ( HidInfo ) { FlPrintFile ( ASL_FILE_MAP_OUTPUT , " " , HidInfo -> Description ) ; } else if ( ( DdnString = MpGetDdnValue ( DevicePathname ) ) ) { FlPrintFile ( ASL_FILE_MAP_OUTPUT , " " , DdnString ) ; } FlPrintFile ( ASL_FILE_MAP_OUTPUT , " \n " ) ; ACPI_FREE ( DevicePathname ) ; return ( AE_OK ) ; }
FUNCTION:    MpEmitOneDevice
 PARAMETERS:  ACPI_NAMESPACE_WALK callback
FUNCTION : MpEmitOneDevice PARAMETERS : ACPI_NAMESPACE_WALK callback
/* Device pathname */ /* _HID or _DDN */