2 * Wrap-around code for a console using the
3 * DECstation PROM io-routines.
5 * Copyright (c) 1998 Harald Koerfgen
9 #include <linux/major.h>
10 #include <linux/ptrace.h>
11 #include <linux/init.h>
12 #include <linux/console.h>
15 #include <asm/dec/prom.h>
17 static void prom_console_write(struct console *co, const char *s,
23 * Now, do each character
25 for (i = 0; i < count; i++) {
27 prom_printf("%c", 13);
28 prom_printf("%c", *s++);
32 static int __init prom_console_setup(struct console *co, char *options)
37 static kdev_t prom_console_device(struct console *c)
39 return MKDEV(TTY_MAJOR, 64 + c->index);
42 static struct console sercons =
45 .write = prom_console_write,
46 .device = prom_console_device,
47 .setup = prom_console_setup,
48 .flags = CON_PRINTBUFFER,
56 long __init prom_console_init(long kmem_start, long kmem_end)
58 register_console(&sercons);