a098d575a8dae18d4d5c79a8ca9bb6dee4ba3d95
[dragonfly.git] / sys / dev / raid / twe / Makefile
1 # $FreeBSD: src/sys/modules/twe/Makefile,v 1.1.2.2 2000/10/27 06:04:54 msmith Exp $
2 # $DragonFly: src/sys/dev/raid/twe/Makefile,v 1.2 2003/06/17 04:28:47 dillon Exp $
3
4 #
5 # The 3ware controller offers a choice of options related to handling of
6 # mirror consistency in shutdown situations.
7 #
8 # If TWE_SHUTDOWN_NOTIFICATION is defined, the driver will inform the 
9 # controller on clean shutdown.  On reboot after an unclean shutdown, the 
10 # controller will perform a complete mirror rebuild.  This is the most
11 # "safe" configuration, but it imposes a severe performance penalty in the
12 # event of an unexpected reboot.
13 #
14 # In the alternate configuration, the controller assumes that all writes to
15 # a mirror complete successfully.  In the case of an unclean shutdown,
16 # mirror corruption may occur if the controller is reset or power is lost
17 # during a disk write.  This configuration is more suitable if the system
18 # has reliable power, but may be unstable for other reasons.
19 #
20 CFLAGS+=-DTWE_SHUTDOWN_NOTIFICATION
21
22 #
23 # The module can be built to override a compiled-in driver
24 #
25 #CFLAGS+=-DTWE_OVERRIDE
26
27 .PATH:  ${.CURDIR}/../../dev/twe
28 KMOD=   twe
29 SRCS=   bus_if.h device_if.h pci_if.h twe.c twe_freebsd.c
30
31 #CFLAGS+=-DTWE_DEBUG=0
32
33 .include <bsd.kmod.mk>