1 #ifndef __NOUVEAU_GRCTX_H__
2 #define __NOUVEAU_GRCTX_H__
26 if (ctx->
mode != NOUVEAU_GRCTX_PROG)
61 if (ctx->
mode != NOUVEAU_GRCTX_PROG)
66 if ((ctxprog[i] & 0xfff00000) != 0xff400000)
70 ctxprog[
i] = (ctxprog[
i] & 0x00ff00ff) |
86 cp_out(ctx,
CP_BRA | (mod << 18) | ip | flag |
89 #define cp_bra(c, f, s, n) _cp_bra((c), 0, CP_FLAG_##f, CP_FLAG_##f##_##s, n)
90 #define cp_cal(c, f, s, n) _cp_bra((c), 1, CP_FLAG_##f, CP_FLAG_##f##_##s, n)
91 #define cp_ret(c, f, s) _cp_bra((c), 2, CP_FLAG_##f, CP_FLAG_##f##_##s, 0)
98 #define cp_wait(c, f, s) _cp_wait((c), CP_FLAG_##f, CP_FLAG_##f##_##s)
105 #define cp_set(c, f, s) _cp_set((c), CP_FLAG_##f, CP_FLAG_##f##_##s)
120 if (ctx->
mode != NOUVEAU_GRCTX_VALS)
123 reg = (reg - 0x00400000) / 4;
126 nv_wo32(ctx->
data, reg * 4, val);