diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-11 12:19:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2004-11-11 12:19:13 +0000 |
commit | 2f736a52b3e8b69efc58fd96c25f21153903c36e (patch) | |
tree | d60878a81680246a6e3f8c1356cfce026a23572b /sys/dev/usb | |
parent | 673b6fad3946fe7b1a9f3d6573145b08d3916f39 (diff) |
make setup of the rx transfers consistent
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_axe.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 12633762bec..424ded5e4b7 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.14 2004/11/10 14:01:25 dlg Exp $ */ +/* $OpenBSD: if_axe.c,v 1.15 2004/11/11 12:19:12 dlg Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 @@ -778,7 +778,8 @@ axe_rxstart(struct ifnet *ifp) /* Setup new transfer. */ usbd_setup_xfer(c->axe_xfer, sc->axe_ep[AXE_ENDPT_RX], - c, mtod(c->axe_mbuf, char *), AXE_BUFSZ, USBD_SHORT_XFER_OK, + c, c->axe_buf, AXE_BUFSZ, + USBD_SHORT_XFER_OK | USBD_NO_COPY, USBD_NO_TIMEOUT, axe_rxeof); usbd_transfer(c->axe_xfer); axe_unlock_mii(sc); @@ -1142,8 +1143,9 @@ axe_init(void *xsc) for (i = 0; i < AXE_RX_LIST_CNT; i++) { c = &sc->axe_cdata.axe_rx_chain[i]; usbd_setup_xfer(c->axe_xfer, sc->axe_ep[AXE_ENDPT_RX], - c, mtod(c->axe_mbuf, char *), AXE_BUFSZ, - USBD_SHORT_XFER_OK, USBD_NO_TIMEOUT, axe_rxeof); + c, c->axe_buf, AXE_BUFSZ, + USBD_SHORT_XFER_OK | USBD_NO_COPY, + USBD_NO_TIMEOUT, axe_rxeof); usbd_transfer(c->axe_xfer); } |