base.c (a02001086bbfb4da35d1228bebc2f1b442db455f) | base.c (0e5d3ab532dd6bd43406d91b1dacb391973f831f) |
---|---|
1/*- 2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 3 * Copyright (c) 2004-2005 Atheros Communications, Inc. 4 * Copyright (c) 2006 Devicescape Software, Inc. 5 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com> 6 * Copyright (c) 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu> 7 * 8 * All rights reserved. --- 85 unchanged lines hidden (view full) --- 94MODULE_LICENSE("Dual BSD/GPL"); 95 96static int ath5k_init(struct ieee80211_hw *hw); 97static int ath5k_reset(struct ath5k_hw *ah, struct ieee80211_channel *chan, 98 bool skip_pcu); 99 100/* Known SREVs */ 101static const struct ath5k_srev_name srev_names[] = { | 1/*- 2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 3 * Copyright (c) 2004-2005 Atheros Communications, Inc. 4 * Copyright (c) 2006 Devicescape Software, Inc. 5 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com> 6 * Copyright (c) 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu> 7 * 8 * All rights reserved. --- 85 unchanged lines hidden (view full) --- 94MODULE_LICENSE("Dual BSD/GPL"); 95 96static int ath5k_init(struct ieee80211_hw *hw); 97static int ath5k_reset(struct ath5k_hw *ah, struct ieee80211_channel *chan, 98 bool skip_pcu); 99 100/* Known SREVs */ 101static const struct ath5k_srev_name srev_names[] = { |
102#ifdef CONFIG_ATHEROS_AR231X 103 { "5312", AR5K_VERSION_MAC, AR5K_SREV_AR5312_R2 }, 104 { "5312", AR5K_VERSION_MAC, AR5K_SREV_AR5312_R7 }, 105 { "2313", AR5K_VERSION_MAC, AR5K_SREV_AR2313_R8 }, 106 { "2315", AR5K_VERSION_MAC, AR5K_SREV_AR2315_R6 }, 107 { "2315", AR5K_VERSION_MAC, AR5K_SREV_AR2315_R7 }, 108 { "2317", AR5K_VERSION_MAC, AR5K_SREV_AR2317_R1 }, 109 { "2317", AR5K_VERSION_MAC, AR5K_SREV_AR2317_R2 }, 110#else |
|
102 { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 }, 103 { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 }, 104 { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A }, 105 { "5311B", AR5K_VERSION_MAC, AR5K_SREV_AR5311B }, 106 { "5211", AR5K_VERSION_MAC, AR5K_SREV_AR5211 }, 107 { "5212", AR5K_VERSION_MAC, AR5K_SREV_AR5212 }, 108 { "5213", AR5K_VERSION_MAC, AR5K_SREV_AR5213 }, 109 { "5213A", AR5K_VERSION_MAC, AR5K_SREV_AR5213A }, 110 { "2413", AR5K_VERSION_MAC, AR5K_SREV_AR2413 }, 111 { "2414", AR5K_VERSION_MAC, AR5K_SREV_AR2414 }, 112 { "5424", AR5K_VERSION_MAC, AR5K_SREV_AR5424 }, 113 { "5413", AR5K_VERSION_MAC, AR5K_SREV_AR5413 }, 114 { "5414", AR5K_VERSION_MAC, AR5K_SREV_AR5414 }, 115 { "2415", AR5K_VERSION_MAC, AR5K_SREV_AR2415 }, 116 { "5416", AR5K_VERSION_MAC, AR5K_SREV_AR5416 }, 117 { "5418", AR5K_VERSION_MAC, AR5K_SREV_AR5418 }, 118 { "2425", AR5K_VERSION_MAC, AR5K_SREV_AR2425 }, 119 { "2417", AR5K_VERSION_MAC, AR5K_SREV_AR2417 }, | 111 { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 }, 112 { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 }, 113 { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A }, 114 { "5311B", AR5K_VERSION_MAC, AR5K_SREV_AR5311B }, 115 { "5211", AR5K_VERSION_MAC, AR5K_SREV_AR5211 }, 116 { "5212", AR5K_VERSION_MAC, AR5K_SREV_AR5212 }, 117 { "5213", AR5K_VERSION_MAC, AR5K_SREV_AR5213 }, 118 { "5213A", AR5K_VERSION_MAC, AR5K_SREV_AR5213A }, 119 { "2413", AR5K_VERSION_MAC, AR5K_SREV_AR2413 }, 120 { "2414", AR5K_VERSION_MAC, AR5K_SREV_AR2414 }, 121 { "5424", AR5K_VERSION_MAC, AR5K_SREV_AR5424 }, 122 { "5413", AR5K_VERSION_MAC, AR5K_SREV_AR5413 }, 123 { "5414", AR5K_VERSION_MAC, AR5K_SREV_AR5414 }, 124 { "2415", AR5K_VERSION_MAC, AR5K_SREV_AR2415 }, 125 { "5416", AR5K_VERSION_MAC, AR5K_SREV_AR5416 }, 126 { "5418", AR5K_VERSION_MAC, AR5K_SREV_AR5418 }, 127 { "2425", AR5K_VERSION_MAC, AR5K_SREV_AR2425 }, 128 { "2417", AR5K_VERSION_MAC, AR5K_SREV_AR2417 }, |
129#endif |
|
120 { "xxxxx", AR5K_VERSION_MAC, AR5K_SREV_UNKNOWN }, 121 { "5110", AR5K_VERSION_RAD, AR5K_SREV_RAD_5110 }, 122 { "5111", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111 }, 123 { "5111A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111A }, 124 { "2111", AR5K_VERSION_RAD, AR5K_SREV_RAD_2111 }, 125 { "5112", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112 }, 126 { "5112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112A }, 127 { "5112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112B }, 128 { "2112", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112 }, 129 { "2112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112A }, 130 { "2112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112B }, 131 { "2413", AR5K_VERSION_RAD, AR5K_SREV_RAD_2413 }, 132 { "5413", AR5K_VERSION_RAD, AR5K_SREV_RAD_5413 }, 133 { "5424", AR5K_VERSION_RAD, AR5K_SREV_RAD_5424 }, 134 { "5133", AR5K_VERSION_RAD, AR5K_SREV_RAD_5133 }, | 130 { "xxxxx", AR5K_VERSION_MAC, AR5K_SREV_UNKNOWN }, 131 { "5110", AR5K_VERSION_RAD, AR5K_SREV_RAD_5110 }, 132 { "5111", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111 }, 133 { "5111A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111A }, 134 { "2111", AR5K_VERSION_RAD, AR5K_SREV_RAD_2111 }, 135 { "5112", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112 }, 136 { "5112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112A }, 137 { "5112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112B }, 138 { "2112", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112 }, 139 { "2112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112A }, 140 { "2112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112B }, 141 { "2413", AR5K_VERSION_RAD, AR5K_SREV_RAD_2413 }, 142 { "5413", AR5K_VERSION_RAD, AR5K_SREV_RAD_5413 }, 143 { "5424", AR5K_VERSION_RAD, AR5K_SREV_RAD_5424 }, 144 { "5133", AR5K_VERSION_RAD, AR5K_SREV_RAD_5133 }, |
145#ifdef CONFIG_ATHEROS_AR231X 146 { "2316", AR5K_VERSION_RAD, AR5K_SREV_RAD_2316 }, 147 { "2317", AR5K_VERSION_RAD, AR5K_SREV_RAD_2317 }, 148#endif |
|
135 { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN }, 136}; 137 138static const struct ieee80211_rate ath5k_rates[] = { 139 { .bitrate = 10, 140 .hw_value = ATH5K_RATE_CODE_1M, }, 141 { .bitrate = 20, 142 .hw_value = ATH5K_RATE_CODE_2M, --- 3024 unchanged lines hidden --- | 149 { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN }, 150}; 151 152static const struct ieee80211_rate ath5k_rates[] = { 153 { .bitrate = 10, 154 .hw_value = ATH5K_RATE_CODE_1M, }, 155 { .bitrate = 20, 156 .hw_value = ATH5K_RATE_CODE_2M, --- 3024 unchanged lines hidden --- |