Nuked some more bogus devswitch macros. The wcd lkm was broken.

This commit is contained in:
Bruce Evans 1995-11-09 09:17:49 +00:00
parent de3a4845ee
commit fec5f38c65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12162

View file

@ -1069,18 +1069,10 @@ static int wcd_eject (struct wcd *t)
* These get copied at modload time into the kernels
* lkm dummy device driver entries (see sys/i386/i386/conf.c).
*/
#define NOSTOP (d_stop_t*) enodev
#define NOWRITE (d_rdwr_t*) enodev
#define NORESET (d_reset_t*) nullop
#define NODEVTOTTY (d_ttycv_t*) nullop
#define NOMMAP (d_mmap_t*) enodev
#define NODUMP (d_dump_t*) enxio
#define ZEROSIZE (d_psize_t*) 0
d_rdwr_t rawread;
struct bdevsw dev_wcd = { wcdbopen, wcdbclose, wcdstrategy, wcdioctl,
NODUMP, ZEROSIZE, 0 };
struct cdevsw dev_rwcd = { wcdropen, wcdrclose, rawread, NOWRITE, wcdioctl,
NOSTOP, NORESET, NODEVTOTTY, seltrue, NOMMAP,
nodump, nopsize, 0 };
struct cdevsw dev_rwcd = { wcdropen, wcdrclose, rawread, nowrite, wcdioctl,
nostop, nullreset, nodevtotty, seltrue, nommap,
wcdstrategy };
/*
* Construct lkm_dev structures (see lkm.h).