2 # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
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.
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.
32 .PATH: ${SRCTOP}/sys/dev/ath
33 .PATH: ${SRCTOP}/sys/dev/ath/ath_hal
37 # FreeBSD module loading pieces
38 .PATH: ${SRCTOP}/sys/dev/ath/
39 SRCS= ah_osdep_ar5416.c
42 # AR5416, AR9130, AR9160, AR9220, AR9280, AR9285, AR9287 support.
44 # Note enabling this support requires defining AH_SUPPORT_AR5416
45 # in opt_ah.h so the 11n tx/rx descriptor format is handled.
47 # NB: 9160 depends on 5416 but 5416 does not require 9160
50 .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar5416
52 SRCS+= 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
58 SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h
60 # RF backend for 5416, 9130 and 9160
64 .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9001
65 SRCS+= ar9160_attach.c
67 # + AR9130 - (Sowl) - Embedded (AR913x SoC)
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
74 SRCS+= ar9130_attach.c ar9130_eeprom.c ar9130_phy.c
77 # + AR9220/AR9280 - Merlin
78 .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9002
79 SRCS+= ar9280.c ar9280_attach.c ar9280_olc.c
82 SRCS+= ar9285.c ar9285_reset.c ar9285_attach.c ar9285_cal.c ar9285_phy.c
83 SRCS+= ar9285_diversity.c ar9285_btcoex.c
86 .PATH: ${SRCTOP}/sys/dev/ath/ath_hal
87 SRCS+= ah_eeprom_9287.c
88 .PATH: ${SRCTOP}/sys/dev/ath/ath_hal/ar9002
89 SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c
91 CFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal
92 CFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/
94 .include <bsd.kmod.mk>