diff options
Diffstat (limited to 'sys/pc98/cbus/sio.c')
-rw-r--r-- | sys/pc98/cbus/sio.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 1f3e8f3..e2f6916 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -4270,11 +4270,13 @@ siocnattach(port, speed) u_char cfcr; u_int divisor; struct siocnstate sp; + int unit = 0; /* XXX random value! */ siocniobase = port; + siocnunit = unit; comdefaultrate = speed; sio_consdev.cn_pri = CN_NORMAL; - sio_consdev.cn_dev = makedev(CDEV_MAJOR, 0); + sio_consdev.cn_dev = makedev(CDEV_MAJOR, unit); s = spltty(); @@ -4310,7 +4312,7 @@ siogdbattach(port, speed) u_char cfcr; u_int divisor; struct siocnstate sp; - int unit = 1; /* XXX !!! */ + int unit = 1; /* XXX random value! */ siogdbiobase = port; gdbdefaultrate = speed; @@ -4448,7 +4450,7 @@ siogdbgetc() int s; struct siocnstate sp; - if (minor(dev) == siocnunit) { + if (siogdbunit == siocnunit) { iobase = siocniobase; speed = comdefaultrate; } else { @@ -4475,7 +4477,7 @@ siogdbputc(c) int s; struct siocnstate sp; - if (minor(dev) == siocnunit) { + if (siogdbunit == siocnunit) { iobase = siocniobase; speed = comdefaultrate; } else { |