|
|
| version 1.15, 2004/05/13 23:49:20 | version 1.16, 2004/05/19 22:52:49 |
|---|---|
| Line 1182 determined_type: ; | Line 1182 determined_type: ; |
| sio_registered = TRUE; | sio_registered = TRUE; |
| } | } |
| minorbase = UNIT_TO_MINOR(unit); | minorbase = UNIT_TO_MINOR(unit); |
| cdevsw_add(&sio_cdevsw, UNIT_TO_MINOR(-1), minorbase); | |
| make_dev(&sio_cdevsw, minorbase, | make_dev(&sio_cdevsw, minorbase, |
| UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit); | UID_ROOT, GID_WHEEL, 0600, "ttyd%r", unit); |
| make_dev(&sio_cdevsw, minorbase | CONTROL_INIT_STATE, | make_dev(&sio_cdevsw, minorbase | CONTROL_INIT_STATE, |
| Line 2963 siocnprobe(cp) | Line 2964 siocnprobe(cp) |
| splx(s); | splx(s); |
| if (COM_CONSOLE(flags) && !COM_LLCONSOLE(flags)) { | if (COM_CONSOLE(flags) && !COM_LLCONSOLE(flags)) { |
| cp->cn_dev = makedev(CDEV_MAJOR, unit); | cp->cn_dev = make_dev(&sio_cdevsw, unit, |
| UID_ROOT, GID_WHEEL, 0600, | |
| "ttyd%r", unit); | |
| cp->cn_pri = COM_FORCECONSOLE(flags) | cp->cn_pri = COM_FORCECONSOLE(flags) |
| || boothowto & RB_SERIAL | || boothowto & RB_SERIAL |
| ? CN_REMOTE : CN_NORMAL; | ? CN_REMOTE : CN_NORMAL; |
| Line 2975 siocnprobe(cp) | Line 2978 siocnprobe(cp) |
| siogdbiobase = iobase; | siogdbiobase = iobase; |
| siogdbunit = unit; | siogdbunit = unit; |
| #if DDB > 0 | #if DDB > 0 |
| gdbdev = makedev(CDEV_MAJOR, unit); | gdbdev = make_dev(&sio_cdevsw, unit, |
| UID_ROOT, GID_WHEEL, 0600, | |
| "ttyd%r", unit); | |
| gdb_getc = siocngetc; | gdb_getc = siocngetc; |
| gdb_putc = siocnputc; | gdb_putc = siocnputc; |
| #endif | #endif |
| Line 2996 siocnprobe(cp) | Line 3001 siocnprobe(cp) |
| printf("configuration file (currently sio only).\n"); | printf("configuration file (currently sio only).\n"); |
| siogdbiobase = siocniobase; | siogdbiobase = siocniobase; |
| siogdbunit = siocnunit; | siogdbunit = siocnunit; |
| gdbdev = makedev(CDEV_MAJOR, siocnunit); | gdbdev = make_dev(&sio_cdevsw, siocnunit, |
| UID_ROOT, GID_WHEEL, 0600, | |
| "ttyd%r", siocnunit); | |
| gdb_getc = siocngetc; | gdb_getc = siocngetc; |
| gdb_putc = siocnputc; | gdb_putc = siocnputc; |
| } | } |
| Line 3021 siocnattach(port, speed) | Line 3028 siocnattach(port, speed) |
| siocniobase = port; | siocniobase = port; |
| comdefaultrate = speed; | comdefaultrate = speed; |
| sio_consdev.cn_pri = CN_NORMAL; | sio_consdev.cn_pri = CN_NORMAL; |
| sio_consdev.cn_dev = makedev(CDEV_MAJOR, 0); | sio_consdev.cn_dev = make_dev(&sio_cdevsw, 0, UID_ROOT, GID_WHEEL, |
| 0600, "ttyd%r", 0); | |
| s = spltty(); | s = spltty(); |