/* Detect whether specific FIFO is full or not. */
BOOLEAN SerialFifoFull(IN SERIAL_DEV_FIFO *Fifo)
/* Detect whether specific FIFO is full or not. */
BOOLEAN SerialFifoFull(IN SERIAL_DEV_FIFO *Fifo)
{
  return (BOOLEAN)(((Fifo->Tail + 1) % SERIAL_MAX_FIFO_SIZE) == Fifo->Head);
}