summaryrefslogtreecommitdiff
path: root/sys/dev/isa/isadma.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-16 10:31:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-16 10:31:28 +0000
commit16fcdabf7cfb9357006f53ac1c5167fdbf249093 (patch)
tree23eddd41e26833e6478e50ed294241a2e1fefe57 /sys/dev/isa/isadma.c
parent00071385635cc3094e0dec96642d10d7dda9b075 (diff)
isadma is now a real driver, so that ports can choose to use it or not
Diffstat (limited to 'sys/dev/isa/isadma.c')
-rw-r--r--sys/dev/isa/isadma.c35
1 files changed, 34 insertions, 1 deletions
diff --git a/sys/dev/isa/isadma.c b/sys/dev/isa/isadma.c
index 1a3bd8eba59..69ed23de8b6 100644
--- a/sys/dev/isa/isadma.c
+++ b/sys/dev/isa/isadma.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: isadma.c,v 1.6 1996/05/07 07:37:10 deraadt Exp $ */
+/* $OpenBSD: isadma.c,v 1.7 1996/06/16 10:31:27 deraadt Exp $ */
/* $NetBSD: isadma.c,v 1.19 1996/04/29 20:03:26 christos Exp $ */
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/device.h>
#include <sys/file.h>
#include <sys/buf.h>
#include <sys/syslog.h>
@@ -14,6 +15,7 @@
#include <machine/pio.h>
#include <dev/isa/isareg.h>
+#include <dev/isa/isavar.h>
#include <dev/isa/isadmavar.h>
#include <dev/isa/isadmareg.h>
@@ -41,6 +43,37 @@ static u_int8_t dmamode[4] = {
DMA37MD_WRITE | DMA37MD_LOOP
};
+int isadmamatch __P((struct device *, void *, void *));
+void isadmaattach __P((struct device *, struct device *, void *));
+int isadmaprint __P((void *, char *));
+
+struct cfattach isadma_ca = {
+ sizeof(struct device), isadmamatch, isadmaattach
+};
+
+struct cfdriver isadma_cd = {
+ NULL, "isadma", DV_DULL, 1
+};
+
+isadmamatch(parent, match, aux)
+ struct device *parent;
+ void *match, *aux;
+{
+ struct isa_attach_args *ia = aux;
+
+ /* Sure we exist */
+ ia->ia_iosize = 0;
+ return (1);
+}
+
+void
+isadmaattach(parent, self, aux)
+ struct device *parent, *self;
+ void *aux;
+{
+ printf("\n");
+}
+
/*
* isadma_cascade(): program 8237 DMA controller channel to accept
* external dma control by a board.