Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/tc Use the IOASIC_DMA_ADDR() macro now that it is fi...



details:   https://anonhg.NetBSD.org/src/rev/89701d47b72e
branches:  trunk
changeset: 494883:89701d47b72e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 17 01:29:02 2000 +0000

description:
Use the IOASIC_DMA_ADDR() macro now that it is fixed.

diffstat:

 sys/dev/tc/if_le_ioasic.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 2287f2610bba -r 89701d47b72e sys/dev/tc/if_le_ioasic.c
--- a/sys/dev/tc/if_le_ioasic.c Mon Jul 17 01:28:16 2000 +0000
+++ b/sys/dev/tc/if_le_ioasic.c Mon Jul 17 01:29:02 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le_ioasic.c,v 1.16 2000/07/11 04:10:25 nisimura Exp $       */
+/*     $NetBSD: if_le_ioasic.c,v 1.17 2000/07/17 01:29:02 thorpej Exp $        */
 
 /*
  * Copyright (c) 1996 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID &  macro defns */
-__KERNEL_RCSID(0, "$NetBSD: if_le_ioasic.c,v 1.16 2000/07/11 04:10:25 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_le_ioasic.c,v 1.17 2000/07/17 01:29:02 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -156,8 +156,7 @@
        /*
         * Bind 128KB buffer with IOASIC DMA.
         */
-       tca = (tc_addr_t)sc->sc_dmamap->dm_segs[0].ds_addr;
-       tca = ((tca << 3) & ~0x1f) | ((tca >> 29) & 0x1f);
+       tca = IOASIC_DMA_ADDR(sc->sc_dmamap->dm_segs[0].ds_addr);
        bus_space_write_4(ioasic_bst, ioasic_bsh, IOASIC_LANCE_DMAPTR, tca);
        ssr = bus_space_read_4(ioasic_bst, ioasic_bsh, IOASIC_CSR);
        ssr |= IOASIC_CSR_DMAEN_LANCE;



Home | Main Index | Thread Index | Old Index