static int bsp_in_char(void) { int tmp; if (dbg_uart == NULL) return EOF; while ((tmp = apbuart_inbyte_nonblocking(dbg_uart)) < 0) ; return tmp; }
static int leon3_console_pollRead(int minor) { struct apbuart_priv *uart = leon3_console_get_uart(minor); return apbuart_inbyte_nonblocking(uart->regs); }
static int apbuart_poll_read(rtems_termios_device_context *base) { struct apbuart_context *uart = (struct apbuart_context *) base; return apbuart_inbyte_nonblocking(uart->regs); }
static int read_polled(rtems_termios_device_context *base) { struct apbuart_priv *uart = base_get_priv(base); return apbuart_inbyte_nonblocking(uart->regs); }