git: 4a167205f225 - main - etherswitch: add etherswitch module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Apr 2025 18:38:06 UTC
The branch main has been updated by adrian:
URL: https://cgit.FreeBSD.org/src/commit/?id=4a167205f225d2e739dac273d7b7cc228f925737
commit 4a167205f225d2e739dac273d7b7cc228f925737
Author: Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2025-04-24 02:58:06 +0000
Commit: Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-04-27 18:03:45 +0000
etherswitch: add etherswitch module
Add the etherswitch module
Differential Revision: https://reviews.freebsd.org/D50026
Reviewed by: imp
---
sys/modules/Makefile | 1 +
sys/modules/etherswitch/Makefile | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 46fd730463d6..88f3f5c4bf1c 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -110,6 +110,7 @@ SUBDIR= \
${_enic} \
${_enetc} \
${_et} \
+ etherswitch \
evdev \
${_exca} \
ext2fs \
diff --git a/sys/modules/etherswitch/Makefile b/sys/modules/etherswitch/Makefile
new file mode 100644
index 000000000000..087231545cd4
--- /dev/null
+++ b/sys/modules/etherswitch/Makefile
@@ -0,0 +1,9 @@
+.PATH: ${SRCTOP}/sys/dev/etherswitch
+
+KMOD = etherswitch
+
+SRCS= etherswitch.c
+SRCS+= mdio_if.h miibus_if.h etherswitch_if.h etherswitch_if.c
+CFLAGS+= -I${SRCTOP}/sys/dev/etherswitch
+
+.include <bsd.kmod.mk>