diff options
author | msmith <msmith@FreeBSD.org> | 2001-12-02 06:17:16 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-12-02 06:17:16 +0000 |
commit | 73a800ff5fbdadbd91904d6da8434ae9363eeb58 (patch) | |
tree | a0a63536a4877ffb42233d792609e1f90ce2656f /sys | |
parent | 32d44d8f95669743ed489a1650decd6a65b3d2c6 (diff) | |
download | FreeBSD-src-73a800ff5fbdadbd91904d6da8434ae9363eeb58.zip FreeBSD-src-73a800ff5fbdadbd91904d6da8434ae9363eeb58.tar.gz |
Catch up with the proc -> d_thread_t change.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ciss/ciss.c | 8 | ||||
-rw-r--r-- | sys/dev/ciss/cissvar.h | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 69e0318..6744c5b 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -216,7 +216,7 @@ static d_ioctl_t ciss_ioctl; static struct cdevsw ciss_cdevsw = { ciss_open, ciss_close, noread, nowrite, ciss_ioctl, nopoll, nommap, nostrategy, "ciss", CISS_CDEV_MAJOR, - nodump, nopsize, 0, -1 + nodump, nopsize, 0, nokqfilter }; /************************************************************************ @@ -3210,7 +3210,7 @@ ciss_name_command_status(int status) * Handle an open on the control device. */ static int -ciss_open(dev_t dev, int flags, int fmt, struct proc *p) +ciss_open(dev_t dev, int flags, int fmt, d_thread_t *p) { struct ciss_softc *sc; @@ -3228,7 +3228,7 @@ ciss_open(dev_t dev, int flags, int fmt, struct proc *p) * Handle the last close on the control device. */ static int -ciss_close(dev_t dev, int flags, int fmt, struct proc *p) +ciss_close(dev_t dev, int flags, int fmt, d_thread_t *p) { struct ciss_softc *sc; @@ -3247,7 +3247,7 @@ ciss_close(dev_t dev, int flags, int fmt, struct proc *p) * simplify the porting of Compaq's userland tools. */ static int -ciss_ioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p) +ciss_ioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, d_thread_t *p) { struct ciss_softc *sc; int error; diff --git a/sys/dev/ciss/cissvar.h b/sys/dev/ciss/cissvar.h index 937409a..725118a 100644 --- a/sys/dev/ciss/cissvar.h +++ b/sys/dev/ciss/cissvar.h @@ -72,6 +72,14 @@ #define CISS_MAX_EVENTS 32 /************************************************************************ + * Compatibility with older versions of FreeBSD + */ +#if __FreeBSD_version < 440001 +#warning testing old-FreeBSD compat +typedef struct proc d_thread_t; +#endif + +/************************************************************************ * Command queue statistics */ @@ -89,7 +97,7 @@ struct ciss_qstat /************************************************************************ * Driver version. Only really significant to the ACU interface. */ -#define CISS_DRIVER_VERSION 20011009 +#define CISS_DRIVER_VERSION 20011201 /************************************************************************ * Driver data structures |