X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fah_internal.h;h=0004a1c3bb429642da698eb78564ffd53ff75d4a;hb=3ab79b4a8e895983a5701b08e767c1e9ff9f622a;hp=242ac7f4707121c58a784cb7b5ade7a7c4ff1fb9;hpb=0421b61b6a02eb61eaea125641ba69002d76ecf2;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ah_internal.h b/target_firmware/wlan/ah_internal.h index 242ac7f..0004a1c 100755 --- a/target_firmware/wlan/ah_internal.h +++ b/target_firmware/wlan/ah_internal.h @@ -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 */