ath5k: HW code cleanup
authorNick Kossifidis <mick@madwifi.org>
Fri, 29 Aug 2008 19:45:39 +0000 (22:45 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Sep 2008 20:15:24 +0000 (16:15 -0400)
commitc6e387a214f4b2c4bd48020409e366c133385d98
tree11fd58fd71e113a62d05f6f191771ca3d7d544f0
parentfa9abe050d0a018b888fce61a4353afab17b0860
ath5k: HW code cleanup

 * No code changes...

 * Split hw.c to multiple files for better maintenance and add some documentation on each file
   code is going to grow soon (eeprom.c for example is going to get much stuff currently developed
   on ath_info) so it's better this way.

 * Rename following functions to maintain naming scheme:

     ah_setup_xtx_desc -> ah_setup_mrr_tx_desc
     (Because xtx doesn't say much, it's actually
     a multi-rate-retry tx descriptor)

     ath5k_hw_put_tx/rx_buf - > ath5k_hw_set_tx/rxdp
     ath5k_hw_get_tx/rx_buf -> ath5k_hw_get_tx/rxdp
     (We don't put any "buf" we set descriptor pointers on hw)

     ath5k_hw_tx_start -> ath5k_hw_start_tx_dma
     ath5k_hw_start_rx -> ath5k_hw_start_rx_dma
     ath5k_hw_stop_pcu_recv -> ath5k_hw_stop_rx_pcu
     (It's easier this way to identify them, we also
     have ath5k_hw_start_rx_pcu which completes the
     set)

     ath5k_hw_set_intr -> ath5k_hw_set_imr
     (As in get_isr we set imr here, not "intr")

  * Move ath5k_hw_setup_rx_desc on ah->ah_setup_rx_desc so we can
    include support for different rx descriptors in the future

  * Further cleanups so that checkpatch doesn't complain
    (only some > 80 col warnings for eeprom.h and reg.h as usual
    due to comments)

  Tested on 5211 and 5213 cards and works ok.

Changes-licensed-under: ISC
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
19 files changed:
drivers/net/wireless/ath5k/Makefile
drivers/net/wireless/ath5k/ath5k.h
drivers/net/wireless/ath5k/attach.c [new file with mode: 0644]
drivers/net/wireless/ath5k/base.c
drivers/net/wireless/ath5k/caps.c [new file with mode: 0644]
drivers/net/wireless/ath5k/debug.c
drivers/net/wireless/ath5k/desc.c [new file with mode: 0644]
drivers/net/wireless/ath5k/desc.h [moved from drivers/net/wireless/ath5k/hw.h with 51% similarity]
drivers/net/wireless/ath5k/dma.c [new file with mode: 0644]
drivers/net/wireless/ath5k/eeprom.c [new file with mode: 0644]
drivers/net/wireless/ath5k/eeprom.h [new file with mode: 0644]
drivers/net/wireless/ath5k/gpio.c [new file with mode: 0644]
drivers/net/wireless/ath5k/hw.c [deleted file]
drivers/net/wireless/ath5k/initvals.c
drivers/net/wireless/ath5k/pcu.c [new file with mode: 0644]
drivers/net/wireless/ath5k/phy.c
drivers/net/wireless/ath5k/qcu.c [new file with mode: 0644]
drivers/net/wireless/ath5k/reg.h
drivers/net/wireless/ath5k/reset.c [new file with mode: 0644]