xref: /freebsd/sys/modules/ath_hal_ar5416/Makefile (revision 42249ef2)
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# NB: 9160 depends on 5416 but 5416 does not require 9160
45#
46# + 5416 (Owl)
47.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar5416
48
49SRCS+=	ar5416_ani.c ar5416_attach.c ar5416_beacon.c ar5416_btcoex.c \
50	ar5416_cal.c ar5416_cal_iq.c ar5416_cal_adcgain.c ar5416_cal_adcdc.c \
51	ar5416_eeprom.c ar5416_gpio.c ar5416_interrupts.c ar5416_keycache.c \
52	ar5416_misc.c ar5416_phy.c ar5416_power.c ar5416_radar.c ar5416_spectral.c \
53	ar5416_recv.c ar5416_reset.c ar5416_xmit.c
54
55SRCS+=	device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h
56
57# RF backend for 5416, 9130 and 9160
58SRCS+=	ar2133.c
59
60# + AR9160 (Sowl)
61.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar9001
62SRCS+=	ar9160_attach.c
63
64# + AR9130 - (Sowl) - Embedded (AR913x SoC)
65#
66# This requires AH_SUPPORT_AR9130 in order to function as some
67# register values have shifted for this chipset. Definig this however
68# (currently) breaks non-AR9130 chipsets - since this is an embedded
69# chipset and no other radios are glued to it, this shouldn't pose a
70# problem.
71SRCS+=	ar9130_attach.c ar9130_eeprom.c ar9130_phy.c
72
73# AR9002 series chips
74# + AR9220/AR9280 - Merlin
75.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar9002
76SRCS+=	ar9280.c ar9280_attach.c ar9280_olc.c
77
78# + AR9285 - Kite
79SRCS+=	ar9285.c ar9285_reset.c ar9285_attach.c ar9285_cal.c ar9285_phy.c
80SRCS+=	ar9285_diversity.c ar9285_btcoex.c
81
82# + AR9287 - Kiwi
83.PATH:  ${SRCTOP}/sys/dev/ath/ath_hal
84SRCS+=  ah_eeprom_9287.c
85.PATH:  ${SRCTOP}/sys/dev/ath/ath_hal/ar9002
86SRCS+=  ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c
87
88CFLAGS+=  -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal
89CFLAGS+=  -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/
90
91.include <bsd.kmod.mk>
92