diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-09 02:57:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:44:59 -0500 |
commit | d535a42a21eb62bb0e7f35b8ae39da07b679dda4 (patch) | |
tree | 667627a2fb955a61701da3b52254b739861eadb1 /drivers/net/wireless/ath9k/hw.h | |
parent | 17d7904de85125c62c7258d7cb21207f26d04048 (diff) |
ath9k: Store HW version information in a separate structure
This patch moves all the HW version/revision specific
information into a separate structure.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath9k/hw.h b/drivers/net/wireless/ath9k/hw.h index b353b1f6f8b1..afa64bde301d 100644 --- a/drivers/net/wireless/ath9k/hw.h +++ b/drivers/net/wireless/ath9k/hw.h | |||
@@ -406,16 +406,19 @@ enum { | |||
406 | ATH9K_RESET_COLD, | 406 | ATH9K_RESET_COLD, |
407 | }; | 407 | }; |
408 | 408 | ||
409 | struct ath_hal { | 409 | struct ath9k_hw_version { |
410 | u32 ah_magic; | 410 | u32 magic; |
411 | u16 ah_devid; | 411 | u16 devid; |
412 | u16 ah_subvendorid; | 412 | u16 subvendorid; |
413 | u32 ah_macVersion; | 413 | u32 macVersion; |
414 | u16 ah_macRev; | 414 | u16 macRev; |
415 | u16 ah_phyRev; | 415 | u16 phyRev; |
416 | u16 ah_analog5GhzRev; | 416 | u16 analog5GhzRev; |
417 | u16 ah_analog2GhzRev; | 417 | u16 analog2GhzRev; |
418 | }; | ||
418 | 419 | ||
420 | struct ath_hal { | ||
421 | struct ath9k_hw_version hw_version; | ||
419 | void __iomem *ah_sh; | 422 | void __iomem *ah_sh; |
420 | struct ath_softc *ah_sc; | 423 | struct ath_softc *ah_sc; |
421 | 424 | ||