diff options
author | Nick Kossifidis <mick@madwifi.org> | 2008-09-28 19:09:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-30 14:07:25 -0400 |
commit | 1bef016a5a2c52de45b332c8fa797958becde9bf (patch) | |
tree | 2389e6e4bdf8151286d56511f7c2f39bb33077b9 /drivers/net/wireless/ath5k/base.c | |
parent | 14be9947ef9843102b67d315c7483de112b5b2d7 (diff) |
ath5k: Update registers and SREV ids v2
* Update registers
* Update SREV values and add some PHY srevs
* Prepare ath5k.h for newer radios etc
Thanks to Atheros 's HAL source we now know for sure how many parts we have
and what their SREV values are. We also have some updates on registers. Prepare
ath5k for some major updates ;-)
My previous mail had 2 more patches following (git log misusage), sorry for double
posting ;-(
Changes-Licensed-under: ISC
Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index e09ed2ce6753..c8bb9bfb51fb 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -100,34 +100,40 @@ MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table); | |||
100 | 100 | ||
101 | /* Known SREVs */ | 101 | /* Known SREVs */ |
102 | static struct ath5k_srev_name srev_names[] = { | 102 | static struct ath5k_srev_name srev_names[] = { |
103 | { "5210", AR5K_VERSION_VER, AR5K_SREV_VER_AR5210 }, | 103 | { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 }, |
104 | { "5311", AR5K_VERSION_VER, AR5K_SREV_VER_AR5311 }, | 104 | { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 }, |
105 | { "5311A", AR5K_VERSION_VER, AR5K_SREV_VER_AR5311A }, | 105 | { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A }, |
106 | { "5311B", AR5K_VERSION_VER, AR5K_SREV_VER_AR5311B }, | 106 | { "5311B", AR5K_VERSION_MAC, AR5K_SREV_AR5311B }, |
107 | { "5211", AR5K_VERSION_VER, AR5K_SREV_VER_AR5211 }, | 107 | { "5211", AR5K_VERSION_MAC, AR5K_SREV_AR5211 }, |
108 | { "5212", AR5K_VERSION_VER, AR5K_SREV_VER_AR5212 }, | 108 | { "5212", AR5K_VERSION_MAC, AR5K_SREV_AR5212 }, |
109 | { "5213", AR5K_VERSION_VER, AR5K_SREV_VER_AR5213 }, | 109 | { "5213", AR5K_VERSION_MAC, AR5K_SREV_AR5213 }, |
110 | { "5213A", AR5K_VERSION_VER, AR5K_SREV_VER_AR5213A }, | 110 | { "5213A", AR5K_VERSION_MAC, AR5K_SREV_AR5213A }, |
111 | { "2413", AR5K_VERSION_VER, AR5K_SREV_VER_AR2413 }, | 111 | { "2413", AR5K_VERSION_MAC, AR5K_SREV_AR2413 }, |
112 | { "2414", AR5K_VERSION_VER, AR5K_SREV_VER_AR2414 }, | 112 | { "2414", AR5K_VERSION_MAC, AR5K_SREV_AR2414 }, |
113 | { "2424", AR5K_VERSION_VER, AR5K_SREV_VER_AR2424 }, | 113 | { "5424", AR5K_VERSION_MAC, AR5K_SREV_AR5424 }, |
114 | { "5424", AR5K_VERSION_VER, AR5K_SREV_VER_AR5424 }, | 114 | { "5413", AR5K_VERSION_MAC, AR5K_SREV_AR5413 }, |
115 | { "5413", AR5K_VERSION_VER, AR5K_SREV_VER_AR5413 }, | 115 | { "5414", AR5K_VERSION_MAC, AR5K_SREV_AR5414 }, |
116 | { "5414", AR5K_VERSION_VER, AR5K_SREV_VER_AR5414 }, | 116 | { "2415", AR5K_VERSION_MAC, AR5K_SREV_AR2415 }, |
117 | { "5416", AR5K_VERSION_VER, AR5K_SREV_VER_AR5416 }, | 117 | { "5416", AR5K_VERSION_MAC, AR5K_SREV_AR5416 }, |
118 | { "5418", AR5K_VERSION_VER, AR5K_SREV_VER_AR5418 }, | 118 | { "5418", AR5K_VERSION_MAC, AR5K_SREV_AR5418 }, |
119 | { "2425", AR5K_VERSION_VER, AR5K_SREV_VER_AR2425 }, | 119 | { "2425", AR5K_VERSION_MAC, AR5K_SREV_AR2425 }, |
120 | { "xxxxx", AR5K_VERSION_VER, AR5K_SREV_UNKNOWN }, | 120 | { "2417", AR5K_VERSION_MAC, AR5K_SREV_AR2417 }, |
121 | { "xxxxx", AR5K_VERSION_MAC, AR5K_SREV_UNKNOWN }, | ||
121 | { "5110", AR5K_VERSION_RAD, AR5K_SREV_RAD_5110 }, | 122 | { "5110", AR5K_VERSION_RAD, AR5K_SREV_RAD_5110 }, |
122 | { "5111", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111 }, | 123 | { "5111", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111 }, |
124 | { "5111A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111A }, | ||
123 | { "2111", AR5K_VERSION_RAD, AR5K_SREV_RAD_2111 }, | 125 | { "2111", AR5K_VERSION_RAD, AR5K_SREV_RAD_2111 }, |
124 | { "5112", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112 }, | 126 | { "5112", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112 }, |
125 | { "5112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112A }, | 127 | { "5112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112A }, |
128 | { "5112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112B }, | ||
126 | { "2112", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112 }, | 129 | { "2112", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112 }, |
127 | { "2112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112A }, | 130 | { "2112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112A }, |
128 | { "SChip", AR5K_VERSION_RAD, AR5K_SREV_RAD_SC0 }, | 131 | { "2112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112B }, |
129 | { "SChip", AR5K_VERSION_RAD, AR5K_SREV_RAD_SC1 }, | 132 | { "2413", AR5K_VERSION_RAD, AR5K_SREV_RAD_2413 }, |
130 | { "SChip", AR5K_VERSION_RAD, AR5K_SREV_RAD_SC2 }, | 133 | { "5413", AR5K_VERSION_RAD, AR5K_SREV_RAD_5413 }, |
134 | { "2316", AR5K_VERSION_RAD, AR5K_SREV_RAD_2316 }, | ||
135 | { "2317", AR5K_VERSION_RAD, AR5K_SREV_RAD_2317 }, | ||
136 | { "5424", AR5K_VERSION_RAD, AR5K_SREV_RAD_5424 }, | ||
131 | { "5133", AR5K_VERSION_RAD, AR5K_SREV_RAD_5133 }, | 137 | { "5133", AR5K_VERSION_RAD, AR5K_SREV_RAD_5133 }, |
132 | { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN }, | 138 | { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN }, |
133 | }; | 139 | }; |
@@ -536,7 +542,7 @@ ath5k_pci_probe(struct pci_dev *pdev, | |||
536 | goto err_ah; | 542 | goto err_ah; |
537 | 543 | ||
538 | ATH5K_INFO(sc, "Atheros AR%s chip found (MAC: 0x%x, PHY: 0x%x)\n", | 544 | ATH5K_INFO(sc, "Atheros AR%s chip found (MAC: 0x%x, PHY: 0x%x)\n", |
539 | ath5k_chip_name(AR5K_VERSION_VER,sc->ah->ah_mac_srev), | 545 | ath5k_chip_name(AR5K_VERSION_MAC, sc->ah->ah_mac_srev), |
540 | sc->ah->ah_mac_srev, | 546 | sc->ah->ah_mac_srev, |
541 | sc->ah->ah_phy_revision); | 547 | sc->ah->ah_phy_revision); |
542 | 548 | ||