141059135SAdrian Chadd# 241059135SAdrian Chadd# Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 341059135SAdrian Chadd# All rights reserved. 441059135SAdrian Chadd# 541059135SAdrian Chadd# Redistribution and use in source and binary forms, with or without 641059135SAdrian Chadd# modification, are permitted provided that the following conditions 741059135SAdrian Chadd# are met: 841059135SAdrian Chadd# 1. Redistributions of source code must retain the above copyright 941059135SAdrian Chadd# notice, this list of conditions and the following disclaimer, 1041059135SAdrian Chadd# without modification. 1141059135SAdrian Chadd# 2. Redistributions in binary form must reproduce at minimum a disclaimer 1241059135SAdrian Chadd# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 1341059135SAdrian Chadd# redistribution must be conditioned upon including a substantially 1441059135SAdrian Chadd# similar Disclaimer requirement for further binary redistribution. 1541059135SAdrian Chadd# 1641059135SAdrian Chadd# NO WARRANTY 1741059135SAdrian Chadd# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1841059135SAdrian Chadd# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1941059135SAdrian Chadd# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 2041059135SAdrian Chadd# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 2141059135SAdrian Chadd# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 2241059135SAdrian Chadd# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2341059135SAdrian Chadd# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2441059135SAdrian Chadd# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 2541059135SAdrian Chadd# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2641059135SAdrian Chadd# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 2741059135SAdrian Chadd# THE POSSIBILITY OF SUCH DAMAGES. 2841059135SAdrian Chadd# 2941059135SAdrian Chadd# 3041059135SAdrian Chadd 3141059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath 3241059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ath_hal 3341059135SAdrian Chadd 3441059135SAdrian ChaddKMOD= ath_hal 3541059135SAdrian Chadd 3641059135SAdrian ChaddSRCS= ah_osdep.c ah.c ah_regdomain.c 3741059135SAdrian ChaddSRCS+= ah_eeprom_v1.c ah_eeprom_v3.c ah_eeprom_v14.c ah_eeprom_v4k.c 3841059135SAdrian Chadd 3941059135SAdrian ChaddSRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h 4041059135SAdrian Chadd 4141059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal 4241059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ 4341059135SAdrian Chadd 4441059135SAdrian Chadd.include <bsd.kmod.mk> 4541059135SAdrian Chadd 465bb3134aSKonstantin BelousovEXPORT_SYMS= YES 475bb3134aSKonstantin Belousov 4841059135SAdrian ChaddCWARNFLAGS.ah_regdomain.c= ${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW} 49*369216b0SWarner LoshCWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} 50