aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/hptmv
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2004-10-24 05:37:23 +0000
committerScott Long <scottl@FreeBSD.org>2004-10-24 05:37:23 +0000
commit1713e81b9cdf06d2a9a365a7ded13a54fad84798 (patch)
treeb453bf29a00c25f7d7ac2293d301118aaa94d647 /sys/modules/hptmv
parentd2c50f8babb5276a587948a958b2486ad8509063 (diff)
downloadsrc-1713e81b9cdf06d2a9a365a7ded13a54fad84798.tar.gz
src-1713e81b9cdf06d2a9a365a7ded13a54fad84798.zip
Import the HighPoint RocketRAID 182x driver. Thanks to HighPoint for
providing the original driver, and thanks to IronSystems for providing hardware for testing.
Notes
Notes: svn path=/head/; revision=136849
Diffstat (limited to 'sys/modules/hptmv')
-rw-r--r--sys/modules/hptmv/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/sys/modules/hptmv/Makefile b/sys/modules/hptmv/Makefile
new file mode 100644
index 000000000000..468232953c93
--- /dev/null
+++ b/sys/modules/hptmv/Makefile
@@ -0,0 +1,62 @@
+#
+# Makefile for RR182x FreeBSD driver
+# Copyright (c) 2003-2004 HighPoint Technologies, Inc. All rights reserved
+#
+# $FreeBSD$
+
+HPTMV= ${.CURDIR}/../../contrib/dev/hptmv
+.PATH: ${.CURDIR}/../../dev/hptmv ${HPTMV}
+
+KMOD= hptmv
+SRCS= opt_scsi.h opt_cam.h
+SRCS+= bus_if.h device_if.h pci_if.h
+SRCS+= mv.c entry.c vers.c
+SRCS+= ioctl.c hptproc.c gui_lib.c
+OBJS+= raid.o
+
+raid.o: ${HPTMV}/i386-elf.raid.o.uu
+ uudecode -p < ${HPTMV}/i386-elf.raid.o.uu > ${.TARGET}
+
+#
+# Driver version number.
+#
+.ifndef DRIVER_VERSION
+DRIVER_VERSION = "1.1"
+.endif
+
+vers.c: mv.o
+ @echo char DRIVER_VERSION[]=\"$(DRIVER_VERSION)\"\; > ${.OBJDIR}/$(.TARGET)
+
+# calculate system pointer size.
+BITS_PER_LONG= 4
+
+#
+# Debug Options:
+#
+# -DDEBUG: include debug code
+# -DDEBUG_LEVEL=x:
+# 0 - No debug output message
+# 1 - print only error messages
+# 2 - print error and warning
+# 3 - print all messages (info, warning, error)
+#
+#DEBUGOPT = -O2
+
+.if defined(DEBUG) && $(DEBUG) == 1
+DEBUGOPT += -DDEBUG
+.if defined(DEBUG_LEVEL)
+DEBUGOPT += -DDEBUG_LEVEL=$(DEBUG_LEVEL)
+.else
+DEBUGOPT += -DDEBUG_LEVEL=1
+.endif
+.endif
+
+.if defined(FOR_DEMO) && $(FOR_DEMO) == 1
+DEBUGOPT += -DFOR_DEMO
+.endif
+
+CFLAGS+= -D__KERNEL__=1 -DKERNEL=1 -D_KERNEL=1 -D_FREEBSD_=1 ${DEBUGOPT} \
+ -DBITS_PER_LONG=$(BITS_PER_LONG)
+
+CLEANFILES += vers.c
+.include <bsd.kmod.mk>