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_ar9300 3541059135SAdrian Chadd 3641059135SAdrian Chadd# FreeBSD module loading pieces 3741059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ 3841059135SAdrian ChaddSRCS= ah_osdep_ar9300.c 3941059135SAdrian Chadd 4041059135SAdrian Chadd# + AR9300 HAL 4141059135SAdrian Chadd.PATH: ${SRCTOP}/sys/contrib/dev/ath/ath_hal/ar9300 4241059135SAdrian ChaddSRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c 4341059135SAdrian ChaddSRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c 4441059135SAdrian ChaddSRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c 4541059135SAdrian ChaddSRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c 4641059135SAdrian ChaddSRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c 4741059135SAdrian ChaddSRCS+= ar9300_power.c ar9300_timer.c ar9300_spectral.c 4841059135SAdrian Chadd 4941059135SAdrian ChaddSRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h 5041059135SAdrian Chadd 5141059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal 5241059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ 5341059135SAdrian Chadd 5441059135SAdrian Chadd.include <bsd.kmod.mk> 5541059135SAdrian Chadd 5641059135SAdrian Chadd# AR9300 HAL build overrides, as there's still some code to tidy up 5741059135SAdrian ChaddCWARNFLAGS.ar9300_eeprom.c= ${NO_WCONSTANT_CONVERSION} 5841059135SAdrian ChaddCWARNFLAGS.ar9300_reset.c= ${NO_WSOMETIMES_UNINITIALIZED} -Wno-unused-function 59*369216b0SWarner LoshCWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} 60