/* Get to know the Rx FIFO length from the specified port.  */
long UARTFIFORxLength(unsigned long ulBase)
/* Get to know the Rx FIFO length from the specified port.  */
long UARTFIFORxLength(unsigned long ulBase)
{
    xASSERT(UARTBaseValid(ulBase));
    return((xHWREG(ulBase + UART_FSR) & UART_FSR_RXP_M) >> UART_FSR_RXP_S);
}