diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-02-28 19:12:35 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-02-28 19:12:35 +0000 |
commit | 9fa21bec8f03defd6ea5bffa1a8310f3d7a9df65 (patch) | |
tree | 45a12dd119a5767383092cfc31a0e12de850d5be /sys/arch/sparc/dev/dma.c | |
parent | 4f9aa2f73974e60c9a02dc84a916fd08703f8d90 (diff) |
conditionalize use of sbus_testdma()
Diffstat (limited to 'sys/arch/sparc/dev/dma.c')
-rw-r--r-- | sys/arch/sparc/dev/dma.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/dma.c b/sys/arch/sparc/dev/dma.c index 72e5499803e..cbbb3be40ea 100644 --- a/sys/arch/sparc/dev/dma.c +++ b/sys/arch/sparc/dev/dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dma.c,v 1.13 1998/11/11 00:50:31 jason Exp $ */ +/* $OpenBSD: dma.c,v 1.14 1999/02/28 19:12:32 jason Exp $ */ /* $NetBSD: dma.c,v 1.46 1997/08/27 11:24:16 bouyer Exp $ */ /* @@ -115,11 +115,13 @@ dmamatch(parent, vcf, aux) if (strcmp(cf->cf_driver->cd_name, ra->ra_name) && strcmp("espdma", ra->ra_name)) return (0); +#if defined(SUN4C) || defined(SUN4M) if (ca->ca_bustype == BUS_SBUS) { if (!sbus_testdma((struct sbus_softc *)parent, ca)) return (0); return (1); } +#endif ra->ra_len = NBPG; return (probeget(ra->ra_vaddr, 4) != -1); } @@ -382,8 +384,10 @@ ledmamatch(parent, vcf, aux) if (strcmp(cf->cf_driver->cd_name, ra->ra_name)) return (0); +#if defined(SUN4C) || defined(SUN4M) if (!sbus_testdma((struct sbus_softc *)parent, ca)) return(0); +#endif return (1); } |