summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-10-25 18:21:02 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-10-25 18:21:02 +0000
commit5cb35fa9b5a4c3f3a9953afceee14e76b4801dc8 (patch)
tree2adaa5d435dcc2f65ef912b4933a0adfd26c9a50 /sys/arch/sparc/dev
parent80e09734c1b4140a05ceebd9e70b8649d35a915e (diff)
Don't let qlw attach to non-sun4m yet, as this driver currently depends upon
sun4m's iommu for bus_dma. (Guess what task just hit my todolist...)
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/qlw_sbus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/qlw_sbus.c b/sys/arch/sparc/dev/qlw_sbus.c
index c029a5574ba..c0c92487737 100644
--- a/sys/arch/sparc/dev/qlw_sbus.c
+++ b/sys/arch/sparc/dev/qlw_sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw_sbus.c,v 1.1 2014/05/30 13:57:40 kettenis Exp $ */
+/* $OpenBSD: qlw_sbus.c,v 1.2 2014/10/25 18:21:01 miod Exp $ */
/*
* Copyright (c) 2014 Mark Kettenis
*
@@ -59,6 +59,10 @@ qlw_sbus_match(struct device *parent, void *cf, void *aux)
struct confargs *ca = aux;
struct romaux *ra = &ca->ca_ra;
+ /* XXX this assumes dma through sun4m's iommu */
+ if (!CPU_ISSUN4M)
+ return 0;
+
if (strcmp("ptisp", ra->ra_name) == 0 ||
strcmp("PTI,ptisp", ra->ra_name) == 0 ||
strcmp("SUNW,isp", ra->ra_name) == 0 ||