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# $FreeBSD$ 3041059135SAdrian Chadd# 3141059135SAdrian Chadd 3241059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath 3341059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ath_hal 3441059135SAdrian Chadd 3541059135SAdrian ChaddKMOD= ath_hal_ar5211 3641059135SAdrian Chadd 3741059135SAdrian Chadd# FreeBSD module loading pieces 3841059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ 3941059135SAdrian ChaddSRCS= ah_osdep_ar5211.c 4041059135SAdrian Chadd 4141059135SAdrian Chadd# 4241059135SAdrian Chadd# AR5211 support; these are second generation 11b/g/a devices 4341059135SAdrian Chadd# (but 11g was OFDM only and is not supported). 4441059135SAdrian Chadd# 4541059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5211 4641059135SAdrian ChaddSRCS+= ar5211_attach.c ar5211_beacon.c ar5211_interrupts.c \ 4741059135SAdrian Chadd ar5211_keycache.c ar5211_misc.c ar5211_phy.c ar5211_power.c \ 4841059135SAdrian Chadd ar5211_recv.c ar5211_reset.c ar5211_xmit.c 4941059135SAdrian Chadd 5041059135SAdrian ChaddSRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h 5141059135SAdrian Chadd 5241059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal 5341059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ 5441059135SAdrian Chadd 5541059135SAdrian Chadd.include <bsd.kmod.mk> 56*8881d206SWarner Losh 57*8881d206SWarner LoshCWARNFLAGS+= -Wno-unused-but-set-variable 58