Deleted Added
full compact
33c33
< * $FreeBSD: head/sys/pc98/cbus/sio.c 119525 2003-08-28 11:20:54Z nyan $
---
> * $FreeBSD: head/sys/pc98/cbus/sio.c 120491 2003-09-26 19:35:50Z phk $
3965a3966,3977
> /*
> * This is a function in order to not replicate "ttyd%d" more
> * places than absolutely necessary.
> */
> static void
> siocnset(struct consdev *cd, int unit)
> {
>
> cd->cn_unit = unit;
> sprintf(cd->cn_name, "ttyd%d", unit);
> }
>
4188c4200
< cp->cn_dev = makedev(CDEV_MAJOR, unit);
---
> siocnset(cp, unit);
4200c4212
< gdbconsdev.cn_dev = makedev(CDEV_MAJOR, unit);
---
> siocnset(&gdbconsdev, unit);
4222c4234
< gdbconsdev.cn_dev = makedev(CDEV_MAJOR, siocnunit);
---
> siocnset(&gdbconsdev, siocnunit);
4235c4247
< comconsole = DEV_TO_UNIT(cp->cn_dev);
---
> comconsole = cp->cn_unit;
4266c4278
< sio_consdev.cn_dev = makedev(CDEV_MAJOR, unit);
---
> siocnset(&sio_consdev, unit);
4310c4322
< gdbconsdev.cn_dev = makedev(CDEV_MAJOR, unit);
---
> siocnset(&gdbconsdev, unit);
4346d4357
< dev_t dev;
4352,4353c4363
< dev = cd->cn_dev;
< if (minor(dev) == siocnunit) {
---
> if (cd->cn_unit == siocnunit) {
4371d4380
<
4376d4384
< dev_t dev;
4382,4383c4390
< dev = cd->cn_dev;
< if (minor(dev) == siocnunit) {
---
> if (cd->cn_unit == siocnunit) {
4405d4411
< dev_t dev;
4410,4411c4416
< dev = cd->cn_dev;
< if (minor(dev) == siocnunit) {
---
> if (cd->cn_unit == siocnunit) {