void wscninit(struct consdev *cp) { static int initted = 0; if (initted) return; initted = 1; wscn_video_init(); wscn_input_init(0); }
void pckbc_release_console(void) { #if defined(__i386__) || defined(__amd64__) /* * If there is no keyboard present, yet we are the console, * we might be on a legacy-free PC where the PS/2 emulated * keyboard was elected as console, but went away as soon * as the USB controller drivers attached. * * In that case, we want to release ourselves from console * duties, unless we have been able to attach a mouse, * which would mean this is a real PS/2 controller * afterwards. */ if (pckbc_console != 0) { extern void wscn_input_init(int); pckbc_console = 0; wscn_input_init(1); } #endif }