static void dec_3100_cons_init() { int kbd, crt, screen; kbd = crt = screen = 0; prom_findcons(&kbd, &crt, &screen); if (screen > 0) { #if NPM > 0 if (pm_cnattach() > 0) { dz_ibus_cnsetup(KN01_SYS_DZ); dzkbd_cnattach(NULL); return; } #endif printf("No framebuffer device configured: "); printf("using serial console\n"); } /* * Delay to allow PROM putchars to complete. * FIFO depth * character time, * character time = (1000000 / (defaultrate / 10)) */ DELAY(160000000 / 9600); /* XXX */ dz_ibus_cnsetup(KN01_SYS_DZ); dz_ibus_cnattach(kbd); }
static void dec_maxine_cons_init(void) { int kbd, crt, screen; kbd = crt = screen = 0; prom_findcons(&kbd, &crt, &screen); if (screen > 0) { #if NWSDISPLAY > 0 #if NXCFB > 0 if (crt == 3) { xcfb_cnattach((tc_addr_t)XINE_PHYS_CFB_START); dtkbd_cnattach(); return; } #endif if (tcfb_cnattach(crt) > 0) { dtkbd_cnattach(); return; } #endif printf("No framebuffer device configured for slot %d: ", crt); printf("using serial console\n"); } /* * Delay to allow PROM putchars to complete. * FIFO depth * character time, * character time = (1000000 / (defaultrate / 10)) */ DELAY(160000000 / 9600); /* XXX */ zs_ioasic_cnattach(ioasic_base, 0x100000, 1); }
static void dec_3maxplus_cons_init(void) { int kbd, crt, screen; kbd = crt = screen = 0; prom_findcons(&kbd, &crt, &screen); if (screen > 0) { #if NWSDISPLAY > 0 if (tcfb_cnattach(crt) > 0) { zs_ioasic_lk201_cnattach(ioasic_base, 0x180000, 0); return; } #endif printf("No framebuffer device configured for slot %d: ", crt); printf("using serial console\n"); } /* * Delay to allow PROM putchars to complete. * FIFO depth * character time, * character time = (1000000 / (defaultrate / 10)) */ DELAY(160000000 / 9600); /* XXX */ zs_ioasic_cnattach(ioasic_base, 0x180000, 1); }