1 --- linux-mips-cvs/drivers/char/serial.c 2004-12-27 05:13:43.000000000 +0100
2 +++ linux-broadcom/drivers/char/serial.c 2005-01-31 13:13:14.000000000 +0100
4 return inb(info->port+1);
8 + readb((unsigned long) info->iomem_base +
9 + (UART_SCR<<info->iomem_reg_shift));
11 return readb((unsigned long) info->iomem_base +
12 (offset<<info->iomem_reg_shift));
16 writeb(value, (unsigned long) info->iomem_base +
17 (offset<<info->iomem_reg_shift));
18 +#ifdef CONFIG_BCM4704
19 + *((volatile unsigned int *) KSEG1ADDR(0x18000000));
23 outb(value, info->port+offset);
24 @@ -5996,6 +6003,13 @@
25 * Divisor, bytesize and parity
27 state = rs_table + co->index;
29 + * Safe guard: state structure must have been initialized
31 + if (state->iomem_base == NULL) {
32 + printk("!unable to setup serial console!\n");
36 state->flags |= ASYNC_CONS_FLOW;
37 info = &async_sercons;