summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/nand/nand.c2
-rw-r--r--sys/dev/nand/nandsim.c2
-rw-r--r--sys/modules/nand/Makefile13
3 files changed, 17 insertions, 0 deletions
diff --git a/sys/dev/nand/nand.c b/sys/dev/nand/nand.c
index ad5bc40..f46d0f0 100644
--- a/sys/dev/nand/nand.c
+++ b/sys/dev/nand/nand.c
@@ -830,3 +830,5 @@ nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len)
return (err);
}
+
+MODULE_VERSION(nand, 1);
diff --git a/sys/dev/nand/nandsim.c b/sys/dev/nand/nandsim.c
index 5390c01..aeb35f3 100644
--- a/sys/dev/nand/nandsim.c
+++ b/sys/dev/nand/nandsim.c
@@ -663,3 +663,5 @@ nandsim_modevent(module_t mod __unused, int type, void *data __unused)
DEV_MODULE(nandsim, nandsim_modevent, NULL);
MODULE_VERSION(nandsim, 1);
+MODULE_DEPEND(nandsim, nand, 1, 1, 1);
+MODULE_DEPEND(nandsim, alq, 1, 1, 1);
diff --git a/sys/modules/nand/Makefile b/sys/modules/nand/Makefile
new file mode 100644
index 0000000..321388b
--- /dev/null
+++ b/sys/modules/nand/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/nand
+
+KMOD = nand
+SRCS= nand.c nand_bbt.c nand_cdev.c nand_generic.c nand_geom.c \
+ nand_id.c nandbus.c nandbus_if.c nand_if.c nfc_if.c \
+ nand_if.h device_if.h bus_if.h nfc_if.h nandbus_if.h
+
+MFILES= kern/bus_if.m kern/device_if.m dev/nand/nfc_if.m \
+ dev/nand/nand_if.m dev/nand/nandbus_if.m
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud