]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
alc(4): add support for Mikrotik 10/25G NIC
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 19 May 2021 22:14:18 +0000 (01:14 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 19 May 2021 22:30:25 +0000 (01:30 +0300)
commit77b637338a3656d4ccedb9798a3f98ac283962f4
tree0cf2bd187941656ec95f28752048d366bf1c8002
parent96480d9b338bd501d1a92bd961a0776ff0c39f71
alc(4): add support for Mikrotik 10/25G NIC

The new Mikrotik 10/25G NIC is mostly compatible with AR8151 hardware,
with few exceptions:

* card supports only 32bit DMA operations
* card does not support write-one-to-clear semantics for interrupt status
  register
* MDIO operations can take longer to complete

This patch adds support for Mikrotik 10/25G NIC to the alc driver
while maintaining support for all earlier HW.

The patch was tested with FreeBSD main branch as of commit
f4b38c360e63a6e66245efedbd6c070f9c0aee55

This was tested on Intel i7-4790K system with Mikrotik 10/25G NIC.
This was tested on Intel i7-4790K system with RB44Ge (AR8151 based 4-port NIC)
to verify backwards compatibility.

PR: 256000
Submitted by:  Gatis Peisenieks  <gatis@mikrotik.com>
MFC after: 1 week
sys/dev/alc/if_alc.c
sys/dev/alc/if_alcreg.h
sys/dev/alc/if_alcvar.h