]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Break out the TX descriptor link field into HAL methods.
authorAdrian Chadd <adrian@FreeBSD.org>
Thu, 19 Jul 2012 02:25:14 +0000 (02:25 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Thu, 19 Jul 2012 02:25:14 +0000 (02:25 +0000)
commitad3e6dcd370d4693b3040a3e45cd1a01c32c0532
tree058550766bb3f6344d010bdd0405f9f05003adfd
parentabded2bcf255c661c1b1aa8d014b6c337c1d8932
Break out the TX descriptor link field into HAL methods.

The DMA FIFO chips (AR93xx and later) differ slightly to th elegacy
chips:

* The RX DMA descriptors don't have a ds_link field;
* The TX DMA descriptors have a ds_link field however at a different
  offset.

This is a reimplementation based on what the reference driver and ath9k
does.

A subsequent commit will enable it in the TX and beacon paths.

Obtained from: Linux ath9k, Qualcomm Atheros
sys/dev/ath/ath_hal/ah.h
sys/dev/ath/ath_hal/ar5210/ar5210.h
sys/dev/ath/ath_hal/ar5210/ar5210_attach.c
sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c
sys/dev/ath/ath_hal/ar5211/ar5211.h
sys/dev/ath/ath_hal/ar5211/ar5211_attach.c
sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c
sys/dev/ath/ath_hal/ar5212/ar5212.h
sys/dev/ath/ath_hal/ar5212/ar5212_attach.c
sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c
sys/dev/ath/if_athvar.h