160895Smsmith# $FreeBSD: releng/11.0/sys/modules/twe/Makefile 148913 2005-08-10 04:01:21Z obrien $ 260895Smsmith 3148913SobrienKMOD= twe 4148913Sobrien.PATH: ${.CURDIR}/../../dev/${KMOD} 5148913SobrienSRCS= bus_if.h device_if.h pci_if.h twe.c twe_freebsd.c 6148913Sobrien 7148913Sobrien#CFLAGS+=-DTWE_DEBUG=0 8148913Sobrien 967555Smsmith# The 3ware controller offers a choice of options related to handling of 1067555Smsmith# mirror consistency in shutdown situations. 1167555Smsmith# 1267555Smsmith# If TWE_SHUTDOWN_NOTIFICATION is defined, the driver will inform the 1367555Smsmith# controller on clean shutdown. On reboot after an unclean shutdown, the 1467555Smsmith# controller will perform a complete mirror rebuild. This is the most 1567555Smsmith# "safe" configuration, but it imposes a severe performance penalty in the 1667555Smsmith# event of an unexpected reboot. 1767555Smsmith# 1867555Smsmith# In the alternate configuration, the controller assumes that all writes to 1967555Smsmith# a mirror complete successfully. In the case of an unclean shutdown, 2067555Smsmith# mirror corruption may occur if the controller is reset or power is lost 2167555Smsmith# during a disk write. This configuration is more suitable if the system 2267555Smsmith# has reliable power, but may be unstable for other reasons. 2367555Smsmith# 2467555SmsmithCFLAGS+=-DTWE_SHUTDOWN_NOTIFICATION 2567555Smsmith 2667555Smsmith# The module can be built to override a compiled-in driver 2767555Smsmith# 2867555Smsmith#CFLAGS+=-DTWE_OVERRIDE 2967555Smsmith 3060966Speter.include <bsd.kmod.mk> 31