/* kbd_input.h -- one byte of console input, from the serial line or a * keyboard (PS/2, USB boot keyboard, virtio keyboard). Both systems' * consoles read through it: v3's (kernel/src/repl.c) and the v4 boot's * (kernel/src/v4/sk_v4.c). docs/v4.0.0/STICK.md 5.4. */ #ifndef STARKERNEL_KBD_INPUT_H #define STARKERNEL_KBD_INPUT_H /* One raw byte from the serial line or a keyboard, non-blocking; -1 when * neither has one. While a USB keyboard runs, its xHCI event ring is serviced * once per timer tick here. Alt+TAB toggles the framebuffer's graphics/text * view and types nothing. */ int sk_input_getc(void); /* Read and drop every byte and key that is waiting. */ void sk_input_drop(void); #endif /* STARKERNEL_KBD_INPUT_H */