xref: /freebsd/sys/modules/ath_hal_ar5211/Makefile (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
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_ar5211
3541059135SAdrian Chadd
3641059135SAdrian Chadd# FreeBSD module loading pieces
3741059135SAdrian Chadd.PATH:	${SRCTOP}/sys/dev/ath/
3841059135SAdrian ChaddSRCS=	ah_osdep_ar5211.c
3941059135SAdrian Chadd
4041059135SAdrian Chadd#
4141059135SAdrian Chadd# AR5211 support; these are second generation 11b/g/a devices
4241059135SAdrian Chadd# (but 11g was OFDM only and is not supported).
4341059135SAdrian Chadd#
4441059135SAdrian Chadd.PATH:	${SRCTOP}/sys/dev/ath/ath_hal/ar5211
4541059135SAdrian ChaddSRCS+=	ar5211_attach.c ar5211_beacon.c ar5211_interrupts.c \
4641059135SAdrian Chadd	ar5211_keycache.c ar5211_misc.c	ar5211_phy.c ar5211_power.c \
4741059135SAdrian Chadd	ar5211_recv.c ar5211_reset.c ar5211_xmit.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>
558881d206SWarner Losh
56*369216b0SWarner LoshCWARNFLAGS+=	${NO_WUNUSED_BUT_SET_VARIABLE}
57