/* Read a single byte from the serial port. Returns 1 on success, 0 otherwise. When the function is succesfull, the character read is written into its argument c.  */
int pxa_tstc_dev(unsigned int uart_index)
/* Read a single byte from the serial port. Returns 1 on success, 0 otherwise. When the function is succesfull, the character read is written into its argument c.  */
int pxa_tstc_dev(unsigned int uart_index)
{
	switch (uart_index) {
		case FFUART_INDEX:
			return FFLSR & LSR_DR;
		case BTUART_INDEX:
			return BTLSR & LSR_DR;
		case STUART_INDEX:
			return STLSR & LSR_DR;
	}
	return -1;
}