xref: /freebsd-13.1/sys/modules/twa/Makefile (revision 193d9e76)
13e232c60SDavid E. O'Brien# $FreeBSD$
2f0c1dee2SVinod Kashyap#
34511a5c8SScott Long# Copyright (c) 2004-06 Applied Micro Circuits Corporation.
4f0c1dee2SVinod Kashyap# All rights reserved.
5f0c1dee2SVinod Kashyap#
6f0c1dee2SVinod Kashyap# Redistribution and use in source and binary forms, with or without
7f0c1dee2SVinod Kashyap# modification, are permitted provided that the following conditions
8f0c1dee2SVinod Kashyap# are met:
9f0c1dee2SVinod Kashyap# 1. Redistributions of source code must retain the above copyright
10f0c1dee2SVinod Kashyap#    notice, this list of conditions and the following disclaimer.
11f0c1dee2SVinod Kashyap# 2. Redistributions in binary form must reproduce the above copyright
12f0c1dee2SVinod Kashyap#    notice, this list of conditions and the following disclaimer in the
13f0c1dee2SVinod Kashyap#    documentation and/or other materials provided with the distribution.
14f0c1dee2SVinod Kashyap#
15f0c1dee2SVinod Kashyap# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16f0c1dee2SVinod Kashyap# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17f0c1dee2SVinod Kashyap# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18f0c1dee2SVinod Kashyap# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19f0c1dee2SVinod Kashyap# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20f0c1dee2SVinod Kashyap# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21f0c1dee2SVinod Kashyap# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22f0c1dee2SVinod Kashyap# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23f0c1dee2SVinod Kashyap# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24f0c1dee2SVinod Kashyap# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25f0c1dee2SVinod Kashyap# SUCH DAMAGE.
26ff1625c6SVinod Kashyap#
27f0c1dee2SVinod Kashyap
28ff1625c6SVinod Kashyap#
29f0c1dee2SVinod Kashyap# 3ware driver for 9000 series storage controllers.
30ff1625c6SVinod Kashyap#
31f0c1dee2SVinod Kashyap# Author: Vinod Kashyap
324511a5c8SScott Long# Modifications by: Adam Radford
33ff1625c6SVinod Kashyap#
34f0c1dee2SVinod Kashyap
3599635d6cSVinod KashyapKMOD = twa
36*193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/${KMOD}
37f0c1dee2SVinod KashyapSRCS=  tw_osl_freebsd.c tw_osl_cam.c \
38f0c1dee2SVinod Kashyap      tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
3999635d6cSVinod Kashyap      bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h
4099635d6cSVinod Kashyap
41ff1625c6SVinod Kashyap# Uncomment the following line to turn on Enclosure Services support.
42ff1625c6SVinod Kashyap#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT
43ff1625c6SVinod Kashyap
443e232c60SDavid E. O'Brien#CFLAGS+= -DTWA_DEBUG=0
45*193d9e76SEnji CooperCFLAGS+= -I${SRCTOP}/sys/dev/${KMOD}
46f0c1dee2SVinod Kashyap
4799635d6cSVinod Kashyap.include <bsd.kmod.mk>
48