FreeBSD/sys/contrib/dev/acpica/components/disassembler/dmresrcl2.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmGpioDescriptor
 *
 * PARAMETERS:  Info                - Extra resource info
 *              Resource            - Pointer to the resource descriptor
 *              Length              - Length of the descriptor in bytes
 *              Level               - Current source code indentation level
 *
 * RETURN:      None
 *
 * DESCRIPTION: Decode a GpioInt/GpioIo GPIO Interrupt/IO descriptor
 *
 ******************************************************************************/
AcpiDmGpioDescriptor
PARAMETERS:  Info                - Extra resource info
Resource            - Pointer to the resource descriptor
Length              - Length of the descriptor in bytes
Level               - Current source code indentation level

None


AcpiDmGpioDescriptor PARAMETERS : Info - Extra resource info Resource - Pointer to the resource descriptor Length - Length of the descriptor in bytes Level - Current source code indentation level None
void
AcpiDmGpioDescriptor (
    ACPI_OP_WALK_INFO       *Info,
    AML_RESOURCE            *Resource,
    UINT32                  Length,
    UINT32                  Level)
{
    UINT8                   ConnectionType;
    ConnectionType = Resource->Gpio.ConnectionType;
    switch (ConnectionType)
    {
    case AML_RESOURCE_GPIO_TYPE_INT:
        AcpiDmGpioIntDescriptor (Info, Resource, Length, Level);
        break;
    case AML_RESOURCE_GPIO_TYPE_IO:
        AcpiDmGpioIoDescriptor (Info, Resource, Length, Level);
        break;
    default:
        AcpiOsPrintf ("Unknown GPIO type\n");
        break;
    }
}
void AcpiDmGpioDescriptor ( ACPI_OP_WALK_INFO * Info , AML_RESOURCE * Resource , UINT32 Length , UINT32 Level ) { UINT8 ConnectionType ; ConnectionType = Resource -> Gpio . ConnectionType ; switch ( ConnectionType ) { case AML_RESOURCE_GPIO_TYPE_INT : AcpiDmGpioIntDescriptor ( Info , Resource , Length , Level ) ; break ; case AML_RESOURCE_GPIO_TYPE_IO : AcpiDmGpioIoDescriptor ( Info , Resource , Length , Level ) ; break ; default : AcpiOsPrintf ( " \n " ) ; break ; } }
FUNCTION:    AcpiDmGpioDescriptor
 PARAMETERS:  Info                - Extra resource info
              Resource            - Pointer to the resource descriptor
              Length              - Length of the descriptor in bytes
              Level               - Current source code indentation level
FUNCTION : AcpiDmGpioDescriptor PARAMETERS : Info - Extra resource info Resource - Pointer to the resource descriptor Length - Length of the descriptor in bytes Level - Current source code indentation level