FreeBSD/sys/contrib/dev/acpica/compiler/aslpredef.c
/*******************************************************************************
 *
 * FUNCTION:    ApDisplayReservedNames
 *
 * PARAMETERS:  None
 *
 * RETURN:      None
 *
 * DESCRIPTION: Dump information about the ACPI predefined names and predefined
 *              resource descriptor names.
 *
 ******************************************************************************/


None

Dump information about the ACPI predefined names and predefined
resource descriptor names.
None Dump information about the ACPI predefined names and predefined resource descriptor names .
void
ApDisplayReservedNames (
    void)
{
    const ACPI_PREDEFINED_INFO  *ThisName;
    UINT32                      Count;
    UINT32                      NumTypes;
    printf ("\nPredefined Name Information\n\n");
    Count = 0;
    ThisName = AcpiGbl_PredefinedMethods;
    while (ThisName->Info.Name[0])
    {
        AcpiUtDisplayPredefinedMethod (MsgBuffer, ThisName, FALSE);
        Count++;
        ThisName = AcpiUtGetNextPredefinedMethod (ThisName);
    }
    printf ("%u Predefined Names are recognized\n", Count);
    printf ("\nPredefined Names for Resource Descriptor Fields\n\n");
    Count = 0;
    ThisName = AcpiGbl_ResourceNames;
    while (ThisName->Info.Name[0])
    {
        NumTypes = AcpiUtGetResourceBitWidth (MsgBuffer,
            ThisName->Info.ArgumentList);
        printf ("%4.4s    Field is %s bits wide%s\n",
            ThisName->Info.Name, MsgBuffer,
            (NumTypes > 1) ? " (depending on descriptor type)" : "");
        Count++;
        ThisName++;
    }
    printf ("%u Resource Descriptor Field Names are recognized\n", Count);
    printf ("\nPredefined Scope/Device Names (automatically created at root)\n\n");
    ThisName = AcpiGbl_ScopeNames;
    while (ThisName->Info.Name[0])
    {
        printf ("%4.4s    Scope/Device\n", ThisName->Info.Name);
        ThisName++;
    }
}
void ApDisplayReservedNames ( void ) { const ACPI_PREDEFINED_INFO * ThisName ; UINT32 Count ; UINT32 NumTypes ; printf ( " \n \n \n " ) ; Count = 0 ; ThisName = AcpiGbl_PredefinedMethods ; while ( ThisName -> Info . Name [ 0 ] ) { AcpiUtDisplayPredefinedMethod ( MsgBuffer , ThisName , FALSE ) ; Count ++ ; ThisName = AcpiUtGetNextPredefinedMethod ( ThisName ) ; } printf ( " \n " , Count ) ; printf ( " \n \n \n " ) ; Count = 0 ; ThisName = AcpiGbl_ResourceNames ; while ( ThisName -> Info . Name [ 0 ] ) { NumTypes = AcpiUtGetResourceBitWidth ( MsgBuffer , ThisName -> Info . ArgumentList ) ; printf ( " \n " , ThisName -> Info . Name , MsgBuffer , ( NumTypes > 1 ) ? " " : " " ) ; Count ++ ; ThisName ++ ; } printf ( " \n " , Count ) ; printf ( " \n \n \n " ) ; ThisName = AcpiGbl_ScopeNames ; while ( ThisName -> Info . Name [ 0 ] ) { printf ( " \n " , ThisName -> Info . Name ) ; ThisName ++ ; } }
FUNCTION:    ApDisplayReservedNames
 PARAMETERS:  None
FUNCTION : ApDisplayReservedNames PARAMETERS : None
/*
     * Predefined names/methods
     */ /*
     * Resource Descriptor names
     */ /*
     * Predefined scope names
     */