drm/nouveau/pwr/fuc: add ld/st macros
authorMartin Peres <martin.peres@labri.fr>
Sun, 17 Aug 2014 15:33:13 +0000 (17:33 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Sep 2014 12:24:57 +0000 (22:24 +1000)
Signed-off-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/pwr/fuc/macros.fuc

index 9707e3f4460e8fb618b0f6e44f5d1f2a33a8a4be..96fc984dafdc95159d910b1670a9bef826be8705 100644 (file)
 */     clear b32 $r0
 #endif
 
+#define st(size, addr, reg) /*
+*/     movw $r0 addr /*
+*/     st size D[$r0] reg /*
+*/     clear b32 $r0
+
+#define ld(size, reg, addr) /*
+*/     movw $r0 addr /*
+*/     ld size reg D[$r0] /*
+*/     clear b32 $r0
+
 // does a 64+64 -> 64 unsigned addition (C = A + B)
 #define addu64(reg_a_c_hi, reg_a_c_lo, b_hi, b_lo) /*
 */    add b32 reg_a_c_lo b_lo /*