summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-10-10 18:12:42 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-10-10 18:12:42 +0000
commitfb201011e8c807212087ca6311efe593eecebadf (patch)
treebbf8f7c01230e0e745ced04aab0f71598be7919d /sys/dev/pci
parenta9c36dbd56599b4e72744bdbce5bf6f3022a9904 (diff)
another easy vtophys removal (tx descriptor setup)... 6 to go.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_vr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 312b36fbae7..6650cb15301 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.33 2003/10/10 18:05:12 jason Exp $ */
+/* $OpenBSD: if_vr.c,v 1.34 2003/10/10 18:12:41 jason Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1566,7 +1566,8 @@ vr_init(xsc)
VR_CMD_TX_ON|VR_CMD_RX_ON|
VR_CMD_RX_GO);
- CSR_WRITE_4(sc, VR_TXADDR, vtophys(&sc->vr_ldata->vr_tx_list[0]));
+ CSR_WRITE_4(sc, VR_TXADDR, sc->sc_listmap->dm_segs[0].ds_addr +
+ offsetof(struct vr_list_data, vr_tx_list[0]));
/*
* Enable interrupts.