FreeBSD/sys/contrib/dev/acpica/compiler/dttable.c
/******************************************************************************
 *
 * FUNCTION:    DtCompileFacs
 *
 * PARAMETERS:  PFieldList          - Current field list pointer
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Compile FACS.
 *
 *****************************************************************************/
DtCompileFacs
PARAMETERS:  PFieldList          - Current field list pointer

Status

Compile FACS.
DtCompileFacs PARAMETERS : PFieldList - Current field list pointer Status Compile FACS .
ACPI_STATUS
DtCompileFacs (
    DT_FIELD                **PFieldList)
{
    DT_SUBTABLE             *Subtable;
    UINT8                   *ReservedBuffer;
    ACPI_STATUS             Status;
    UINT32                  ReservedSize;
    Status = DtCompileTable (PFieldList, AcpiDmTableInfoFacs,
        &Gbl_RootTable, TRUE);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    ReservedSize = (UINT32) sizeof (((ACPI_TABLE_FACS *) NULL)->Reserved1);
    ReservedBuffer = UtLocalCalloc (ReservedSize);
    DtCreateSubtable (ReservedBuffer, ReservedSize, &Subtable);
    ACPI_FREE (ReservedBuffer);
    DtInsertSubtable (Gbl_RootTable, Subtable);
    return (AE_OK);
}
ACPI_STATUS DtCompileFacs ( DT_FIELD * * PFieldList ) { DT_SUBTABLE * Subtable ; UINT8 * ReservedBuffer ; ACPI_STATUS Status ; UINT32 ReservedSize ; Status = DtCompileTable ( PFieldList , AcpiDmTableInfoFacs , & Gbl_RootTable , TRUE ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } ReservedSize = ( UINT32 ) sizeof ( ( ( ACPI_TABLE_FACS * ) NULL ) -> Reserved1 ) ; ReservedBuffer = UtLocalCalloc ( ReservedSize ) ; DtCreateSubtable ( ReservedBuffer , ReservedSize , & Subtable ) ; ACPI_FREE ( ReservedBuffer ) ; DtInsertSubtable ( Gbl_RootTable , Subtable ) ; return ( AE_OK ) ; }
FUNCTION:    DtCompileFacs
 PARAMETERS:  PFieldList          - Current field list pointer
FUNCTION : DtCompileFacs PARAMETERS : PFieldList - Current field list pointer
/* Large FACS reserved area at the end of the table */