FreeBSD/sys/contrib/dev/acpica/components/disassembler/dmresrcl2.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmUartSerialBusDescriptor
 *
 * 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 UART serial bus descriptor
 *
 ******************************************************************************/
AcpiDmUartSerialBusDescriptor
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 UART serial bus descriptor
AcpiDmUartSerialBusDescriptor 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 UART serial bus descriptor
static void
AcpiDmUartSerialBusDescriptor (
    ACPI_OP_WALK_INFO       *Info,
    AML_RESOURCE            *Resource,
    UINT32                  Length,
    UINT32                  Level)
{
    UINT32                  ResourceSourceOffset;
    char                    *DeviceName;
    AcpiDmIndent (Level);
    AcpiOsPrintf ("UartSerialBusV2 (0x%8.8X, %s, %s,\n",
        Resource->UartSerialBus.DefaultBaudRate,
        AcpiGbl_BpbDecode [ACPI_EXTRACT_3BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 4)],
        AcpiGbl_SbDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 2)]);
    AcpiDmIndent (Level + 1);
    AcpiOsPrintf ("0x%2.2X, %s, %s, %s,\n",
        Resource->UartSerialBus.LinesEnabled,
        AcpiGbl_EdDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 7)],
        AcpiGbl_PtDecode [ACPI_GET_3BIT_FLAG (Resource->UartSerialBus.Parity)],
        AcpiGbl_FcDecode [ACPI_GET_2BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags)]);
    AcpiDmIndent (Level + 1);
    AcpiOsPrintf ("0x%4.4X, 0x%4.4X, ",
        Resource->UartSerialBus.RxFifoSize,
        Resource->UartSerialBus.TxFifoSize);
    ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) +
        Resource->CommonSerialBus.TypeDataLength;
    DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset),
    AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX);
    AcpiOsPrintf (",\n");
    AcpiDmIndent (Level + 1);
    AcpiOsPrintf ("0x%2.2X, ", Resource->UartSerialBus.ResSourceIndex);
    AcpiOsPrintf ("%s, ",
        AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.Flags, 1)]);
    AcpiDmDescriptorName ();
    AcpiOsPrintf (", %s,\n",
        AcpiGbl_ShrDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.Flags, 2)]);
    AcpiDmIndent (Level + 1);
    AcpiDmDumpSerialBusVendorData (Resource, Level);
    AcpiOsPrintf (")\n");
#ifndef _KERNEL
    MpSaveSerialInfo (Info->MappingOp, Resource, DeviceName);
#endif
}
static void AcpiDmUartSerialBusDescriptor ( ACPI_OP_WALK_INFO * Info , AML_RESOURCE * Resource , UINT32 Length , UINT32 Level ) { UINT32 ResourceSourceOffset ; char * DeviceName ; AcpiDmIndent ( Level ) ; AcpiOsPrintf ( " \n " , Resource -> UartSerialBus . DefaultBaudRate , AcpiGbl_BpbDecode [ ACPI_EXTRACT_3BIT_FLAG ( Resource -> UartSerialBus . TypeSpecificFlags , 4 ) ] , AcpiGbl_SbDecode [ ACPI_EXTRACT_2BIT_FLAG ( Resource -> UartSerialBus . TypeSpecificFlags , 2 ) ] ) ; AcpiDmIndent ( Level + 1 ) ; AcpiOsPrintf ( " \n " , Resource -> UartSerialBus . LinesEnabled , AcpiGbl_EdDecode [ ACPI_EXTRACT_1BIT_FLAG ( Resource -> UartSerialBus . TypeSpecificFlags , 7 ) ] , AcpiGbl_PtDecode [ ACPI_GET_3BIT_FLAG ( Resource -> UartSerialBus . Parity ) ] , AcpiGbl_FcDecode [ ACPI_GET_2BIT_FLAG ( Resource -> UartSerialBus . TypeSpecificFlags ) ] ) ; AcpiDmIndent ( Level + 1 ) ; AcpiOsPrintf ( " " , Resource -> UartSerialBus . RxFifoSize , Resource -> UartSerialBus . TxFifoSize ) ; ResourceSourceOffset = sizeof ( AML_RESOURCE_COMMON_SERIALBUS ) + Resource -> CommonSerialBus . TypeDataLength ; DeviceName = ACPI_ADD_PTR ( char , Resource , ResourceSourceOffset ) , AcpiUtPrintString ( DeviceName , ACPI_UINT16_MAX ) ; AcpiOsPrintf ( " \n " ) ; AcpiDmIndent ( Level + 1 ) ; AcpiOsPrintf ( " " , Resource -> UartSerialBus . ResSourceIndex ) ; AcpiOsPrintf ( " " , AcpiGbl_ConsumeDecode [ ACPI_EXTRACT_1BIT_FLAG ( Resource -> UartSerialBus . Flags , 1 ) ] ) ; AcpiDmDescriptorName ( ) ; AcpiOsPrintf ( " \n " , AcpiGbl_ShrDecode [ ACPI_EXTRACT_1BIT_FLAG ( Resource -> UartSerialBus . Flags , 2 ) ] ) ; AcpiDmIndent ( Level + 1 ) ; AcpiDmDumpSerialBusVendorData ( Resource , Level ) ; AcpiOsPrintf ( " \n " ) ; #ifndef _KERNEL MpSaveSerialInfo ( Info -> MappingOp , Resource , DeviceName ) ; #endif }
FUNCTION:    AcpiDmUartSerialBusDescriptor
 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 : AcpiDmUartSerialBusDescriptor PARAMETERS : Info - Extra resource info Resource - Pointer to the resource descriptor Length - Length of the descriptor in bytes Level - Current source code indentation level
/* ConnectionSpeed, BitsPerByte, StopBits */ /* LinesInUse, IsBigEndian, Parity, FlowControl */ /* ReceiveBufferSize, TransmitBufferSize */ /* ResourceSource is a required field */ /* ResourceSourceIndex, ResourceUsage */ /* Insert a descriptor name */ /* Share */ /* Dump the vendor data */