]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Break out most of the HAL related tweaks into a per-HAL instance,
authoradrian <adrian@FreeBSD.org>
Thu, 23 Jun 2011 02:38:36 +0000 (02:38 +0000)
committeradrian <adrian@FreeBSD.org>
Thu, 23 Jun 2011 02:38:36 +0000 (02:38 +0000)
commit014faf03464315d298a8b2f06f6184ccdaa7b1cf
tree7dc105858477ed6999e4ef999fdca62a04b52521
parentb6944718e6937ccf5ca5426ff8350b39f3fc85c2
Break out most of the HAL related tweaks into a per-HAL instance,
rather than global variables.

This specifically allows for debugging to be enabled per-NIC, rather
than globally.

Since the ath driver doesn't know about AH_DEBUG, and to keep the ABI
consistent regardless of whether AH_DEBUG is enabled or not, enable the
debug parameter always but only conditionally compile in the debug
methods if needed.

The ALQ support is currently still global pending some brainstorming.

Submitted by: ssgriffonuser@gmail.com
Reviewed by: adrian, bschmidt
15 files changed:
sys/dev/ath/ah_osdep.c
sys/dev/ath/ath_hal/ah.h
sys/dev/ath/ath_hal/ah_internal.h
sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c
sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
sys/dev/ath/ath_hal/ar5416/ar2133.c
sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c
sys/dev/ath/ath_hal/ar5416/ar5416_misc.c
sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c
sys/dev/ath/if_ath.c
sys/dev/ath/if_ath_sysctl.c
sys/dev/ath/if_ath_sysctl.h