svn commit: r346696 - in head/sys: arm/allwinner modules/allwinner modules/allwinner/if_awg

Emmanuel Vadot manu at FreeBSD.org
Thu Apr 25 18:42:29 UTC 2019


Author: manu
Date: Thu Apr 25 18:42:27 2019
New Revision: 346696
URL: https://svnweb.freebsd.org/changeset/base/346696

Log:
  arm: allwinner: Add pnp info to if_awg and compile it as module too
  
  While here make it depend on aw_sid as it's needed for mac generation.
  
  MFC after:	1 month

Added:
  head/sys/modules/allwinner/if_awg/
  head/sys/modules/allwinner/if_awg/Makefile   (contents, props changed)
Modified:
  head/sys/arm/allwinner/if_awg.c
  head/sys/modules/allwinner/Makefile

Modified: head/sys/arm/allwinner/if_awg.c
==============================================================================
--- head/sys/arm/allwinner/if_awg.c	Thu Apr 25 18:42:07 2019	(r346695)
+++ head/sys/arm/allwinner/if_awg.c	Thu Apr 25 18:42:27 2019	(r346696)
@@ -1967,6 +1967,7 @@ static devclass_t awg_devclass;
 
 DRIVER_MODULE(awg, simplebus, awg_driver, awg_devclass, 0, 0);
 DRIVER_MODULE(miibus, awg, miibus_driver, miibus_devclass, 0, 0);
-
 MODULE_DEPEND(awg, ether, 1, 1, 1);
 MODULE_DEPEND(awg, miibus, 1, 1, 1);
+MODULE_DEPEND(awg, aw_sid, 1, 1, 1);
+SIMPLEBUS_PNP_INFO(compat_data);

Modified: head/sys/modules/allwinner/Makefile
==============================================================================
--- head/sys/modules/allwinner/Makefile	Thu Apr 25 18:42:07 2019	(r346695)
+++ head/sys/modules/allwinner/Makefile	Thu Apr 25 18:42:27 2019	(r346696)
@@ -6,6 +6,7 @@ SUBDIR = \
 	aw_sid \
 	aw_spi \
 	aw_thermal \
-	axp81x
+	axp81x \
+	if_awg
 
 .include <bsd.subdir.mk>

Added: head/sys/modules/allwinner/if_awg/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sys/modules/allwinner/if_awg/Makefile	Thu Apr 25 18:42:27 2019	(r346696)
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/arm/allwinner
+
+KMOD=	if_awg
+SRCS=	if_awg.c
+
+SRCS+=	\
+	bus_if.h \
+	clknode_if.h \
+	device_if.h \
+	ofw_bus_if.h \
+
+.include <bsd.kmod.mk>


More information about the svn-src-head mailing list