diff --git a/sys/modules/Makefile b/sys/modules/Makefile --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -147,6 +147,7 @@ ${_ice_ddp} \ ${_ida} \ if_bridge \ + ${_if_cgem} \ if_disc \ if_edsc \ ${_if_enc} \ @@ -575,6 +576,11 @@ .endif .endif +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ + ${MACHINE_CPUARCH} == "riscv" +_if_cgem= if_cgem +.endif + # These rely on 64bit atomics .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" _mps= mps diff --git a/sys/modules/if_cgem/Makefile b/sys/modules/if_cgem/Makefile new file mode 100644 --- /dev/null +++ b/sys/modules/if_cgem/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/cadence + +KMOD= if_cgem +SRCS= if_cgem.c +SRCS+= bus_if.h device_if.h miibus_if.h ofw_bus_if.h + +.include