summaryrefslogtreecommitdiffstats
path: root/sys/modules/twe/Makefile
blob: 052c541fab512d5449b99809cb0c291f1ce1757e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $FreeBSD$

#
# The 3ware controller offers a choice of options related to handling of
# mirror consistency in shutdown situations.
#
# If TWE_SHUTDOWN_NOTIFICATION is defined, the driver will inform the 
# controller on clean shutdown.  On reboot after an unclean shutdown, the 
# controller will perform a complete mirror rebuild.  This is the most
# "safe" configuration, but it imposes a severe performance penalty in the
# event of an unexpected reboot.
#
# In the alternate configuration, the controller assumes that all writes to
# a mirror complete successfully.  In the case of an unclean shutdown,
# mirror corruption may occur if the controller is reset or power is lost
# during a disk write.  This configuration is more suitable if the system
# has reliable power, but may be unstable for other reasons.
#
CFLAGS+=-DTWE_SHUTDOWN_NOTIFICATION

#
# The module can be built to override a compiled-in driver
#
#CFLAGS+=-DTWE_OVERRIDE

.PATH: ${.CURDIR}/../../dev/twe

KMOD=	twe
SRCS=	bus_if.h device_if.h pci_if.h twe.c twe_freebsd.c

#CFLAGS+=-DTWE_DEBUG=0

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud