1# 2# Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer, 10# without modification. 11# 2. Redistributions in binary form must reproduce at minimum a disclaimer 12# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 13# redistribution must be conditioned upon including a substantially 14# similar Disclaimer requirement for further binary redistribution. 15# 16# NO WARRANTY 17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 20# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 21# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27# THE POSSIBILITY OF SUCH DAMAGES. 28# 29# $FreeBSD$ 30# 31 32.PATH: ${SRCTOP}/sys/dev/ath 33.PATH: ${SRCTOP}/sys/dev/ath/ath_hal 34 35KMOD= ath_hal_ar5416 36 37# FreeBSD module loading pieces 38.PATH: ${SRCTOP}/sys/dev/ath/ 39SRCS= ah_osdep_ar5416.c 40 41# 42# AR5416, AR9130, AR9160, AR9220, AR9280, AR9285, AR9287 support. 43 44# Note enabling this support requires defining AH_SUPPORT_AR5416 45# in opt_ah.h so the 11n tx/rx descriptor format is handled. 46# 47# NB: 9160 depends on 5416 but 5416 does not require 9160 48# 49# + 5416 (Owl) 50.PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5416 51 52SRCS+= ar5416_ani.c ar5416_attach.c ar5416_beacon.c ar5416_btcoex.c \ 53 ar5416_cal.c ar5416_cal_iq.c ar5416_cal_adcgain.c ar5416_cal_adcdc.c \ 54 ar5416_eeprom.c ar5416_gpio.c ar5416_interrupts.c ar5416_keycache.c \ 55 ar5416_misc.c ar5416_phy.c ar5416_power.c ar5416_radar.c ar5416_spectral.c \ 56 ar5416_recv.c ar5416_reset.c ar5416_xmit.c 57 58SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h 59 60# RF backend for 5416, 9130 and 9160 61SRCS+= ar2133.c 62 63# + AR9160 (Sowl) 64.PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9001 65SRCS+= ar9160_attach.c 66 67# + AR9130 - (Sowl) - Embedded (AR913x SoC) 68# 69# This requires AH_SUPPORT_AR9130 in order to function as some 70# register values have shifted for this chipset. Definig this however 71# (currently) breaks non-AR9130 chipsets - since this is an embedded 72# chipset and no other radios are glued to it, this shouldn't pose a 73# problem. 74SRCS+= ar9130_attach.c ar9130_eeprom.c ar9130_phy.c 75 76# AR9002 series chips 77# + AR9220/AR9280 - Merlin 78.PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9002 79SRCS+= ar9280.c ar9280_attach.c ar9280_olc.c 80 81# + AR9285 - Kite 82SRCS+= ar9285.c ar9285_reset.c ar9285_attach.c ar9285_cal.c ar9285_phy.c 83SRCS+= ar9285_diversity.c ar9285_btcoex.c 84 85# + AR9287 - Kiwi 86.PATH: ${SRCTOP}/sys/dev/ath/ath_hal 87SRCS+= ah_eeprom_9287.c 88.PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9002 89SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c 90 91CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal 92CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ 93 94.include <bsd.kmod.mk> 95