Add cad(4), a driver for Cadence GEM.
authorvisa <visa@openbsd.org>
Fri, 28 May 2021 15:52:11 +0000 (15:52 +0000)
committervisa <visa@openbsd.org>
Fri, 28 May 2021 15:52:11 +0000 (15:52 +0000)
commitcdbda811b773725acb2e3745ecf6ea9edab32692
treea0634bc8103b136c749904c04a4c8bf2a54a3162
parent1f947e30b76f38b245ad8eb0af8005910b8fb08e
Add cad(4), a driver for Cadence GEM.

This initial revision targets the Zynq-7000, where the GEM implements
single transmit and receive queues with 32-bit DMA addresses. The driver
uses receive checksum offload, but transmit checksum offload is disabled
because of a hardware quirk. Also, the hardware's receive path is prone
to getting stuck if input cannot be handled quickly enough. The driver
attempts to recover by restarting the receiver when no input has been
seen for a while.

OK kettenis@
share/man/man4/Makefile
share/man/man4/cad.4 [new file with mode: 0644]
sys/arch/armv7/conf/GENERIC
sys/arch/armv7/conf/RAMDISK
sys/dev/fdt/files.fdt
sys/dev/fdt/if_cad.c [new file with mode: 0644]