diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1998-11-11 00:26:02 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1998-11-11 00:26:02 +0000 |
commit | 777b7ad5376b715f1c9f137f1b1cf6d7345dc634 (patch) | |
tree | 3594b8e48c738c3130b511593e51a5a1b8700405 /sys/arch/sparc/dev/hme.c | |
parent | dad9cda7d59a7eebcce55a30abe7e270a54af10e (diff) |
Detect cards that require dma that are in non-dma slots and don't allow
them to be attach'd.
Diffstat (limited to 'sys/arch/sparc/dev/hme.c')
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 59f93f793ae..d8d2e8eec93 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.12 1998/10/02 17:42:24 jason Exp $ */ +/* $OpenBSD: hme.c,v 1.13 1998/11/11 00:26:00 jason Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -146,6 +146,8 @@ hmematch(parent, vcf, aux) strcmp("SUNW,hme", ra->ra_name)) { return (0); } + if (!sbus_testdma((struct sbus_softc *)parent, ca)) + return(0); return (1); } |