diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1999-07-18 23:21:55 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1999-07-18 23:21:55 +0000 |
commit | b119ee6bae70a27d40c2ad6bcf93b885d9c078ab (patch) | |
tree | 09837e5c569cb5e469d6eb7ea766bb041f91c85f /sys/dev | |
parent | 44f66ea7c0c363b826dda0313ff3c9cb0bfd96b4 (diff) |
Added acd dummy device so the new ATA stuff compiles & links
Diffstat (limited to 'sys/dev')
-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 |