head	1.15;
access;
symbols
	RELENG_8_4:1.15.0.2
	RELENG_9_1_0_RELEASE:1.12.2.1.4.2
	RELENG_9_1:1.12.2.1.0.4
	RELENG_9_1_BP:1.12.2.1
	RELENG_8_3_0_RELEASE:1.11.2.1.8.1
	RELENG_8_3:1.11.2.1.0.8
	RELENG_8_3_BP:1.11.2.1
	RELENG_9_0_0_RELEASE:1.12.2.1.2.1
	RELENG_9_0:1.12.2.1.0.2
	RELENG_9_0_BP:1.12.2.1
	RELENG_9:1.12.0.2
	RELENG_9_BP:1.12
	RELENG_7_4_0_RELEASE:1.4.2.1.8.1
	RELENG_8_2_0_RELEASE:1.11.2.1.6.1
	RELENG_7_4:1.4.2.1.0.8
	RELENG_7_4_BP:1.4.2.1
	RELENG_8_2:1.11.2.1.0.6
	RELENG_8_2_BP:1.11.2.1
	RELENG_8_1_0_RELEASE:1.11.2.1.4.1
	RELENG_8_1:1.11.2.1.0.4
	RELENG_8_1_BP:1.11.2.1
	RELENG_7_3_0_RELEASE:1.4.2.1.6.1
	RELENG_7_3:1.4.2.1.0.6
	RELENG_7_3_BP:1.4.2.1
	RELENG_8_0_0_RELEASE:1.11.2.1.2.1
	RELENG_8_0:1.11.2.1.0.2
	RELENG_8_0_BP:1.11.2.1
	RELENG_8:1.11.0.2
	RELENG_8_BP:1.11
	RELENG_7_2_0_RELEASE:1.4.2.1.4.1
	RELENG_7_2:1.4.2.1.0.4
	RELENG_7_2_BP:1.4.2.1
	RELENG_7_1_0_RELEASE:1.4.2.1.2.1
	RELENG_6_4_0_RELEASE:1.1.2.2.6.1
	RELENG_7_1:1.4.2.1.0.2
	RELENG_7_1_BP:1.4.2.1
	RELENG_6_4:1.1.2.2.0.6
	RELENG_6_4_BP:1.1.2.2
	RELENG_7_0_0_RELEASE:1.4
	RELENG_6_3_0_RELEASE:1.1.2.2
	RELENG_7_0:1.4.0.4
	RELENG_7_0_BP:1.4
	RELENG_6_3:1.1.2.2.0.4
	RELENG_6_3_BP:1.1.2.2
	RELENG_7:1.4.0.2
	RELENG_7_BP:1.4
	RELENG_6_2_0_RELEASE:1.1.2.2
	RELENG_6_2:1.1.2.2.0.2
	RELENG_6_2_BP:1.1.2.2
	RELENG_6_1_0_RELEASE:1.1.2.1
	RELENG_6_1:1.1.2.1.0.2
	RELENG_6_1_BP:1.1.2.1
	RELENG_6:1.1.0.2;
locks; strict;
comment	@# @;


1.15
date	2013.01.03.04.52.24;	author svnexp;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2012.11.17.01.54.07;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.08.09.23.04.20;	author adrian;	state Exp;
branches;
next	1.12;

1.12
date	2011.01.22.23.37.42;	author adrian;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2009.02.13.05.42.25;	author sam;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2009.02.08.20.02.58;	author sam;	state Exp;
branches;
next	1.9;

1.9
date	2009.01.29.23.29.07;	author sam;	state Exp;
branches;
next	1.8;

1.8
date	2009.01.08.17.12.47;	author sam;	state Exp;
branches;
next	1.7;

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

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

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

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

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

1.2
date	2006.03.15.10.46.37;	author ru;	state Exp;
branches;
next	1.1;

1.1
date	2005.12.11.23.13.53;	author sam;	state Exp;
branches
	1.1.2.1;
next	;

1.15.2.1
date	2013.01.03.04.52.24;	author svnexp;	state dead;
branches;
next	1.15.2.2;

1.15.2.2
date	2013.03.28.13.05.57;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.12.2.1.2.1
	1.12.2.1.4.1;
next	1.12.2.2;

1.12.2.2
date	2012.11.17.11.37.35;	author svnexp;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2013.12.30.21.01.47;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.12.2.1.2.2;

1.12.2.1.2.2
date	2012.11.17.08.37.31;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.12.2.1.4.2;

1.12.2.1.4.2
date	2012.11.17.08.48.23;	author svnexp;	state Exp;
branches;
next	;

1.11.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.11.2.1.2.1
	1.11.2.1.4.1
	1.11.2.1.6.1
	1.11.2.1.8.1;
next	1.11.2.2;

1.11.2.2
date	2012.11.17.10.37.13;	author svnexp;	state Exp;
branches;
next	;

1.11.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.11.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.11.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.11.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.11.2.1.8.2;

1.11.2.1.8.2
date	2012.11.17.08.25.47;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	2008.04.25.05.30.11;	author sam;	state Exp;
branches
	1.4.2.1.2.1
	1.4.2.1.4.1
	1.4.2.1.6.1
	1.4.2.1.8.1;
next	1.4.2.2;

1.4.2.2
date	2012.11.17.08.08.13;	author svnexp;	state Exp;
branches;
next	;

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

1.4.2.1.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.6.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.8.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.4.2.1.8.2;

1.4.2.1.8.2
date	2012.11.17.08.17.40;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1
date	2006.01.31.20.48.20;	author sam;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2006.09.02.17.18.34;	author sam;	state Exp;
branches
	1.1.2.2.6.1;
next	1.1.2.3;

1.1.2.3
date	2012.11.17.07.45.28;	author svnexp;	state Exp;
branches;
next	;

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


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244970
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/tools/tools/ath/athstats/Makefile 244970 2013-01-02 18:49:40Z adrian $

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

PROG=	athstats

# Because of a clang preprocessor parser limitation causing this
# to not compile, use gcc for now.
CC=	gcc

SRCS=	main.c statfoo.c athstats.c opt_ah.h ah_osdep.h

CLEANFILES+=	opt_ah.h

.include <../Makefile.inc>

CFLAGS+=-DATH_SUPPORT_ANI
CFLAGS+=-DATH_SUPPORT_TDMA

opt_ah.h:
	echo "#define AH_DEBUG 1" > opt_ah.h
	echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
	echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h

ah_osdep.h:
	echo 'typedef void *HAL_SOFTC;' >ah_osdep.h
	echo 'typedef int HAL_BUS_TAG;' >>ah_osdep.h
	echo 'typedef void *HAL_BUS_HANDLE;' >>ah_osdep.h
	echo 'typedef uint32_t HAL_DMA_ADDR;' >>ah_osdep.h

.include <bsd.prog.mk>
@


1.15.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:57 +0000
@
text
@d1 31
@


1.15.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 28
# $FreeBSD: releng/8.4/tools/tools/ath/athstats/Makefile 188558 2009-02-13 05:42:25Z sam $

PROG=	athstats

SRCS=	main.c statfoo.c athstats.c

.include <bsd.prog.mk>

SRCDIR=	${.CURDIR}/../../../..

CLEANFILES+= opt_ah.h ah_osdep.h

CFLAGS+=-DATH_SUPPORT_ANI
CFLAGS+=-DATH_SUPPORT_TDMA

CFLAGS+=-I${.CURDIR}
CFLAGS+=-I${SRCDIR}/sys/net80211

.include <../Makefile.inc>

athstats.o: opt_ah.h ah_osdep.h

opt_ah.h:
	touch opt_ah.h
ah_osdep.h:
	echo 'typedef void *HAL_SOFTC;' >ah_osdep.h
	echo 'typedef int HAL_BUS_TAG;' >>ah_osdep.h
	echo 'typedef void *HAL_BUS_HANDLE;' >>ah_osdep.h
@


1.14
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/tools/tools/ath/athstats/Makefile 239161 2012-08-09 23:04:20Z adrian $
d7 4
@


1.13
log
@SVN rev 239161 on 2012-08-09 23:04:20Z by adrian

Add HAL_DMA_ADDR.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.12
log
@SVN rev 217738 on 2011-01-22 23:37:42Z by adrian

Patch the athstats code/Makefile to cross-compile correctly.
@
text
@d25 1
@


1.12.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.12.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/tools/tools/ath/athstats/Makefile 217738 2011-01-22 23:37:42Z adrian $
@


1.12.2.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/260096
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 5
# $FreeBSD: stable/9/tools/tools/ath/athstats/Makefile 260096 2013-12-30 20:15:46Z dim $

NO_MAN=1

.include <bsd.own.mk>
a6 4
# Because of a clang preprocessor parser limitation causing this
# to not compile, use gcc for now.
#CC=	gcc

a15 2
CFLAGS.clang+= -fbracket-depth=512

@


1.12.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.12.2.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/tools/tools/ath/athstats/Makefile 217738 2011-01-22 23:37:42Z adrian $
@


1.12.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.12.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/tools/tools/ath/athstats/Makefile 217738 2011-01-22 23:37:42Z adrian $
@


1.11
log
@SVN rev 188558 on 2009-02-13 05:42:25Z by sam

backout r188327, it broke summary printing
@
text
@d3 2
d7 1
a7 1
SRCS=	main.c statfoo.c athstats.c
d9 1
a9 1
.include <bsd.prog.mk>
d11 1
a11 3
SRCDIR=	${.CURDIR}/../../../..

CLEANFILES+= opt_ah.h ah_osdep.h
d16 4
a19 2
CFLAGS+=-I${.CURDIR}
CFLAGS+=-I${SRCDIR}/sys/net80211
a20 6
.include <../Makefile.inc>

athstats.o: opt_ah.h ah_osdep.h

opt_ah.h:
	touch opt_ah.h
d25 2
@


1.11.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.11.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/tools/tools/ath/athstats/Makefile 188558 2009-02-13 05:42:25Z sam $
@


1.11.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.11.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/tools/tools/ath/athstats/Makefile 188558 2009-02-13 05:42:25Z sam $
@


1.11.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.11.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.11.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.10
log
@SVN rev 188327 on 2009-02-08 20:02:58Z by sam

o use humanize_number to print totals
o shrink some fields now that we don't have to worry about overflow
@
text
@a6 3
DPADD=	${LIBUTIL}
LDADD=	-lutil

@


1.9
log
@SVN rev 187905 on 2009-01-29 23:29:07Z by sam

track hal changes
@
text
@d7 3
@


1.8
log
@SVN rev 186904 on 2009-01-08 17:12:47Z by sam

TDMA support for long distance point-to-point links using ath devices:
o add net80211 support for a tdma vap that is built on top of the
  existing adhoc-demo support
o add tdma scheduling of frame transmission to the ath driver; it's
  conceivable other devices might be capable of this too in which case
  they can make use of the 802.11 protocol additions etc.
o add minor bits to user tools that need to know: ifconfig to setup and
  configure, new statistics in athstats, and new debug mask bits

While the architecture can support >2 slots in a TDMA BSS the current
design is intended (and tested) for only 2 slots.

Sponsored by:	Intel
@
text
@d26 3
a28 1
	touch ah_osdep.h
@


1.7
log
@SVN rev 185743 on 2008-12-07 19:17:33Z by sam

bring in diagnostic tools that are useful now that we have hal source code
@
text
@d14 1
@


1.6
log
@SVN rev 184371 on 2008-10-27 18:50:46Z by sam

sync w/ driver updates; this also brings in ani stats
@
text
@a3 2
BINDIR=	/usr/local/bin
NO_MAN=
a15 1
CFLAGS+=-I${SRCDIR}/sys/contrib/dev/ath
d17 2
a18 1
CFLAGS+=-I${SRCDIR}/sys/dev/ath
@


1.5
log
@Some overdue tlc:
o push include paths to the Makefile
o use the AFTER trick to simplify adding new items
o prepare stat blocks for additional data
o align values for verbose output
o fillin some missing stats

MFC after:	1 week
@
text
@d11 2
a12 1
CFLAGS+= -I.
d15 6
a20 3
CFLAGS+=-I../../../../sys/contrib/dev/ath
CFLAGS+=-I../../../../sys/net80211
CFLAGS+=-I../../../../sys/dev/ath
@


1.4
log
@create empty opt_ah.h for compiling athstats.o; it just needs
the PHY definitions and not the descriptor so it doesn't matter
if it's correct relative to the hal.o
@
text
@d12 1
a12 1
CLEANFILES+= opt_ah.h
d14 5
a18 1
athstats.o: opt_ah.h
d22 2
@


1.4.2.1
log
@MFC: move include paths to Makefile, use the AFTER trick to simplify
   adding new items, prepare stat blocks for additional data, other stuff
@
text
@d12 1
a12 1
CLEANFILES+= opt_ah.h ah_osdep.h
d14 1
a14 5
CFLAGS+=-I../../../../sys/contrib/dev/ath
CFLAGS+=-I../../../../sys/net80211
CFLAGS+=-I../../../../sys/dev/ath

athstats.o: opt_ah.h ah_osdep.h
a17 2
ah_osdep.h:
	touch ah_osdep.h
@


1.4.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/tools/tools/ath/athstats/Makefile 178473 2008-04-25 05:30:11Z sam $
@


1.4.2.1.8.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/tools/tools/ath/athstats/Makefile 178473 2008-04-25 05:30:11Z sam $
@


1.4.2.1.6.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.2.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.3
log
@checkpoint new version
@
text
@d10 8
@


1.2
log
@Style: NO_MAN doesn't need any value.
@
text
@d7 2
@


1.1
log
@o move programs to separate directories and use stock Makefiles;
  this simplifies including them in crunchgen images
o rename 80211* programs to wlan* as was originally intended
@
text
@d3 3
a5 3
PROG    = athstats
BINDIR	= /usr/local/bin
NO_MAN	= noman
@


1.1.2.1
log
@MFC: reorg tools to simplify use with crunchgen and rename net80211
     tools as originally intended
@
text
@d3 3
a5 3
PROG=	athstats
NO_MAN=
BINDIR?=/usr/local/bin
@


1.1.2.2
log
@MFC: sync with head (major rewrite)
@
text
@a3 1
BINDIR=	/usr/local/bin
d5 1
a5 2

SRCS=	main.c statfoo.c athstats.c
@


1.1.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/tools/tools/ath/athstats/Makefile 161902 2006-09-02 17:18:34Z sam $
@


1.1.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
@@


