patch-2.4.0-test9 linux/drivers/macintosh/macserial.c
Next file: linux/drivers/macintosh/mediabay.c
Previous file: linux/drivers/macintosh/macio-adb.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Sun Sep 17 09:48:05 2000
- Orig file:
v2.4.0-test8/linux/drivers/macintosh/macserial.c
- Orig date:
Sat May 20 12:07:56 2000
diff -u --recursive --new-file v2.4.0-test8/linux/drivers/macintosh/macserial.c linux/drivers/macintosh/macserial.c
@@ -2291,7 +2291,7 @@
zss->irq = ch->intrs[0].line;
zss->has_dma = 0;
#if !defined(CONFIG_KGDB) && defined(SUPPORT_SERIAL_DMA)
- if (ch->n_addrs == 3 && ch->n_intrs == 3)
+ if (ch->n_addrs >= 3 && ch->n_intrs == 3)
zss->has_dma = 1;
#endif
zss->dma_initted = 0;
@@ -2643,9 +2643,6 @@
* ------------------------------------------------------------
*/
#ifdef CONFIG_SERIAL_CONSOLE
-#ifdef CONFIG_SERIAL
-#error Cannot build serial console with macserial and serial drivers
-#endif
/*
* Print a string to the serial port trying not to disturb
@@ -2719,7 +2716,7 @@
*/
static int __init serial_console_setup(struct console *co, char *options)
{
- struct mac_serial *info = zs_soft + co->index;
+ struct mac_serial *info;
int baud = 38400;
int bits = 8;
int parity = 'n';
@@ -2735,6 +2732,11 @@
if (zs_chain == 0)
return -1;
+ /* Do we have the device asked for? */
+ if (co->index >= zs_channels_found)
+ return -1;
+ info = zs_soft + co->index;
+
set_scc_power(info, 1);
/* Reset the channel */
@@ -2904,7 +2906,7 @@
/*
* Register console.
*/
-void __init serial_console_init(void)
+void __init mac_scc_console_init(void)
{
register_console(&sercons);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)