summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/ffec/if_ffecreg.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-27 09:54:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-27 11:02:06 +0200
commitba0b05902bb3ee23afd5a2ee2ca589914f11beaa (patch)
tree9ba49bdcae4cac0b00003b22fa6a1eba628fe801 /freebsd/sys/dev/ffec/if_ffecreg.h
parentffec: Increase descriptor ring alignment (diff)
downloadrtems-libbsd-ba0b05902bb3ee23afd5a2ee2ca589914f11beaa.tar.bz2
ffec: Add FECFLAG_AVB variant flag
This flag is analogous to the Linux driver FEC_QUIRK_HAS_AVB. It indicates an FEC with support for Audio Video Bridging (AVB). This indicator is used for various other parts in the Linux driver (drivers/net/ethernet/freescale/fec_main.c). Use it to customize the receive/transmit buffer alignment. The receive buffer alignment increased to 64-bytes on the i.MX 6SoloX and i.MX 7Dual. There are no hard alignment restrictions for transmit buffers on these chips. Fix the ffec_softc::fectype type to provide enough storage for the feature flags.
Diffstat (limited to 'freebsd/sys/dev/ffec/if_ffecreg.h')
-rw-r--r--freebsd/sys/dev/ffec/if_ffecreg.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/freebsd/sys/dev/ffec/if_ffecreg.h b/freebsd/sys/dev/ffec/if_ffecreg.h
index 6faa0950..bb1d1979 100644
--- a/freebsd/sys/dev/ffec/if_ffecreg.h
+++ b/freebsd/sys/dev/ffec/if_ffecreg.h
@@ -318,7 +318,5 @@ struct ffec_hwdesc
* DMA transfers. These values are expressed in bytes (not bits).
*/
#define FEC_DESC_RING_ALIGN 64
-#define FEC_RXBUF_ALIGN 16
-#define FEC_TXBUF_ALIGN 16
#endif /* IF_FFECREG_H */