remove ath_hal_reg_write_target and OS_REG_WRITE
[open-ath9k-htc-firmware.git] / target_firmware / wlan / ah_internal.h
index 242ac7f4707121c58a784cb7b5ade7a7c4ff1fb9..0004a1c3bb429642da698eb78564ffd53ff75d4a 100755 (executable)
@@ -237,16 +237,16 @@ struct ath_hal_private {
 #define SM(_v, _f)  (((_v) << _f##_S) & _f)
 #define MS(_v, _f)  (((_v) & _f) >> _f##_S)
 #define OS_REG_RMW_FIELD(_a, _r, _f, _v)                               \
-       OS_REG_WRITE(_a, _r,                                            \
+       iowrite32_mac(_r,                                               \
                     (ioread32_mac(_r) & ~_f)           \
                      | (((_v) << _f##_S) & _f))
 #define OS_REG_RMW(_a, _r, _set, _clr)                                 \
-       OS_REG_WRITE(_a, _r,                                            \
+       iowrite32_mac(_r,                                               \
                     (ioread32_mac(_r) & ~(_clr)) | (_set))
 #define OS_REG_SET_BIT(_a, _r, _f)                     \
-       OS_REG_WRITE(_a, _r, ioread32_mac(_r) | _f)
+       iowrite32_mac(_r, ioread32_mac(_r) | _f)
 #define OS_REG_CLR_BIT(_a, _r, _f)                     \
-       OS_REG_WRITE(_a, _r, ioread32_mac(_r) & ~_f)
+       iowrite32_mac(_r, ioread32_mac(_r) & ~_f)
 
 
 /* wait for the register contents to have the specified value */