xref: /freebsd-13.1/sys/modules/twe/Makefile (revision 193d9e76)
1d3632ec4SMike Smith# $FreeBSD$
2d3632ec4SMike Smith
33e232c60SDavid E. O'BrienKMOD=	twe
4*193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/${KMOD}
53e232c60SDavid E. O'BrienSRCS=	bus_if.h device_if.h pci_if.h twe.c twe_freebsd.c
63e232c60SDavid E. O'Brien
73e232c60SDavid E. O'Brien#CFLAGS+=-DTWE_DEBUG=0
83e232c60SDavid E. O'Brien
9e6c12d85SMike Smith# The 3ware controller offers a choice of options related to handling of
10e6c12d85SMike Smith# mirror consistency in shutdown situations.
11e6c12d85SMike Smith#
12e6c12d85SMike Smith# If TWE_SHUTDOWN_NOTIFICATION is defined, the driver will inform the
13e6c12d85SMike Smith# controller on clean shutdown.  On reboot after an unclean shutdown, the
14e6c12d85SMike Smith# controller will perform a complete mirror rebuild.  This is the most
15e6c12d85SMike Smith# "safe" configuration, but it imposes a severe performance penalty in the
16e6c12d85SMike Smith# event of an unexpected reboot.
17e6c12d85SMike Smith#
18e6c12d85SMike Smith# In the alternate configuration, the controller assumes that all writes to
19e6c12d85SMike Smith# a mirror complete successfully.  In the case of an unclean shutdown,
20e6c12d85SMike Smith# mirror corruption may occur if the controller is reset or power is lost
21e6c12d85SMike Smith# during a disk write.  This configuration is more suitable if the system
22e6c12d85SMike Smith# has reliable power, but may be unstable for other reasons.
23e6c12d85SMike Smith#
24e6c12d85SMike SmithCFLAGS+=-DTWE_SHUTDOWN_NOTIFICATION
25e6c12d85SMike Smith
26e6c12d85SMike Smith# The module can be built to override a compiled-in driver
27e6c12d85SMike Smith#
28e6c12d85SMike Smith#CFLAGS+=-DTWE_OVERRIDE
29e6c12d85SMike Smith
3064db83a8SPeter Wemm.include <bsd.kmod.mk>
31