@@ -3208,13 +3208,17 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
3208
3208
#define FBC_CFB_BASE _MMIO(0x3200) /* 4k page aligned */
3209
3209
#define FBC_LL_BASE _MMIO(0x3204) /* 4k page aligned */
3210
3210
#define FBC_CONTROL _MMIO(0x3208)
3211
- #define FBC_CTL_EN (1 << 31)
3212
- #define FBC_CTL_PERIODIC (1 << 30)
3213
- #define FBC_CTL_INTERVAL_SHIFT (16)
3214
- #define FBC_CTL_UNCOMPRESSIBLE (1 << 14)
3215
- #define FBC_CTL_C3_IDLE (1 << 13)
3216
- #define FBC_CTL_STRIDE_SHIFT (5)
3217
- #define FBC_CTL_FENCENO_SHIFT (0)
3211
+ #define FBC_CTL_EN REG_BIT(31)
3212
+ #define FBC_CTL_PERIODIC REG_BIT(30)
3213
+ #define FBC_CTL_INTERVAL_MASK REG_GENMASK(29, 16)
3214
+ #define FBC_CTL_INTERVAL (x ) REG_FIELD_PREP(FBC_CTL_INTERVAL_MASK, (x))
3215
+ #define FBC_CTL_STOP_ON_MOD REG_BIT(15)
3216
+ #define FBC_CTL_UNCOMPRESSIBLE REG_BIT(14) /* i915+ */
3217
+ #define FBC_CTL_C3_IDLE REG_BIT(13) /* i945gm */
3218
+ #define FBC_CTL_STRIDE_MASK REG_GENMASK(12, 5)
3219
+ #define FBC_CTL_STRIDE (x ) REG_FIELD_PREP(FBC_CTL_STRIDE_MASK, (x))
3220
+ #define FBC_CTL_FENCENO_MASK REG_GENMASK(3, 0)
3221
+ #define FBC_CTL_FENCENO (x ) REG_FIELD_PREP(FBC_CTL_FENCENO_MASK, (x))
3218
3222
#define FBC_COMMAND _MMIO(0x320c)
3219
3223
#define FBC_CMD_COMPRESS (1 << 0)
3220
3224
#define FBC_STATUS _MMIO(0x3210)
0 commit comments