ACPI 5.0/iASL: Update for Uart/_SLV field

Needed to attach the _SLV name to one of the existing (unnamed) fields
of the UartSerialBus parse tree.
This commit is contained in:
Robert Moore 2011-08-11 10:29:16 -07:00 committed by Lin Ming
parent 5c281d515c
commit 0044a4c4aa

View File

@ -1179,6 +1179,16 @@ RsDoUartSerialBusDescriptor (
case 11: /* Resource Usage (consumer/producer) */
RsSetFlagBits (&Descriptor->UartSerialBus.Flags, InitializerOp, 1, 1);
/*
* Slave Mode [Flag] (_SLV)
*
* Note: There is no SlaveMode argument to the UartSerialBus macro, but
* we add this name anyway to allow the flag to be set by ASL in the
* rare case where there is a slave mode associated with the UART.
*/
RsCreateBitField (InitializerOp, ACPI_RESTAG_SLAVEMODE,
CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.Flags), 0);
break;
case 12: /* ResourceTag (Descriptor Name) */
@ -1199,15 +1209,5 @@ RsDoUartSerialBusDescriptor (
InitializerOp = RsCompleteNodeAndGetNext (InitializerOp);
}
/*
* Slave Mode [Flag] (_SLV)
*
* Note: There is no SlaveMode argument to the UartSerialBus macro, but
* we add this name anyway to allow the flag to be set by ASL in the
* rare case where there is a slave mode associated with the UART.
*/
RsCreateBitField (InitializerOp, ACPI_RESTAG_SLAVEMODE,
CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.Flags), 0);
return (Rnode);
}