summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-02-25 12:32:51 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-02-25 12:32:51 +0000
commit33b1590a11275f19b4097cc0dcc5c21bf9022e15 (patch)
tree39e1c216ba92283944d6f2629b5400a3bedccbe5 /sys/dev/ic
parent28ba31833021bef25d743afd0302f7cb1048ce77 (diff)
Correct usage of bus_dma which makes re(4) work on alpha.
From NetBSD rtl8169.c -r 1.11 ok pvalchev@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/re.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index b79c4f89af8..20071779ba6 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.3 2005/01/15 05:24:11 brad Exp $ */
+/* $OpenBSD: re.c,v 1.4 2005/02/25 12:32:50 jsg Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -1759,14 +1759,14 @@ re_init(struct ifnet *ifp)
*/
CSR_WRITE_4(sc, RL_RXLIST_ADDR_HI,
- RL_ADDR_HI(sc->rl_ldata.rl_rx_listseg.ds_addr));
+ RL_ADDR_HI(sc->rl_ldata.rl_rx_list_map->dm_segs[0].ds_addr));
CSR_WRITE_4(sc, RL_RXLIST_ADDR_LO,
- RL_ADDR_LO(sc->rl_ldata.rl_rx_listseg.ds_addr));
+ RL_ADDR_LO(sc->rl_ldata.rl_rx_list_map->dm_segs[0].ds_addr));
CSR_WRITE_4(sc, RL_TXLIST_ADDR_HI,
- RL_ADDR_HI(sc->rl_ldata.rl_tx_listseg.ds_addr));
+ RL_ADDR_HI(sc->rl_ldata.rl_tx_list_map->dm_segs[0].ds_addr));
CSR_WRITE_4(sc, RL_TXLIST_ADDR_LO,
- RL_ADDR_LO(sc->rl_ldata.rl_tx_listseg.ds_addr));
+ RL_ADDR_LO(sc->rl_ldata.rl_tx_list_map->dm_segs[0].ds_addr));
CSR_WRITE_1(sc, RL_EARLY_TX_THRESH, 16);