head	1.9;
access;
symbols
	RELENG_7_4_0_RELEASE:1.8.2.1
	RELENG_7_4:1.8.2.1.0.6
	RELENG_7_4_BP:1.8.2.1
	RELENG_7_3_0_RELEASE:1.8.2.1
	RELENG_7_3:1.8.2.1.0.4
	RELENG_7_3_BP:1.8.2.1
	RELENG_7_2_0_RELEASE:1.8.2.1
	RELENG_7_2:1.8.2.1.0.2
	RELENG_7_2_BP:1.8.2.1
	RELENG_7_1_0_RELEASE:1.8.6.1
	RELENG_6_4_0_RELEASE:1.4.2.2.6.1
	RELENG_7_1:1.8.0.6
	RELENG_7_1_BP:1.8
	RELENG_6_4:1.4.2.2.0.6
	RELENG_6_4_BP:1.4.2.2
	RELENG_7_0_0_RELEASE:1.8
	RELENG_6_3_0_RELEASE:1.4.2.2
	RELENG_7_0:1.8.0.4
	RELENG_7_0_BP:1.8
	RELENG_6_3:1.4.2.2.0.4
	RELENG_6_3_BP:1.4.2.2
	RELENG_7:1.8.0.2
	RELENG_7_BP:1.8
	RELENG_6_2_0_RELEASE:1.4.2.2
	RELENG_6_2:1.4.2.2.0.2
	RELENG_6_2_BP:1.4.2.2
	RELENG_5_5_0_RELEASE:1.2
	RELENG_5_5:1.2.0.10
	RELENG_5_5_BP:1.2
	RELENG_6_1_0_RELEASE:1.4
	RELENG_6_1:1.4.0.6
	RELENG_6_1_BP:1.4
	RELENG_6_0_0_RELEASE:1.4
	RELENG_6_0:1.4.0.4
	RELENG_6_0_BP:1.4
	RELENG_6:1.4.0.2
	RELENG_6_BP:1.4
	RELENG_5_4_0_RELEASE:1.2
	RELENG_5_4:1.2.0.8
	RELENG_5_4_BP:1.2
	RELENG_5_3_0_RELEASE:1.2
	RELENG_5_3:1.2.0.6
	RELENG_5_3_BP:1.2
	RELENG_5:1.2.0.4
	RELENG_5_BP:1.2
	RELENG_5_2_1_RELEASE:1.2
	RELENG_5_2_0_RELEASE:1.2
	RELENG_5_2:1.2.0.2
	RELENG_5_2_BP:1.2;
locks; strict;
comment	@# @;


1.9
date	2008.12.01.16.53.01;	author sam;	state dead;
branches;
next	1.8;

1.8
date	2006.09.18.16.49.15;	author sam;	state Exp;
branches
	1.8.2.1
	1.8.6.1;
next	1.7;

1.7
date	2006.06.08.23.36.35;	author sam;	state Exp;
branches;
next	1.6;

1.6
date	2006.05.08.04.04.06;	author sam;	state Exp;
branches;
next	1.5;

1.5
date	2006.05.06.23.14.19;	author sam;	state Exp;
branches;
next	1.4;

1.4
date	2005.01.18.03.28.08;	author sam;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2004.12.08.17.38.37;	author sam;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.30.05.25.36;	author sam;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.25.14.43.50;	author sam;	state Exp;
branches;
next	;

1.8.2.1
date	2009.03.12.03.09.11;	author bms;	state dead;
branches;
next	;

1.8.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1
date	2006.07.11.21.52.09;	author sam;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2006.10.16.01.26.14;	author sam;	state Exp;
branches
	1.4.2.2.6.1;
next	1.4.2.3;

1.4.2.3
date	2012.11.17.07.44.15;	author svnexp;	state Exp;
branches;
next	;

1.4.2.2.6.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;


desc
@@


1.9
log
@SVN rev 185522 on 2008-12-01 16:53:01Z by sam

Switch to ath hal source code. Note this removes the ath_hal
module; the ath module now brings in the hal support.  Kernel
config files are almost backwards compatible; supplying

device ath_hal

gives you the same chip support that the binary hal did but you
must also include

options AH_SUPPORT_AR5416

to enable the extended format descriptors used by 11n parts.
It is now possible to control the chip support included in a
build by specifying exactly which chips are to be supported
in the config file; consult ath_hal(4) for information.
@
text
@#
# Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer,
#    without modification.
# 2. Redistributions in binary form must reproduce at minimum a disclaimer
#    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
#    redistribution must be conditioned upon including a substantially
#    similar Disclaimer requirement for further binary redistribution.
# 3. Neither the names of the above-listed copyright holders nor the names
#    of any contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# Alternatively, this software may be distributed under the terms of the
# GNU General Public License ("GPL") version 2 as published by the Free
# Software Foundation.
#
# NO WARRANTY
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGES.
#
# $FreeBSD: src/sys/modules/ath_hal/Makefile,v 1.8 2006/09/18 16:49:15 sam Exp $
#

#
# Hardware Access Layer (HAL) for the Atheros Wireless NIC driver.
#
# This module contains the hardware-specific bits for the network
# interface driver.  It is built as a separate module to simplify
# maintenance and isolate the bits that are not (currently) distributed
# in source form.
#
HAL?=	${.CURDIR}/../../contrib/dev/ath

.PATH: ${.CURDIR}/../../dev/ath

KMOD=	ath_hal
SRCS=	ah_osdep.c
SRCS+=	bus_if.h device_if.h pci_if.h opt_ah.h
OBJS=	hal.o
MFILES=	kern/bus_if.m kern/device_if.m dev/pci/pci_if.m

CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}

# patch for hal naming difference
.if ${MACHINE_ARCH} == "amd64"
ATH_MODULE_ARCH=x86_64
.elif ${MACHINE_ARCH} == "sparc64"
ATH_MODULE_ARCH=sparc64-be
.elif ${MACHINE_ARCH} == "powerpc"
ATH_MODULE_ARCH=powerpc-be
.else
ATH_MODULE_ARCH=${MACHINE_ARCH}
.endif

hal.o:	${HAL}/public/${ATH_MODULE_ARCH}-elf.hal.o.uu
	uudecode -p < ${HAL}/public/${ATH_MODULE_ARCH}-elf.hal.o.uu > ${.TARGET}
opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h
	cp ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h ${.TARGET}

.include <bsd.kmod.mk>
@


1.8
log
@o move ath hal os glue code from the hal to the driver: this code was
  part of the hal distribution early on when the hal was built for
  each os but it's been portable for a long time so move the os-specific
  code out (and off the vendor branch)
o correct the copyright on ah_osdep.?; it was mistakenly given a
  restricted license and not a dual-bsd/gpl license
o remove the module api definition as it was never used
o fixup include paths for move of ah_osdep.h

MFC after:	2 weeks
@
text
@d36 1
a36 1
# $FreeBSD$
@


1.8.2.1
log
@SVN rev 189720 on 2009-03-12 03:09:11Z by bms

Merge the open source Atheros HAL from HEAD to STABLE.

This adds support for the AH_SUPPORT_AR5416 kernel
configuration option, and removes the ath_rate*
and ath_hal modules. Their kernel options are not
however removed -- please see UPDATING.

Tested on an IBM/Lenovo T43 and ASUS EeePC 701 in both
STA and HostAP modes.

Submitted by:	sam
@
text
@d36 1
a36 1
# $FreeBSD: src/sys/modules/ath_hal/Makefile,v 1.8 2006/09/18 16:49:15 sam Exp $
@


1.8.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.7
log
@add powerpc glue

MFC after:	1 month
@
text
@d47 1
a47 1
HAL=	${.CURDIR}/../../contrib/dev/ath
d49 1
a49 1
.PATH: ${HAL}/freebsd
d53 1
a53 1
SRCS+=	bus_if.h device_if.h pci_if.h ah_if.h opt_ah.h
d55 1
a55 2
MFILES=	kern/bus_if.m kern/device_if.m dev/pci/pci_if.m \
	contrib/dev/ath/freebsd/ah_if.m
d57 1
a57 1
CFLAGS+= -I. -I${HAL}/freebsd -I${HAL}
a69 4
.if defined(HAL_SRC)
.include "${HAL}/freebsd/Makefile.inc"
.else

a73 1
.endif
@


1.6
log
@fix braino that broke building on amd64

Submitted by:	Pascal Hofstee
MFC after:	2 weeks
@
text
@d65 2
@


1.5
log
@fix build on sparc

MFC after:	1 month
@
text
@d61 7
a67 2
ATH_MODULE_ARCH=${MACHINE_ARCH:S/amd64/x86_64/}
ATH_MODULE_ARCH=${MACHINE_ARCH:S/sparc64/sparc64-be/}
@


1.4
log
@Fix building for non-i386 platforms.

Submitted by:	Coleman Kane
@
text
@d62 1
@


1.4.2.1
log
@sync w/ HEAD
@
text
@d61 1
a61 9
.if ${MACHINE_ARCH} == "amd64"
ATH_MODULE_ARCH=x86_64
.elif ${MACHINE_ARCH} == "sparc64"
ATH_MODULE_ARCH=sparc64-be
.elif ${MACHINE_ARCH} == "powerpc"
ATH_MODULE_ARCH=powerpc-be
.else
ATH_MODULE_ARCH=${MACHINE_ARCH}
.endif
@


1.4.2.2
log
@MFC: move ah_osdep.[ch] from the hal to the driver; they will not
     be distributed with future versions of the hal

Approved by:	re (kensmith)
@
text
@d47 1
a47 1
HAL?=	${.CURDIR}/../../contrib/dev/ath
d49 1
a49 1
.PATH: ${.CURDIR}/../../dev/ath
d53 1
a53 1
SRCS+=	bus_if.h device_if.h pci_if.h opt_ah.h
d55 2
a56 1
MFILES=	kern/bus_if.m kern/device_if.m dev/pci/pci_if.m
d58 1
a58 1
CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
d71 4
d79 1
@


1.4.2.3
log
@Switch importer
@
text
@d36 1
a36 1
# $FreeBSD: stable/6/sys/modules/ath_hal/Makefile 163396 2006-10-16 01:26:14Z sam $
@


1.4.2.2.6.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.3
log
@Update/new modules for net80211 and ath changes.
@
text
@d60 3
d67 4
a70 4
hal.o:	${HAL}/public/i386-elf.hal.o.uu
	uudecode -p < ${HAL}/public/i386-elf.hal.o.uu > ${.TARGET}
opt_ah.h: ${HAL}/public/i386-elf.opt_ah.h
	cp ${HAL}/public/i386-elf.opt_ah.h ${.TARGET}
@


1.2
log
@nitpicking

Submitted by:	Ruslan Ermilov <ru@@FreeBSD.org>
@
text
@d64 4
a67 2
hal.o:	${HAL}/freebsd/i386-elf.hal.o.uu
	uudecode -p < ${HAL}/freebsd/i386-elf.hal.o.uu > ${.TARGET}
@


1.1
log
@module for atheros hal
@
text
@a49 1
.PATH: ${HAL}
d58 1
a58 1
CFLAGS+=  -I. -I${HAL}/freebsd -I${HAL}
d61 1
a61 1
.include <freebsd/Makefile.inc>
a62 1
UUDECODE?=uudecode
d65 1
a65 1
	${UUDECODE} < ${HAL}/freebsd/i386-elf.hal.o.uu
@

