/* Get to know the Tx FIFO length from the specified port.  */
long UARTFIFOTxLength(unsigned long ulBase)
/* Get to know the Tx FIFO length from the specified port.  */
long UARTFIFOTxLength(unsigned long ulBase)
{
    xASSERT(UARTBaseValid(ulBase));
    return((xHWREG(ulBase + UART_FSR) & UART_FSR_TXP_M) >> UART_FSR_TXP_S);
}