diff options
author | 1999-07-18 23:21:54 +0000 | |
---|---|---|
committer | 1999-07-18 23:21:54 +0000 | |
commit | 1f55d4ac5dcf4762b73889099013c5aec2d40ab5 (patch) | |
tree | 2d1871c870e0eb1d25c89b89b6e113f310d0463f | |
parent | Added SDEV_NOSENSE for ATAPI devices without request sense. (diff) | |
download | wireguard-openbsd-1f55d4ac5dcf4762b73889099013c5aec2d40ab5.tar.xz wireguard-openbsd-1f55d4ac5dcf4762b73889099013c5aec2d40ab5.zip |
Added acd dummy device so the new ATA stuff compiles & links
-rw-r--r-- | sys/dev/atapiscsi/acd_stub.c | 51 | ||||
-rw-r--r-- | sys/dev/atapiscsi/files.atapiscsi | 7 |
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 |