]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add FECFLAG_AVB variant flag to support new features on imx7.
authorIan Lepore <ian@FreeBSD.org>
Sat, 28 Oct 2017 17:06:13 +0000 (17:06 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sat, 28 Oct 2017 17:06:13 +0000 (17:06 +0000)
commit0a3df28448404f01d0324811651b94ebd81ddd4a
treeab189b3c11a4411b33ac804f166dac35280e9dc5
parent2eedde5f72ca0a9022d332deef3a34a090307b1c
Add FECFLAG_AVB variant flag to support new features on imx7.

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.

PR: 222634
Submitted by: sebastian.huber@embedded-brains.de
sys/dev/ffec/if_ffec.c
sys/dev/ffec/if_ffecreg.h