int arch_defterm_getc(u8 *ch) { if (!uart_8250_lowlevel_can_getc(&sun4i_uart_port)) { return VMM_EFAIL; } *ch = uart_8250_lowlevel_getc(&sun4i_uart_port); return VMM_OK; }
static int uart8250_defterm_getc(u8 *ch) { if (!uart_8250_lowlevel_can_getc(&uart8250_port)) { return VMM_EFAIL; } *ch = uart_8250_lowlevel_getc(&uart8250_port); return VMM_OK; }