diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2020-05-27 09:55:06 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2020-07-29 11:19:14 +0200 |
commit | 36b588eb8bb74677cdbe1728cbdc96890fd818bb (patch) | |
tree | 919c28e34f0d9b7479deb6734e8db5881cf238c8 /freebsd/sys/dev/rtwn/usb/rtwn_usb_tx.c | |
parent | busdma: Option to round to cache lines on sync (diff) | |
download | rtems-libbsd-36b588eb8bb74677cdbe1728cbdc96890fd818bb.tar.bz2 |
rtwn_usb: Make sure buffers are cache aligned
Diffstat (limited to '')
-rw-r--r-- | freebsd/sys/dev/rtwn/usb/rtwn_usb_tx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/freebsd/sys/dev/rtwn/usb/rtwn_usb_tx.c b/freebsd/sys/dev/rtwn/usb/rtwn_usb_tx.c index 61f0ba43..14762c0c 100644 --- a/freebsd/sys/dev/rtwn/usb/rtwn_usb_tx.c +++ b/freebsd/sys/dev/rtwn/usb/rtwn_usb_tx.c @@ -64,6 +64,10 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/usb/rtwn_usb_reg.h> #include <dev/rtwn/usb/rtwn_usb_tx.h> +#ifdef __rtems__ +#include <machine/rtems-bsd-cache.h> +#endif /* __rtems__ */ + static struct rtwn_data * _rtwn_usb_getbuf(struct rtwn_usb_softc *); static struct rtwn_data * rtwn_usb_getbuf(struct rtwn_usb_softc *); static void rtwn_usb_txeof(struct rtwn_usb_softc *, @@ -170,6 +174,9 @@ tr_setup: if (data->ni == NULL && RTWN_CHIP_HAS_BCNQ1(sc)) rtwn_switch_bcnq(sc, data->id); usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen); +#if defined(__rtems__) && defined(CPU_DATA_CACHE_ALIGNMENT) + usbd_xfer_frame_allow_cache_line_blow_up(xfer, 0); +#endif /* __rtems__ */ usbd_transfer_submit(xfer); if (sc->sc_ratectl != RTWN_RATECTL_NET80211) sc->sc_tx_n_active++; |