summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/ffec (follow)
Commit message (Collapse)AuthorAgeFilesLines
* if_ffec: Allow PHY that is connected to other FFECChristian Mauderer2022-06-071-0/+120
| | | | | | | | | The i.MX6UL (and some others from the i.MX family) have shared MDIO lines for multiple FFECs. This patch allows to use the MDIO interface from another Ethernet controller. Note that you have to make sure that the FFECs are initialized in the right order. Normally that can be done via FDT.
* if_ffec: Reduce buffer sizeChristian Mauderer2022-06-071-0/+8
| | | | | Typical embedded systems don't have that much memory. Reduce the buffer size to something more sensible for the usual type of application.
* if_ffec: Fix cache handling on txChristian Mauderer2020-11-201-5/+6
| | | | | | | | | | | | | | | | With the previous fix, it could happen that the end of the packet hasn't been flushed. For example assume the following addresses: ds_addr: 0x81c804A ds_len: 0x57 In that case the data ends at 0x81c80a1. But due to the rounding the area from 0x81c8040 to 0x81c80a0 would have been flushed. This fix now first calculates the start and end address, aligns these addresses and then recalculates the len that has to be flushed. Update #4180
* if_ffec: Align send buffers to cache if necessary.Christian Mauderer2020-07-291-2/+10
|
* Update to FreeBSD head 2018-10-23Sebastian Huber2018-10-251-5/+7
| | | | | | | | | | | Git mirror commit 59f44d20be3f99d181ca742e636d45fc39ec982b. This commit updates OpenSSL to version 1.1.1. This required an update of racoon which uses some internal stuff from OpenSSL and seems to be mostly unmaintained, e.g. there is update in the FreeBSD ports to cope with OpenSSL 1.1.1. Update #3472.
* Update to FreeBSD head 2018-06-01Sebastian Huber2018-09-211-1/+1
| | | | | | Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
* Update to FreeBSD head 2017-12-01Sebastian Huber2018-09-212-72/+88
| | | | | | Git mirror commit e724f51f811a4b2bd29447f8b85ab5c2f9b88266. Update #3472.
* Update to FreeBSD head 2017-08-01Sebastian Huber2018-09-211-64/+58
| | | | | | Git mirror commit f5002f5e5f78cae9f0269d812dc0aedb0339312c. Update #3472.
* Update to FreeBSD head 2017-06-01Sebastian Huber2018-09-211-2/+8
| | | | | | Git mirror commit dfb26efac4ce9101dda240e94d9ab53f80a9e131. Update #3472.
* ffec: Fix commentSebastian Huber2017-10-261-4/+4
| | | | Update #3090.
* ffec: Add checksum offloadSebastian Huber2017-10-252-3/+53
| | | | Update #3090.
* ffec: Add interrupt coalescing supportSebastian Huber2017-10-252-0/+186
| | | | | | Code is an adapted from the TSEC (if_tsec) network interface driver. Update #3090.
* ffec: Increase buffer descriptor count to 512Sebastian Huber2017-10-251-2/+2
| | | | Update #3090.
* ffec: Defragment transmit mbuf only if necessarySebastian Huber2017-10-251-104/+139
| | | | | | | | | Use structure similar to TSEC (if_tsec) driver. The use of bus_dmamap_sync() differs these network interface drivers. This should not be the case. Update #3090.
* ffec: Fix NULL pointer accessSebastian Huber2017-10-251-0/+3
| | | | Update #3090.
* ffec: Use RACC[SHIFT16]Sebastian Huber2017-10-251-16/+35
| | | | | | | | | This avoids the move of entire receive frames to meet the alignment requirements of the IP header and so on. Add FECFLAG_RACC feature flag for this similar to the Linux driver. Update #3090.
* ffec: Add wmb() to descriptor updatesSebastian Huber2017-09-271-0/+2
|
* ffec: Support up to three interrupt requestsSebastian Huber2017-09-271-18/+34
|
* ffec: Avoid AXI bus issues due to a MAC resetSebastian Huber2017-09-271-1/+8
|
* ffec: Add FECFLAG_AVB variant flagSebastian Huber2017-09-272-7/+17
| | | | | | | | | | | | | | | 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.
* ffec: Increase descriptor ring alignmentSebastian Huber2017-09-271-1/+1
| | | | For optimal performance a 64-byte alignment is recommended.
* ffec: Use explicit cache synchronizationSebastian Huber2017-09-271-0/+7
|
* ffec: Support more rgmii variantsSebastian Huber2017-09-271-0/+4
|
* ffec: Port to RTEMSSebastian Huber2017-09-271-0/+4
|
* ffec: Import from FreeBSDSebastian Huber2017-09-272-0/+2098