1250661Sdavidcs#/*
2284982Sdavidcs# * Copyright (c) 2011-2016 Qlogic Corporation
3250661Sdavidcs# * All rights reserved.
4250661Sdavidcs# *
5250661Sdavidcs# *  Redistribution and use in source and binary forms, with or without
6250661Sdavidcs# *  modification, are permitted provided that the following conditions
7250661Sdavidcs# *  are met:
8250661Sdavidcs# *
9250661Sdavidcs# *  1. Redistributions of source code must retain the above copyright
10250661Sdavidcs# *     notice, this list of conditions and the following disclaimer.
11250661Sdavidcs# *  2. Redistributions in binary form must reproduce the above copyright
12250661Sdavidcs# *     notice, this list of conditions and the following disclaimer in the
13250661Sdavidcs# *     documentation and/or other materials provided with the distribution.
14250661Sdavidcs# *
15250661Sdavidcs# *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16250661Sdavidcs# *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17250661Sdavidcs# *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18250661Sdavidcs# *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19250661Sdavidcs# *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20250661Sdavidcs# *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21250661Sdavidcs# *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22250661Sdavidcs# *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23250661Sdavidcs# *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24250661Sdavidcs# *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25250661Sdavidcs# *  POSSIBILITY OF SUCH DAMAGE.
26250661Sdavidcs# */
27250661Sdavidcs#/*
28250661Sdavidcs# * File : Makefile
29250661Sdavidcs# * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656.
30250661Sdavidcs# */
31250661Sdavidcs#
32250661Sdavidcs# $FreeBSD: stable/10/sys/modules/qlxgbe/Makefile 322975 2017-08-28 19:17:28Z davidcs $
33250661Sdavidcs#
34250661Sdavidcs
35250661Sdavidcs.PATH: ${.CURDIR}/../../dev/qlxgbe
36322975Sdavidcs#.PATH: ${.CURDIR}
37250661Sdavidcs
38250661SdavidcsKMOD=if_qlxgbe
39250661SdavidcsSRCS=ql_os.c ql_dbg.c ql_hw.c ql_misc.c ql_isr.c ql_ioctl.c
40250661SdavidcsSRCS+= ql_reset.c
41284982SdavidcsSRCS+= ql_fw.c
42284982SdavidcsSRCS+= ql_boot.c
43284982SdavidcsSRCS+= ql_minidump.c
44284982Sdavidcs
45250661SdavidcsSRCS+= device_if.h bus_if.h pci_if.h
46250661Sdavidcs
47315069Savg# Uses unnamed structure and union fields
48315069SavgCFLAGS+= ${GCC_MS_EXTENSIONS}
49315069Savg
50322975SdavidcsCFLAGS += -DQLA_LOCK_NO_SLEEP=1
51322975Sdavidcs#CFLAGS += -DQL_DBG -g
52284982Sdavidcs# Please turn off QL_LDFLASH_FW when you enable QL_ENABLE_ISCSI_TLV
53284982Sdavidcs# You may comment out both QL_LDFLASH_FW and QL_ENABLE_ISCSI_TLV if you like
54284982Sdavidcs# the firmware and boot loader compiled into the driver
55284982Sdavidcs#CFLAGS += -DQL_ENABLE_ISCSI_TLV
56284982Sdavidcs#CFLAGS += -DQL_LDFLASH_FW
57250661Sdavidcs
58250661Sdavidcs.include <bsd.kmod.mk>
59250661Sdavidcs
60