sys/contrib/dev/acpica/source/compiler/dttemplate.c
/*******************************************************************************
 *
 * FUNCTION:    DtEmitDefinitionBlock
 *
 * PARAMETERS:  File                - An open file for the block
 *              Filename            - Filename for same, for error msg(s)
 *              Signature           - ACPI signature for the block
 *              Instance            - Used for multiple SSDTs in the same file
 *
 * RETURN:      Status from fprintf
 *
 * DESCRIPTION: Emit the raw ASL for a complete Definition Block (DSDT or SSDT)
 *
 * Note: The AMLFileName parameter for DefinitionBlock is left as a NULL
 * string. This allows the compiler to create the output AML filename from
 * the input filename.
 *
 ******************************************************************************/
DtEmitDefinitionBlock
PARAMETERS:  File                - An open file for the block
Filename            - Filename for same, for error msg(s)
Signature           - ACPI signature for the block
Instance            - Used for multiple SSDTs in the same file

Status from fprintf

Emit the raw ASL for a complete Definition Block (DSDT or SSDT)

The AMLFileName parameter for DefinitionBlock is left as a NULL
string. This allows the compiler to create the output AML filename from
the input filename.
DtEmitDefinitionBlock PARAMETERS : File - An open file for the block Filename - Filename for same for error msg ( s ) Signature - ACPI signature for the block Instance - Used for multiple SSDTs in the same file Status from fprintf Emit the raw ASL for a complete Definition Block ( DSDT or SSDT ) The AMLFileName parameter for DefinitionBlock is left as a NULL string . This allows the compiler to create the output AML filename from the input filename .
static int
DtEmitDefinitionBlock (
    FILE                    *File,
    char                    *Filename,
    char                    *Signature,
    UINT32                  Instance)
{
    int                     Status;
    Status = fprintf (File,
        "DefinitionBlock (\"\", \"%4.4s\", 2, \"Intel\", \"_%4.4s_%.2X\", 0x00000001)\n"
        "{\n"
        "    Method (%2.2s%.2X)\n"
        "    {\n"
        "    }\n"
        "}\n\n",
        Signature, Signature, Instance, Signature, Instance);
    if (Status < 0)
    {
        fprintf (stderr,
            "Could not write %4.4s to output file %s\n",
            Signature, Filename);
    }
    return (Status);
}
static int DtEmitDefinitionBlock ( FILE * File , char * Filename , char * Signature , UINT32 Instance ) { int Status ; Status = fprintf ( File , " \" \" \" \" \" \" \" \" \n " " \n " " \n " " \n " " \n " " \n \n " , Signature , Signature , Instance , Signature , Instance ) ; if ( Status < 0 ) { fprintf ( stderr , " \n " , Signature , Filename ) ; } return ( Status ) ; }
FUNCTION:    DtEmitDefinitionBlock
 PARAMETERS:  File                - An open file for the block
              Filename            - Filename for same, for error msg(s)
              Signature           - ACPI signature for the block
              Instance            - Used for multiple SSDTs in the same file
FUNCTION : DtEmitDefinitionBlock PARAMETERS : File - An open file for the block Filename - Filename for same for error msg ( s ) Signature - ACPI signature for the block Instance - Used for multiple SSDTs in the same file