FreeBSD/sys/contrib/dev/acpica/components/disassembler/dmresrc.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmBitList
 *
 * PARAMETERS:  Mask            - 16-bit value corresponding to 16 interrupt
 *                                or DMA values
 *
 * RETURN:      None
 *
 * DESCRIPTION: Dump a bit mask as a list of individual interrupt/DMA levels.
 *
 ******************************************************************************/
AcpiDmBitList
PARAMETERS:  Mask            - 16-bit value corresponding to 16 interrupt
or DMA values

None

Dump a bit mask as a list of individual interrupt/DMA levels.
AcpiDmBitList PARAMETERS : Mask - 16 - bit value corresponding to 16 interrupt or DMA values None Dump a bit mask as a list of individual interrupt / DMA levels .
void
AcpiDmBitList (
    UINT16                  Mask)
{
    UINT32                  i;
    BOOLEAN                 Previous = FALSE;
    AcpiOsPrintf ("{");
    for (i = 0; i < 16; i++)
    {
        if (Mask & 1)
        {
            if (Previous)
            {
                AcpiOsPrintf (",");
            }
            Previous = TRUE;
            AcpiOsPrintf ("%u", i);
        }
        Mask >>= 1;
    }
    AcpiOsPrintf ("}\n");
}
void AcpiDmBitList ( UINT16 Mask ) { UINT32 i ; BOOLEAN Previous = FALSE ; AcpiOsPrintf ( " " ) ; for ( i = 0 ; i < 16 ; i ++ ) { if ( Mask & 1 ) { if ( Previous ) { AcpiOsPrintf ( " " ) ; } Previous = TRUE ; AcpiOsPrintf ( " " , i ) ; } Mask >>= 1 ; } AcpiOsPrintf ( " \n " ) ; }
FUNCTION:    AcpiDmBitList
 PARAMETERS:  Mask            - 16-bit value corresponding to 16 interrupt
                                or DMA values
FUNCTION : AcpiDmBitList PARAMETERS : Mask - 16 - bit value corresponding to 16 interrupt or DMA values
/* Open the initializer list */ /* Examine each bit */ /* Only interested in bits that are set to 1 */ /* Close list */