summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/atapiscsi/acd_stub.c51
-rw-r--r--sys/dev/atapiscsi/files.atapiscsi7
2 files changed, 57 insertions, 1 deletions
diff --git a/sys/dev/atapiscsi/acd_stub.c b/sys/dev/atapiscsi/acd_stub.c
new file mode 100644
index 00000000000..c248f733d9b
--- /dev/null
+++ b/sys/dev/atapiscsi/acd_stub.c
@@ -0,0 +1,51 @@
+/* $OpenBSD: acd_stub.c,v 1.1 1999/07/18 23:21:54 csapuntz Exp $ */
+
+#include <sys/types.h>
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
+#include <sys/conf.h>
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <sys/malloc.h>
+#include <sys/mtio.h>
+#include <sys/buf.h>
+#include <sys/uio.h>
+#include <sys/errno.h>
+#include <sys/device.h>
+#include <sys/disklabel.h>
+#include <sys/disk.h>
+#include <sys/cdio.h>
+#include <sys/proc.h>
+
+int acdmatch __P((struct device *, void *, void *));
+void acdattach __P((struct device *, struct device *, void *));
+
+
+struct cfattach acd_ca = {
+ sizeof(struct acd_softc), acdmatch, acdattach
+};
+
+struct cfdriver acd_cd = {
+ NULL, "acd", DV_DISK
+};
+
+int
+acdmatch(parent, match, aux)
+ struct device *parent;
+ void *match, *aux;
+{
+ return (0);
+}
+
+void
+acdattach(parent, self, aux)
+ struct device *parent, *self;
+ void *aux;
+{
+ panic("acdattach called");
+}
+
+
+
diff --git a/sys/dev/atapiscsi/files.atapiscsi b/sys/dev/atapiscsi/files.atapiscsi
index cbcd0150410..f347b6ba2d8 100644
--- a/sys/dev/atapiscsi/files.atapiscsi
+++ b/sys/dev/atapiscsi/files.atapiscsi
@@ -1,4 +1,4 @@
-# $OpenBSD: files.atapiscsi,v 1.2 1999/07/18 22:43:00 csapuntz Exp $
+# $OpenBSD: files.atapiscsi,v 1.3 1999/07/18 23:21:54 csapuntz Exp $
# ATAPI transport for SCSI protocl
#
@@ -6,3 +6,8 @@ device atapiscsi: scsi
attach atapiscsi at atapi
file dev/atapiscsi/atapiscsi.c atapiscsi needs-flag
+# This is just so this whole ball of crud compiles
+# and links - do not try to use this device.
+device acd: disk
+attach acd at atapi
+file dev/atapiscsi/acd_stub.c acd needs-flag