HomeFreeBSD

cgem: Support building as a loadable kernel module

Description

cgem: Support building as a loadable kernel module

For development, building a driver as kernel module is both convenient
and a time saver (no need for reboot on some change, testing it requires
just kldunload and kldload, a matter of seconds). For some special
cases, it may be even desirable to postpone initializing the network
interface after some action is done (loading a FPGA bitstream may be
required for Zynq/ZynqMP based hardware as an example).

Building is limited to ARM, ARM64 and RISC-V architectures (for Zynq,
ZynqMP, PolarFire Soc based boards, and HiFive based boards are known to
use CGEM at the moment).

Reviewed by: mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34687

Details

Provenance
bsd_dino.skAuthored on Apr 2 2022, 4:53 PM
mhorneCommitted on Apr 3 2022, 3:28 PM
Reviewer
mhorne
Differential Revision
D34687: Add Makefile to create if_cgem.ko kernel module
Parents
rGf052fda5c503: mbuf(9): Remove two double words in the manual page
Branches
Unknown
Tags
Unknown