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/if_le.c | |
parent | 4f9aa2f73974e60c9a02dc84a916fd08703f8d90 (diff) |
conditionalize use of sbus_testdma()
Diffstat (limited to 'sys/arch/sparc/dev/if_le.c')
-rw-r--r-- | sys/arch/sparc/dev/if_le.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c index 64ec0b7fc3a..fe937ede779 100644 --- a/sys/arch/sparc/dev/if_le.c +++ b/sys/arch/sparc/dev/if_le.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le.c,v 1.15 1998/12/22 15:40:30 jason Exp $ */ +/* $OpenBSD: if_le.c,v 1.16 1999/02/28 19:12:34 jason Exp $ */ /* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */ /*- @@ -394,11 +394,13 @@ lematch(parent, vcf, aux) if (strcmp(cf->cf_driver->cd_name, 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 return (probeget(ra->ra_vaddr, 2) != -1); } |