From 777b7ad5376b715f1c9f137f1b1cf6d7345dc634 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Wed, 11 Nov 1998 00:26:02 +0000 Subject: Detect cards that require dma that are in non-dma slots and don't allow them to be attach'd. --- sys/arch/sparc/dev/hme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc/dev/hme.c') 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); } -- cgit v1.2.3