ath - Basic re-port, base code compile
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Jan 2014 01:31:41 +0000 (17:31 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Jan 2014 07:15:38 +0000 (23:15 -0800)
commit3133c5e39700a9e7b81ed2a7d3eabb3a751dcd80
treea703a464fc7c2036c83de8c35328ac82a1055a0c
parent5cd80a8ca6f18f728c9f1e9bd79270cf365cb3a4
ath - Basic re-port, base code compile

* First re-port pass, make base code modifications to work with DragonFly.

* Remove ath locks (mostly using #define's).

* Protect entry points with our global wlan_serializer.  This includes:
- callout functions
- PCI entry/exit
- ifnet access (typically already protected from the DFly kernel).
- taskqueue functions
- sysctl functions

* Rework the sysctl hierarchy a little.

* Fixup malloc->kmalloc, free->kfree, snprintf->ksnprintf.
* Fixup ether_sprintf() use cases.

* Fixup bad M_NOWAIT semantics from FreeBSD.  Convert all such to
  M_INTWAIT.

* IFF_RUNNING and IFF_OACTIVE adjustments.

* Temporarily #if 0 out code that our wlan infrastructure does not
  yet support.

* Add appropriate DRIVER and MODULE declarations for module handling.

* #include path adjustments

* API differences in bus_dma_tag_create(), bus_dmamap_load_mbuf_sg(),
  and related interactions.

* Several TAILQ_FOREACH_SAFE() interactions were broken (pushed to Adrian).

* Revert field name for now (tap->txa_tid -> tap_txa_ac).  We need to fixup
  our wlan infrastructure to rename txa_ac to txa_tid.

* va_list/va_start/va_end -> __va_list/__va_start/__va_end.
36 files changed:
sys/dev/netif/ath/Makefile
sys/dev/netif/ath/ath/if_ath.c
sys/dev/netif/ath/ath/if_ath_ahb.c
sys/dev/netif/ath/ath/if_ath_alq.c
sys/dev/netif/ath/ath/if_ath_beacon.c
sys/dev/netif/ath/ath/if_ath_btcoex.c
sys/dev/netif/ath/ath/if_ath_debug.c
sys/dev/netif/ath/ath/if_ath_keycache.c
sys/dev/netif/ath/ath/if_ath_led.c
sys/dev/netif/ath/ath/if_ath_lna_div.c
sys/dev/netif/ath/ath/if_ath_pci.c
sys/dev/netif/ath/ath/if_ath_rx.c
sys/dev/netif/ath/ath/if_ath_rx_edma.c
sys/dev/netif/ath/ath/if_ath_spectral.c
sys/dev/netif/ath/ath/if_ath_sysctl.c
sys/dev/netif/ath/ath/if_ath_tx.c
sys/dev/netif/ath/ath/if_ath_tx_edma.c
sys/dev/netif/ath/ath/if_athvar.h
sys/dev/netif/ath/ath_dfs/null/Makefile
sys/dev/netif/ath/ath_dfs/null/dfs_null.c
sys/dev/netif/ath/ath_hal/Makefile
sys/dev/netif/ath/ath_hal/ah_osdep.c
sys/dev/netif/ath/ath_hal/ah_osdep.h
sys/dev/netif/ath/ath_hal/ar5312/ar5312_attach.c
sys/dev/netif/ath/ath_hal/ar71xx/ar71xx_cpudef.h [new file with mode: 0644]
sys/dev/netif/ath/ath_hal/ar71xx/ar71xxreg.h [new file with mode: 0644]
sys/dev/netif/ath/ath_hal/ar9002/ar9280_attach.c
sys/dev/netif/ath/ath_hal/ar9002/ar9280_olc.c
sys/dev/netif/ath/ath_hal/ar91xx/ar91xxreg.h [new file with mode: 0644]
sys/dev/netif/ath/ath_rate/amrr/Makefile
sys/dev/netif/ath/ath_rate/amrr/amrr.c
sys/dev/netif/ath/ath_rate/onoe/Makefile
sys/dev/netif/ath/ath_rate/onoe/onoe.c
sys/dev/netif/ath/ath_rate/sample/Makefile
sys/dev/netif/ath/ath_rate/sample/sample.c
sys/dev/netif/ath/ath_rate/sample/sample.h