diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/hw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/carl9170/hw.h b/drivers/net/wireless/ath/carl9170/hw.h index b1292ac5b703..2f471b3f05af 100644 --- a/drivers/net/wireless/ath/carl9170/hw.h +++ b/drivers/net/wireless/ath/carl9170/hw.h | |||
@@ -731,6 +731,9 @@ struct ar9170_stream { | |||
731 | #define SET_VAL(reg, value, newvalue) \ | 731 | #define SET_VAL(reg, value, newvalue) \ |
732 | (value = ((value) & ~reg) | (((newvalue) << reg##_S) & reg)) | 732 | (value = ((value) & ~reg) | (((newvalue) << reg##_S) & reg)) |
733 | 733 | ||
734 | #define SET_CONSTVAL(reg, newvalue) \ | ||
735 | (((newvalue) << reg##_S) & reg) | ||
736 | |||
734 | #define MOD_VAL(reg, value, newvalue) \ | 737 | #define MOD_VAL(reg, value, newvalue) \ |
735 | (((value) & ~reg) | (((newvalue) << reg##_S) & reg)) | 738 | (((value) & ~reg) | (((newvalue) << reg##_S) & reg)) |
736 | #endif /* __CARL9170_SHARED_HW_H */ | 739 | #endif /* __CARL9170_SHARED_HW_H */ |