FreeBSD/sys/contrib/dev/acpica/compiler/aslmapoutput.c
/*******************************************************************************
 *
 * FUNCTION:    MpEmitMappingInfo
 *
 * PARAMETERS:  None
 *
 * RETURN:      None
 *
 * DESCRIPTION: External interface.
 *              Map file has already been opened. Emit all of the collected
 *              hardware mapping information. Includes: GPIO information,
 *              Serial information, and a dump of the entire ACPI device tree.
 *
 ******************************************************************************/


None

External interface.
Map file has already been opened. Emit all of the collected
hardware mapping information. Includes: GPIO information,
Serial information, and a dump of the entire ACPI device tree.
None External interface . Map file has already been opened . Emit all of the collected hardware mapping information . Includes : GPIO information Serial information and a dump of the entire ACPI device tree .
void
MpEmitMappingInfo (
    void)
{
    if (!Gbl_MapfileFlag)
    {
        return;
    }
    if (!Gbl_GpioList)
    {
        FlPrintFile (ASL_FILE_MAP_OUTPUT,
            "\nNo GPIO devices found\n");
    }
    if (!Gbl_SerialList)
    {
        FlPrintFile (ASL_FILE_MAP_OUTPUT,
            "\nNo Serial devices found (I2C/SPI/UART)\n");
    }
    if (!Gbl_GpioList && !Gbl_SerialList)
    {
        return;
    }
    FlPrintFile (ASL_FILE_MAP_OUTPUT, "\nResource Descriptor Connectivity Map\n");
    FlPrintFile (ASL_FILE_MAP_OUTPUT,   "------------------------------------\n");
    MpEmitGpioInfo ();
    MpEmitSerialInfo ();
    MpEmitDeviceTree ();
    Gbl_SerialList = NULL;
    Gbl_GpioList = NULL;
}
void MpEmitMappingInfo ( void ) { if ( ! Gbl_MapfileFlag ) { return ; } if ( ! Gbl_GpioList ) { FlPrintFile ( ASL_FILE_MAP_OUTPUT , " \n \n " ) ; } if ( ! Gbl_SerialList ) { FlPrintFile ( ASL_FILE_MAP_OUTPUT , " \n \n " ) ; } if ( ! Gbl_GpioList && ! Gbl_SerialList ) { return ; } FlPrintFile ( ASL_FILE_MAP_OUTPUT , " \n \n " ) ; FlPrintFile ( ASL_FILE_MAP_OUTPUT , " \n " ) ; MpEmitGpioInfo ( ) ; MpEmitSerialInfo ( ) ; MpEmitDeviceTree ( ) ; Gbl_SerialList = NULL ; Gbl_GpioList = NULL ; }
FUNCTION:    MpEmitMappingInfo
 PARAMETERS:  None
FUNCTION : MpEmitMappingInfo PARAMETERS : None
/* Mapfile option enabled? */ /* Headers */ /* Emit GPIO and Serial descriptors, then entire ACPI device tree */ /* Clear the lists - no need to free memory here */