From 33b1590a11275f19b4097cc0dcc5c21bf9022e15 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 25 Feb 2005 12:32:51 +0000 Subject: Correct usage of bus_dma which makes re(4) work on alpha. From NetBSD rtl8169.c -r 1.11 ok pvalchev@ --- sys/dev/ic/re.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3