summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-10-24 05:37:23 +0000
committerscottl <scottl@FreeBSD.org>2004-10-24 05:37:23 +0000
commit7a9167aadd43576d03ace6553b26d037722487a8 (patch)
treeb453bf29a00c25f7d7ac2293d301118aaa94d647 /sys/modules
parentbd52d090880978dc2b00a9da57d22b3194a23c1e (diff)
downloadFreeBSD-src-7a9167aadd43576d03ace6553b26d037722487a8.zip
FreeBSD-src-7a9167aadd43576d03ace6553b26d037722487a8.tar.gz
Import the HighPoint RocketRAID 182x driver. Thanks to HighPoint for
providing the original driver, and thanks to IronSystems for providing hardware for testing.
Diffstat (limited to 'sys/modules')
-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 0000000..4682329
--- /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>
OpenPOWER on IntegriCloud