Changeset 3951
- Timestamp:
- 02/12/09 22:43:42 (3 years ago)
- Files:
-
- madwifi/branches/madwifi-free/hal/ah.c (modified) (4 diffs)
- madwifi/branches/madwifi-free/hal/ah_eeprom_v14.c (modified) (2 diffs)
- madwifi/branches/madwifi-free/hal/ah_eeprom_v3.c (modified) (1 diff)
- madwifi/branches/madwifi-free/hal/ah_osdep.h (modified) (1 diff)
- madwifi/branches/madwifi-free/hal/ar5212/ar5111.c (modified) (2 diffs)
- madwifi/branches/madwifi-free/hal/ar5212/ar5212_misc.c (modified) (2 diffs)
- madwifi/branches/madwifi-free/hal/ar5312/ar5312.h (modified) (1 diff)
- madwifi/branches/madwifi-free/hal/ar5312/ar5312_attach.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/branches/madwifi-free/hal/ah.c
r3882 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ah.c,v 1.15 2008/11/15 22:15:44 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #include "opt_ah.h" … … 33 33 ath_hal_probe(uint16_t vendorid, uint16_t devid) 34 34 { 35 struct ath_hal_chip * *pchip;35 struct ath_hal_chip * const *pchip; 36 36 37 37 OS_SET_FOREACH(pchip, ah_chips) { … … 54 54 HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *error) 55 55 { 56 struct ath_hal_chip * *pchip;56 struct ath_hal_chip * const *pchip; 57 57 58 58 OS_SET_FOREACH(pchip, ah_chips) { … … 89 89 ath_hal_rfprobe(struct ath_hal *ah, HAL_STATUS *ecode) 90 90 { 91 struct ath_hal_rf * *prf;91 struct ath_hal_rf * const *prf; 92 92 93 93 OS_SET_FOREACH(prf, ah_rfs) { madwifi/branches/madwifi-free/hal/ah_eeprom_v14.c
r3926 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ah_eeprom_v14.c,v 1.4 2008/11/10 19:04:26 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #include "opt_ah.h" … … 161 161 } 162 162 163 /* XXX conditionalize by target byte order */164 #ifndef bswap16165 static __inline__ uint16_t166 __bswap16(uint16_t _x)167 {168 return ((uint16_t)(169 (((const uint8_t *)(&_x))[0] ) |170 (((const uint8_t *)(&_x))[1]<< 8))171 );172 }173 #endif174 175 163 /* Do structure specific swaps if Eeprom format is non native to host */ 176 164 static void madwifi/branches/madwifi-free/hal/ah_eeprom_v3.c
r3882 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ah_eeprom_v3.c,v 1.4 2008/11/27 22:39:42 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #include "opt_ah.h" madwifi/branches/madwifi-free/hal/ah_osdep.h
r3949 r3951 235 235 extern void *__ahdecl ath_hal_memcpy(void *, const void *, size_t); 236 236 237 #define __bswap16(val) __swab16(val) 237 238 #define __bswap32(val) __swab32(val) 238 239 madwifi/branches/madwifi-free/hal/ar5212/ar5111.c
r3881 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ar5111.c,v 1.7 2008/11/10 04:08:03 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #include "opt_ah.h" … … 91 91 } CHAN_INFO_2GHZ; 92 92 93 const staticCHAN_INFO_2GHZ chan2GHzData[] = {93 static const CHAN_INFO_2GHZ chan2GHzData[] = { 94 94 { 1, 0x46, 96 }, /* 2312 -19 */ 95 95 { 1, 0x46, 97 }, /* 2317 -18 */ madwifi/branches/madwifi-free/hal/ar5212/ar5212_misc.c
r3944 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ar5212_misc.c,v 1.12 2008/11/27 22:30:00 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #include "opt_ah.h" … … 804 804 AR_STA_ID1_CRPT_MIC_ENABLE) ? HAL_OK : HAL_ENXIO; 805 805 } 806 return HAL_EINVAL; 806 807 case HAL_CAP_TKIP_SPLIT: /* hardware TKIP uses split keys */ 807 808 switch (capability) { madwifi/branches/madwifi-free/hal/ar5312/ar5312.h
r3920 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ar5312.h,v 1.5 2008/11/22 07:37:40 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #ifndef _ATH_AR5312_H_ madwifi/branches/madwifi-free/hal/ar5312/ar5312_attach.c
r3948 r3951 15 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 16 * 17 * $ Id: ar5312_attach.c,v 1.8 2008/11/27 22:30:03 sam Exp$17 * $FreeBSD$ 18 18 */ 19 19 #include "opt_ah.h"
