summaryrefslogtreecommitdiffstats
path: root/sys/scsi/su.c
diff options
context:
space:
mode:
authordufault <dufault@FreeBSD.org>1995-03-04 20:51:10 +0000
committerdufault <dufault@FreeBSD.org>1995-03-04 20:51:10 +0000
commitcaa91d7b29df7b209af9699dd4f38031136d1b0d (patch)
tree08e7e0728f4cbe050b6439ba8c037dc43bf00e8e /sys/scsi/su.c
parent504389ec944dd6925d07e290d3aa2f23ccb14153 (diff)
downloadFreeBSD-src-caa91d7b29df7b209af9699dd4f38031136d1b0d.zip
FreeBSD-src-caa91d7b29df7b209af9699dd4f38031136d1b0d.tar.gz
1. Change driver signatures to full signature for slice support.
2. Add "pt" (processor type) driver. 3. Add "worm" (Write Once) driver for Jordan.
Diffstat (limited to 'sys/scsi/su.c')
-rw-r--r--sys/scsi/su.c64
1 files changed, 37 insertions, 27 deletions
diff --git a/sys/scsi/su.c b/sys/scsi/su.c
index fffe45d..0211295 100644
--- a/sys/scsi/su.c
+++ b/sys/scsi/su.c
@@ -44,7 +44,7 @@
* SUCH DAMAGE.
*End copyright
*
- * $Id:$
+ * $Id: su.c,v 1.3 1995/01/08 15:56:10 dufault Exp $
*
* Tabstops 4
*/
@@ -58,39 +58,49 @@
#include <sys/buf.h>
#include <sys/systm.h>
-/* bnxio, cnxio: non existent device entries (with ugly casts to quiet gcc).
+/* XXX: These are taken from, and perhaps belong in, conf.c
+ */
+#define nxopen (d_open_t *)enxio
+#define nxclose (d_close_t *)enxio
+#define nxread (d_rdwr_t *)enxio
+#define nxwrite nxread
+#define nxstrategy (d_strategy_t *)enxio
+#define nxioctl (d_ioctl_t *)enxio
+#define nxdump (d_dump_t *)enxio
+#define nxstop (d_stop_t *)enxio
+#define nxreset (d_reset_t *)enxio
+#define nxselect (d_select_t *)enxio
+#define nxmmap (d_mmap_t *)enxio
+#define nxdevtotty (d_ttycv_t *)nullop
+#define zerosize (d_psize_t *)0
+
+/* bnxio, cnxio: non existent device entries
*/
static struct bdevsw bnxio = {
- (int (*) __P((dev_t dev, int oflags, int devtype,
- struct proc *p))) enxio,
- (int (*) __P((dev_t dev, int fflag, int devtype,
- struct proc *p))) enxio,
- (d_strategy_t *) enxio,
- (int (*) __P((dev_t dev, int cmd, caddr_t data,
- int fflag, struct proc *p))) enxio,
- (int (*) ()) enxio,
- (int (*) __P((dev_t dev))) 0,
- (int ) 0
+ nxopen,
+ nxclose,
+ nxstrategy,
+ nxioctl,
+ nxdump,
+ zerosize,
+ 0
};
static struct cdevsw cnxio = {
- (int (*) __P((dev_t dev, int oflags, int devtype,
- struct proc *p))) enxio,
- (int (*) __P((dev_t dev, int fflag, int devtype,
- struct proc *))) enxio,
- (int (*) __P((dev_t dev, struct uio *uio, int ioflag))) enxio,
- (int (*) __P((dev_t dev, struct uio *uio, int ioflag))) enxio,
- (int (*) __P((dev_t dev, int cmd, caddr_t data,
- int fflag, struct proc *p))) enxio,
- (int (*) __P((struct tty *tp, int rw))) nullop,
- (int (*) __P((int uban))) enxio,
- (struct tty *) 0,
- (int (*) __P((dev_t dev, int which, struct proc *p))) enxio,
- (int (*) __P(())) enxio,
- (d_strategy_t *) enxio
+ nxopen,
+ nxclose,
+ nxread,
+ nxwrite,
+ nxioctl,
+ nxstop,
+ nxreset,
+ nxdevtotty,
+ nxselect,
+ nxmmap,
+ nxstrategy
};
-/* getsws: Look up the base dev switch for a given new style
+/* getsws: Look up the base dev switch for a given "by minor number" style
* device.
*/
static int
OpenPOWER on IntegriCloud