X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fah_osdep.h;h=4d44fce1358ca922d012c61b0340f187defa910e;hb=b568900f35cef12a8440a6a449474b00c1206a79;hp=f45e0cbd3a7f5ec8d751f61827ea124b469211d4;hpb=e58fbe2efce3a9ae307c41765e5dd39882dff0f4;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ah_osdep.h b/target_firmware/wlan/ah_osdep.h index f45e0cb..4d44fce 100755 --- a/target_firmware/wlan/ah_osdep.h +++ b/target_firmware/wlan/ah_osdep.h @@ -4,17 +4,15 @@ * * Redistribution and use in source and binary forms are permitted * provided that the following conditions are met: - * 1. The materials contained herein are unmodified and are used - * unmodified. - * 2. Redistributions of source code must retain the above copyright + * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following NO * ''WARRANTY'' disclaimer below (''Disclaimer''), without * modification. - * 3. Redistributions in binary form must reproduce at minimum a + * 2. Redistributions in binary form must reproduce at minimum a * disclaimer similar to the Disclaimer below and any redistribution * must be conditioned upon including a substantially similar * Disclaimer requirement for further binary redistribution. - * 4. Neither the names of the above-listed copyright holders nor the + * 3. Neither the names of the above-listed copyright holders nor the * names of any contributors may be used to endorse or promote * product derived from this software without specific prior written * permission. @@ -128,8 +126,6 @@ extern void __ahdecl ath_hal_delay(a_int32_t); extern void* __ahdecl ath_hal_ioremap(a_uint32_t addr, a_uint32_t len); #define OS_REMAP(_addr, _len) ath_hal_ioremap(_addr, _len) -#define OS_MEMZERO(_a, _n) ath_hal_memzero((_a), (_n)) -extern void __ahdecl ath_hal_memzero(void *, size_t); #define OS_MEMCPY(_d, _s, _n) ath_hal_memcpy(_d,_s,_n) extern void * __ahdecl ath_hal_memcpy(void *, const void *, size_t); @@ -148,15 +144,7 @@ extern a_uint32_t __ahdecl ath_hal_getuptime(struct ath_hal *); #define __bswap16(_x) (_x) #endif -#define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write_target(_ah, _reg, _val) -#define OS_REG_READ(_ah, _reg) ath_hal_reg_read_target(_ah, _reg) - -extern void __ahdecl ath_hal_reg_write_target(struct ath_hal *ah, - a_uint32_t reg, a_uint32_t val); -extern a_uint32_t __ahdecl ath_hal_reg_read_target(struct ath_hal *ah, a_uint32_t reg); - #define AH_USE_EEPROM 0x00000001 extern struct ath_hal *_ath_hal_attach_tgt( a_uint32_t, HAL_SOFTC, adf_os_device_t, a_uint32_t flags, void* status); -extern void ath_hal_detach(struct ath_hal *); #endif /* _ATH_AH_OSDEP_H_ */