diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-09-28 23:27:57 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-09-28 23:27:57 +0000 |
| commit | 83eda2d88535f0d16a1cda092f3a97ddcf117c63 (patch) | |
| tree | 79adde4b7b9d5cd9545545736b56f430ec72b669 | |
| parent | abe7f210b50b005fa8f3dab1cf16580e88449a8d (diff) | |
Notes
| -rw-r--r-- | sys/dev/rc/rc.c | 5 | ||||
| -rw-r--r-- | sys/i386/isa/rc.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 5f845c6fbc02..e946c5876ef3 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -237,8 +237,9 @@ rcattach(dvp) rcb->rcb_addr = nec; rcb->rcb_dtr = 0; rcb->rcb_baserc = rc; + rcb->rcb_unit = dvp->id_unit; /*rcb->rcb_chipid = 0x10 + dvp->id_unit;*/ - printf("rc%d: %d chans, firmware rev. %c\n", dvp->id_unit, + printf("rc%d: %d chans, firmware rev. %c\n", rcb->rcb_unit, CD180_NCHAN, (rcin(CD180_GFRCR) & 0xF) + 'A'); for (chan = 0; chan < CD180_NCHAN; chan++, rc++) { @@ -253,7 +254,7 @@ rcattach(dvp) rc->rc_dtrwait = 3 * hz; rc->rc_dcdwaits= 0; rc->rc_hotchar = 0; - tp = rc->rc_tp = &rc_tty[chan]; + tp = rc->rc_tp = &rc_tty[chan + (dvp->id_unit * CD180_NCHAN)]; ttychars(tp); tp->t_lflag = tp->t_iflag = tp->t_oflag = 0; tp->t_cflag = TTYDEF_CFLAG; diff --git a/sys/i386/isa/rc.c b/sys/i386/isa/rc.c index 5f845c6fbc02..e946c5876ef3 100644 --- a/sys/i386/isa/rc.c +++ b/sys/i386/isa/rc.c @@ -237,8 +237,9 @@ rcattach(dvp) rcb->rcb_addr = nec; rcb->rcb_dtr = 0; rcb->rcb_baserc = rc; + rcb->rcb_unit = dvp->id_unit; /*rcb->rcb_chipid = 0x10 + dvp->id_unit;*/ - printf("rc%d: %d chans, firmware rev. %c\n", dvp->id_unit, + printf("rc%d: %d chans, firmware rev. %c\n", rcb->rcb_unit, CD180_NCHAN, (rcin(CD180_GFRCR) & 0xF) + 'A'); for (chan = 0; chan < CD180_NCHAN; chan++, rc++) { @@ -253,7 +254,7 @@ rcattach(dvp) rc->rc_dtrwait = 3 * hz; rc->rc_dcdwaits= 0; rc->rc_hotchar = 0; - tp = rc->rc_tp = &rc_tty[chan]; + tp = rc->rc_tp = &rc_tty[chan + (dvp->id_unit * CD180_NCHAN)]; ttychars(tp); tp->t_lflag = tp->t_iflag = tp->t_oflag = 0; tp->t_cflag = TTYDEF_CFLAG; |
