From 7d613f6a39f2d53f26dbd40c4c78d1a9ea8de993 Mon Sep 17 00:00:00 2001 From: Peter Dufault Date: Wed, 3 May 1995 18:09:20 +0000 Subject: Moved unit definitions out of scsiconf.h; Added CONTROL device that only does user-ioctl and nothing else; Added protection so user-ioctl requires write access; Clean up scsiconf.h a little. It needs more work. --- sys/scsi/st.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/scsi/st.c') diff --git a/sys/scsi/st.c b/sys/scsi/st.c index b43f0c592ae2..f8c168f7f5b8 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: st.c,v 1.33 1995/04/23 22:07:54 gibbs Exp $ + * $Id: st.c,v 1.34 1995/04/29 21:30:29 joerg Exp $ */ /* @@ -53,11 +53,14 @@ u_int32 ststrats, stqueues; #define DEF_FIXED_BSIZE 512 #define ST_RETRIES 4 /* only on non IO commands */ +#define STUNIT(DEV) ((minor(DEV)&0xF0) >> 4) /* 4 bit unit. */ +#define STSETUNIT(DEV, U) makedev(major(DEV), ((U) << 4)) + #define MODE(z) ( (minor(z) & 0x03) ) #define DSTY(z) ( ((minor(z) >> 2) & 0x03) ) #define CTLMODE 3 -#define IS_CTLMODE(DEV) (MODE(DEV) == CTLMODE || SCSI_SUPER(DEV)) +#define IS_CTLMODE(DEV) (MODE(DEV) == CTLMODE) #define SCSI_2_MAX_DENSITY_CODE 0x17 /* maximum density code specified * in SCSI II spec. */ -- cgit v1.2.3