Deleted Added
full compact
49a50,52
> #ifdef DEVFS
> #include <sys/devfsext.h>
> #endif /*DEVFS*/
60,67d62
< #ifdef JREMOD
< #include <sys/conf.h>
< #include <sys/kernel.h>
< #ifdef DEVFS
< #include <sys/devfsext.h>
< #endif /*DEVFS*/
< #define CDEV_MAJOR 63
< #endif /*JREMOD*/
107a103,116
> static d_open_t rcopen;
> static d_close_t rcclose;
> static d_read_t rcread;
> static d_write_t rcwrite;
> static d_ioctl_t rcioctl;
> static d_stop_t rcstop;
> static d_ttycv_t rcdevtotty;
>
> #define CDEV_MAJOR 63
> struct cdevsw rc_cdevsw =
> { rcopen, rcclose, rcread, rcwrite, /*63*/
> rcioctl, rcstop, nxreset, rcdevtotty,/* rc */
> ttselect, nommap, NULL, "rc", NULL, -1 };
>
136a146,148
> #ifdef DEVFS
> void *devfs_token;
> #endif
251a264
> char name[32];
281a295,301
> #ifdef DEVFS
> /* FIX THIS to reflect real devices */
> sprintf(name,"rc%d.%d",dvp->id_unit,chan);
> rc->devfs_token = devfs_add_devsw( "/", name,
> &rc_cdevsw,(dvp->id_unit * CD180_NCHAN) + chan ,
> DV_CHR, 0, 0, 0600);
> #endif
696c716,717
< void rcstop(tp, rw)
---
> static void
> rcstop(tp, rw)
729c750,751
< int rcopen(dev, flag, mode, p)
---
> static int
> rcopen(dev, flag, mode, p)
820c842,843
< int rcclose(dev, flag, mode, p)
---
> static int
> rcclose(dev, flag, mode, p)
877c900,901
< int rcread(dev, uio, flag)
---
> static int
> rcread(dev, uio, flag)
888c912,913
< int rcwrite(dev, uio, flag)
---
> static int
> rcwrite(dev, uio, flag)
1094c1119,1120
< int rcioctl(dev, cmd, data, flag, p)
---
> static int
> rcioctl(dev, cmd, data, flag, p)
1412c1438
< struct tty *
---
> static struct tty *
1504,1509d1529
< #ifdef JREMOD
< struct cdevsw rc_cdevsw =
< { rcopen, rcclose, rcread, rcwrite, /*63*/
< rcioctl, rcstop, nxreset, rcdevtotty,/* rc */
< ttselect, nommap, NULL };
<
1517,1518c1537,1538
< dev = makedev(CDEV_MAJOR,0);
< cdevsw_add(&dev,&rc_cdevsw,NULL);
---
> dev = makedev(CDEV_MAJOR, 0);
> cdevsw_add(&dev,&rc_cdevsw, NULL);
1520,1528d1539
< #ifdef DEVFS
< {
< int x;
< /* default for a simple device with no probe routine (usually delete this) */
< x=devfs_add_devsw(
< /* path name devsw minor type uid gid perm*/
< "/", "rc", major(dev), 0, DV_CHR, 0, 0, 0600);
< }
< #endif
1534d1544
< #endif /* JREMOD */