sys/contrib/dev/acpica/source/components/disassembler/dmresrcl2.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmGpioIoDescriptor
 *
 * 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 GPIO I/O descriptor
 *
 ******************************************************************************/
AcpiDmGpioIoDescriptor
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

Decode a GPIO I/O descriptor
AcpiDmGpioIoDescriptor 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 Decode a GPIO I / O descriptor
static void
AcpiDmGpioIoDescriptor (
    ACPI_OP_WALK_INFO       *Info,
    AML_RESOURCE            *Resource,
    UINT32                  Length,
    UINT32                  Level)
{
    AcpiDmIndent (Level);
    AcpiOsPrintf ("GpioIo (%s, ",
        AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Gpio.IntFlags, 3)]);
    if (Resource->Gpio.PinConfig <= 3)
    {
        AcpiOsPrintf ("%s, ",
            AcpiGbl_PpcDecode[Resource->Gpio.PinConfig]);
    }
    else
    {
        AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.PinConfig);
    }
    AcpiOsPrintf ("0x%4.4X, ", Resource->Gpio.DebounceTimeout);
    AcpiOsPrintf ("0x%4.4X, ", Resource->Gpio.DriveStrength);
    AcpiOsPrintf ("%s,\n",
        AcpiGbl_IorDecode [ACPI_GET_2BIT_FLAG (Resource->Gpio.IntFlags)]);
    AcpiDmGpioCommon (Info, Resource, Level);
}
static void AcpiDmGpioIoDescriptor ( ACPI_OP_WALK_INFO * Info , AML_RESOURCE * Resource , UINT32 Length , UINT32 Level ) { AcpiDmIndent ( Level ) ; AcpiOsPrintf ( " " , AcpiGbl_ShrDecode [ ACPI_EXTRACT_2BIT_FLAG ( Resource -> Gpio . IntFlags , 3 ) ] ) ; if ( Resource -> Gpio . PinConfig <= 3 ) { AcpiOsPrintf ( " " , AcpiGbl_PpcDecode [ Resource -> Gpio . PinConfig ] ) ; } else { AcpiOsPrintf ( " " , Resource -> Gpio . PinConfig ) ; } AcpiOsPrintf ( " " , Resource -> Gpio . DebounceTimeout ) ; AcpiOsPrintf ( " " , Resource -> Gpio . DriveStrength ) ; AcpiOsPrintf ( " \n " , AcpiGbl_IorDecode [ ACPI_GET_2BIT_FLAG ( Resource -> Gpio . IntFlags ) ] ) ; AcpiDmGpioCommon ( Info , Resource , Level ) ; }
FUNCTION:    AcpiDmGpioIoDescriptor
 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 : AcpiDmGpioIoDescriptor PARAMETERS : Info - Extra resource info Resource - Pointer to the resource descriptor Length - Length of the descriptor in bytes Level - Current source code indentation level
/* Dump the GpioIo-specific portion of the descriptor */ /* Shared, PinConfig */ /* DebounceTimeout, DriveStrength, IoRestriction */ /* Dump the GpioInt/GpioIo common portion of the descriptor */