FreeBSD/sys/contrib/dev/acpica/compiler/aslrestype2s.c
/*******************************************************************************
 *
 * FUNCTION:    RsGetInterruptDataLength
 *
 * PARAMETERS:  InitializerOp       - Current parse op, start of the resource
 *                                    descriptor
 *
 * RETURN:      Length of the interrupt data list
 *
 * DESCRIPTION: Get the length of a list of interrupt DWORDs for the GPIO
 *              descriptors.
 *
 ******************************************************************************/
RsGetInterruptDataLength
PARAMETERS:  InitializerOp       - Current parse op, start of the resource
descriptor

Length of the interrupt data list

Get the length of a list of interrupt DWORDs for the GPIO
descriptors.
RsGetInterruptDataLength PARAMETERS : InitializerOp - Current parse op start of the resource descriptor Length of the interrupt data list Get the length of a list of interrupt DWORDs for the GPIO descriptors .
static UINT16
RsGetInterruptDataLength (
    ACPI_PARSE_OBJECT       *InitializerOp)
{
    UINT16                  InterruptLength;
    UINT32                  i;
    InterruptLength = 0;
    for (i = 0; InitializerOp; i++)
    {
        InitializerOp = ASL_GET_PEER_NODE (InitializerOp);
        if (i >= 10)
        {
            InterruptLength += 2;
        }
    }
    return (InterruptLength);
}
static UINT16 RsGetInterruptDataLength ( ACPI_PARSE_OBJECT * InitializerOp ) { UINT16 InterruptLength ; UINT32 i ; InterruptLength = 0 ; for ( i = 0 ; InitializerOp ; i ++ ) { InitializerOp = ASL_GET_PEER_NODE ( InitializerOp ) ; if ( i >= 10 ) { InterruptLength += 2 ; } } return ( InterruptLength ) ; }
FUNCTION:    RsGetInterruptDataLength
 PARAMETERS:  InitializerOp       - Current parse op, start of the resource
                                    descriptor
FUNCTION : RsGetInterruptDataLength PARAMETERS : InitializerOp - Current parse op start of the resource descriptor
/* Count the interrupt numbers */ /* Interrupt list starts at offset 10 (Gpio descriptors) */