xref: /freebsd/sys/modules/ath_hal_ar5416/Makefile (revision d37eb51047221dc3322b34db1038ff3aa533883f)
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#
30
31.PATH:	${SRCTOP}/sys/dev/ath
32.PATH:	${SRCTOP}/sys/dev/ath/ath_hal
33
34KMOD=	ath_hal_ar5416
35
36# FreeBSD module loading pieces
37.PATH:	${SRCTOP}/sys/dev/ath/
38SRCS=	ah_osdep_ar5416.c
39
40#
41# AR5416, AR9130, AR9160, AR9220, AR9280, AR9285, AR9287 support.
42#
43# NB: 9160 depends on 5416 but 5416 does not require 9160
44#
45# + 5416 (Owl)
46.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar5416
47
48SRCS+=	ar5416_ani.c ar5416_attach.c ar5416_beacon.c ar5416_btcoex.c \
49	ar5416_cal.c ar5416_cal_iq.c ar5416_cal_adcgain.c ar5416_cal_adcdc.c \
50	ar5416_eeprom.c ar5416_gpio.c ar5416_interrupts.c ar5416_keycache.c \
51	ar5416_misc.c ar5416_phy.c ar5416_power.c ar5416_radar.c ar5416_spectral.c \
52	ar5416_recv.c ar5416_reset.c ar5416_xmit.c
53
54SRCS+=	device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h
55
56# RF backend for 5416, 9130 and 9160
57SRCS+=	ar2133.c
58
59# + AR9160 (Sowl)
60.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar9001
61SRCS+=	ar9160_attach.c
62
63# AR9002 series chips
64# + AR9220/AR9280 - Merlin
65.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar9002
66SRCS+=	ar9280.c ar9280_attach.c ar9280_olc.c
67
68# + AR9285 - Kite
69SRCS+=	ar9285.c ar9285_reset.c ar9285_attach.c ar9285_cal.c ar9285_phy.c
70SRCS+=	ar9285_diversity.c ar9285_btcoex.c
71
72# + AR9287 - Kiwi
73.PATH:  ${SRCTOP}/sys/dev/ath/ath_hal
74SRCS+=  ah_eeprom_9287.c
75.PATH:  ${SRCTOP}/sys/dev/ath/ath_hal/ar9002
76SRCS+=  ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c
77
78CFLAGS+=  -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal
79CFLAGS+=  -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/
80
81.include <bsd.kmod.mk>
82
83CWARNFLAGS+=	${NO_WUNUSED_BUT_SET_VARIABLE}
84