summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-08-28 03:06:59 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-08-28 03:06:59 +0000
commit0c08aacc04f9f5d7e6883070e47d42686e2ec5ff (patch)
tree166ddb92ca89a0fcb8de177d6262fbe81747bf27 /sys
parentd389a113066925541d1d808ab9c14476d5fc4ac0 (diff)
downloadFreeBSD-src-0c08aacc04f9f5d7e6883070e47d42686e2ec5ff.zip
FreeBSD-src-0c08aacc04f9f5d7e6883070e47d42686e2ec5ff.tar.gz
Added support for scsi/sg.c as cdev major 18.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/conf.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c
index 1871c5c..6392125 100644
--- a/sys/i386/i386/conf.c
+++ b/sys/i386/i386/conf.c
@@ -56,7 +56,7 @@
* 28 Jul 93 Jordan K. Hubbard Free codrv's slot again
*
*/
-static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/conf.c,v 1.4 1993/08/09 19:02:21 rgrimes Exp $";
+static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/conf.c,v 1.5 1993/08/20 12:51:53 rgrimes Exp $";
#include "param.h"
#include "systm.h"
@@ -132,6 +132,20 @@ int chopen(),chclose(),chioctl();
#define chioctl enxio
#endif
+#include "sg.h"
+#if NSG > 0
+int sgopen(),sgclose(),sgioctl(),sgstrategy();
+#define sgdump enxio
+#define sgsize NULL
+#else
+#define sgopen enxio
+#define sgclose enxio
+#define sgstrategy enxio
+#define sgioctl enxio
+#define sgdump enxio
+#define sgsize NULL
+#endif
+
#include "wt.h"
#if NWT > 0
int wtopen(),wtclose(),wtstrategy(),wtioctl();
@@ -387,9 +401,9 @@ struct cdevsw cdevsw[] =
{ chopen, chclose, enxio, enxio, /*17*/
chioctl, enxio, enxio, NULL, /* ch */
enxio, enxio, enxio },
- { enxio, enxio, enxio, enxio, /*18*/
- enxio, enxio, enxio, NULL, /* scsi generic */
- enxio, enxio, enxio },
+ { sgopen, sgclose, enodev, enodev, /*18*/
+ sgioctl, enodev, nullop, NULL, /* scsi 'generic' */
+ seltrue, enodev, sgstrategy },
{ twopen, twclose, twread, twwrite, /*19*/
enodev, nullop, nullop, NULL, /* tw */
twselect, enodev, enodev },
OpenPOWER on IntegriCloud