[SCSI] ipr: Add new PCI-E IDs to device table
[linux/fpc-iii.git] / arch / mips / kernel / early_printk.c
blob304efdc5682f9776578eaa1f2ba402f549a06ecc
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2002, 2003, 06, 07 Ralf Baechle (ralf@linux-mips.org)
7 * Copyright (C) 2007 MIPS Technologies, Inc.
8 * written by Ralf Baechle (ralf@linux-mips.org)
9 */
10 #include <linux/console.h>
11 #include <linux/init.h>
13 extern void prom_putchar(char);
15 static void early_console_write(struct console *con, const char *s, unsigned n)
17 while (n-- && *s) {
18 if (*s == '\n')
19 prom_putchar('\r');
20 prom_putchar(*s);
21 s++;
25 static struct console early_console = {
26 .name = "early",
27 .write = early_console_write,
28 .flags = CON_PRINTBUFFER | CON_BOOT,
29 .index = -1
32 void __init setup_early_printk(void)
34 register_console(&early_console);
37 void __init disable_early_printk(void)
39 unregister_console(&early_console);