FreeBSD/sys/contrib/dev/acpica/components/resources/rsaddr.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiRsSetAddressCommon
 *
 * PARAMETERS:  Aml                 - Pointer to the AML resource descriptor
 *              Resource            - Pointer to the internal resource struct
 *
 * RETURN:      None
 *
 * DESCRIPTION: Convert common flag fields from a resource descriptor to an
 *              AML descriptor
 *
 ******************************************************************************/
AcpiRsSetAddressCommon
PARAMETERS:  Aml                 - Pointer to the AML resource descriptor
Resource            - Pointer to the internal resource struct

None

Convert common flag fields from a resource descriptor to an
AML descriptor
AcpiRsSetAddressCommon PARAMETERS : Aml - Pointer to the AML resource descriptor Resource - Pointer to the internal resource struct None Convert common flag fields from a resource descriptor to an AML descriptor
void
AcpiRsSetAddressCommon (
    AML_RESOURCE            *Aml,
    ACPI_RESOURCE           *Resource)
{
    ACPI_FUNCTION_ENTRY ();
    (void) AcpiRsConvertResourceToAml (
        Resource, Aml, AcpiRsConvertGeneralFlags);
    if (Resource->Data.Address.ResourceType == ACPI_MEMORY_RANGE)
    {
        (void) AcpiRsConvertResourceToAml (
            Resource, Aml, AcpiRsConvertMemFlags);
    }
    else if (Resource->Data.Address.ResourceType == ACPI_IO_RANGE)
    {
        (void) AcpiRsConvertResourceToAml (
            Resource, Aml, AcpiRsConvertIoFlags);
    }
    else
    {
        Aml->Address.SpecificFlags =
            Resource->Data.Address.Info.TypeSpecific;
    }
}
void AcpiRsSetAddressCommon ( AML_RESOURCE * Aml , ACPI_RESOURCE * Resource ) { ACPI_FUNCTION_ENTRY ( ) ; ( void ) AcpiRsConvertResourceToAml ( Resource , Aml , AcpiRsConvertGeneralFlags ) ; if ( Resource -> Data . Address . ResourceType == ACPI_MEMORY_RANGE ) { ( void ) AcpiRsConvertResourceToAml ( Resource , Aml , AcpiRsConvertMemFlags ) ; } else if ( Resource -> Data . Address . ResourceType == ACPI_IO_RANGE ) { ( void ) AcpiRsConvertResourceToAml ( Resource , Aml , AcpiRsConvertIoFlags ) ; } else { Aml -> Address . SpecificFlags = Resource -> Data . Address . Info . TypeSpecific ; } }
FUNCTION:    AcpiRsSetAddressCommon
 PARAMETERS:  Aml                 - Pointer to the AML resource descriptor
              Resource            - Pointer to the internal resource struct
FUNCTION : AcpiRsSetAddressCommon PARAMETERS : Aml - Pointer to the AML resource descriptor Resource - Pointer to the internal resource struct
/* Set the Resource Type and General Flags */ /* Set the Type-Specific Flags (Memory and I/O descriptors only) */ /* Generic resource type, just copy the TypeSpecific byte */