deps/acpica/source/compiler/aslbtypes.c
/*******************************************************************************
 *
 * FUNCTION:    AnFormatBtype
 *
 * PARAMETERS:  Btype               - Bitfield of ACPI types
 *              Buffer              - Where to put the ascii string
 *
 * RETURN:      None.
 *
 * DESCRIPTION: Convert a Btype to a string of ACPI types
 *
 ******************************************************************************/
AnFormatBtype
PARAMETERS:  Btype               - Bitfield of ACPI types
Buffer              - Where to put the ascii string

None.

Convert a Btype to a string of ACPI types
AnFormatBtype PARAMETERS : Btype - Bitfield of ACPI types Buffer - Where to put the ascii string None . Convert a Btype to a string of ACPI types
void
AnFormatBtype (
    char                    *Buffer,
    UINT32                  Btype)
{
    UINT32                  Type;
    BOOLEAN                 First = TRUE;
    *Buffer = 0;
    if (Btype == 0)
    {
        strcat (Buffer, "NoReturnValue");
        return;
    }
    for (Type = 1; Type <= ACPI_TYPE_EXTERNAL_MAX; Type++)
    {
        if (Btype & 0x00000001)
        {
            if (!First)
            {
                strcat (Buffer, "|");
            }
            First = FALSE;
            strcat (Buffer, AcpiUtGetTypeName (Type));
        }
        Btype >>= 1;
    }
    if (Btype & 0x00000001)
    {
        if (!First)
        {
            strcat (Buffer, "|");
        }
        First = FALSE;
        strcat (Buffer, "Reference");
    }
    Btype >>= 1;
    if (Btype & 0x00000001)
    {
        if (!First)
        {
            strcat (Buffer, "|");
        }
        First = FALSE;
        strcat (Buffer, "Resource");
    }
}
void AnFormatBtype ( char * Buffer , UINT32 Btype ) { UINT32 Type ; BOOLEAN First = TRUE ; * Buffer = 0 ; if ( Btype == 0 ) { strcat ( Buffer , " " ) ; return ; } for ( Type = 1 ; Type <= ACPI_TYPE_EXTERNAL_MAX ; Type ++ ) { if ( Btype & 0x00000001 ) { if ( ! First ) { strcat ( Buffer , " " ) ; } First = FALSE ; strcat ( Buffer , AcpiUtGetTypeName ( Type ) ) ; } Btype >>= 1 ; } if ( Btype & 0x00000001 ) { if ( ! First ) { strcat ( Buffer , " " ) ; } First = FALSE ; strcat ( Buffer , " " ) ; } Btype >>= 1 ; if ( Btype & 0x00000001 ) { if ( ! First ) { strcat ( Buffer , " " ) ; } First = FALSE ; strcat ( Buffer , " " ) ; } }
FUNCTION:    AnFormatBtype
 PARAMETERS:  Btype               - Bitfield of ACPI types
              Buffer              - Where to put the ascii string
FUNCTION : AnFormatBtype PARAMETERS : Btype - Bitfield of ACPI types Buffer - Where to put the ascii string