sys/contrib/dev/acpica/source/compiler/dttemplate.c
/*******************************************************************************
 *
 * FUNCTION:    DtCreateAllTemplates
 *
 * PARAMETERS:  None
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Create all currently defined template files
 *
 ******************************************************************************/


Status

Create all currently defined template files
Status Create all currently defined template files
static ACPI_STATUS
DtCreateAllTemplates (
    void)
{
    const ACPI_DMTABLE_DATA *TableData;
    ACPI_STATUS             Status;
    fprintf (stderr, "Creating all supported Template files\n");
    for (TableData = AcpiDmTableData; TableData->Signature; TableData++)
    {
        if (TableData->Template)
        {
            Status = DtCreateOneTemplate (TableData->Signature,
                0, TableData);
            if (ACPI_FAILURE (Status))
            {
                return (Status);
            }
        }
    }
    Status = DtCreateOneTemplate (ACPI_SIG_DSDT, 0, NULL);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    Status = DtCreateOneTemplate (ACPI_SIG_SSDT, 0, NULL);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    Status = DtCreateOneTemplate (ACPI_SIG_OSDT, 0, NULL);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    Status = DtCreateOneTemplate (ACPI_SIG_FACS, 0, NULL);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    Status = DtCreateOneTemplate (ACPI_RSDP_NAME, 0, NULL);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    return (AE_OK);
}
static ACPI_STATUS DtCreateAllTemplates ( void ) { const ACPI_DMTABLE_DATA * TableData ; ACPI_STATUS Status ; fprintf ( stderr , " \n " ) ; for ( TableData = AcpiDmTableData ; TableData -> Signature ; TableData ++ ) { if ( TableData -> Template ) { Status = DtCreateOneTemplate ( TableData -> Signature , 0 , TableData ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } } } Status = DtCreateOneTemplate ( ACPI_SIG_DSDT , 0 , NULL ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } Status = DtCreateOneTemplate ( ACPI_SIG_SSDT , 0 , NULL ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } Status = DtCreateOneTemplate ( ACPI_SIG_OSDT , 0 , NULL ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } Status = DtCreateOneTemplate ( ACPI_SIG_FACS , 0 , NULL ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } Status = DtCreateOneTemplate ( ACPI_RSDP_NAME , 0 , NULL ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } return ( AE_OK ) ; }
FUNCTION:    DtCreateAllTemplates
 PARAMETERS:  None
FUNCTION : DtCreateAllTemplates PARAMETERS : None
/* Walk entire ACPI table data structure */ /* If table has a template, create the template file */ /*
     * Create the special ACPI tables:
     * 1) DSDT/SSDT are AML tables, not data tables
     * 2) FACS and RSDP have non-standard headers
     */