[Nouveau] [PATCH 08/10] pwr/fuc: add ld/st macros
Martin Peres
martin.peres at free.fr
Sun Aug 17 08:33:13 PDT 2014
From: Martin Peres <martin.peres at labri.fr>
Signed-off-by: Martin Peres <martin.peres at free.fr>
---
nvkm/subdev/pwr/fuc/macros.fuc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/nvkm/subdev/pwr/fuc/macros.fuc b/nvkm/subdev/pwr/fuc/macros.fuc
index 9707e3f..96fc984 100644
--- a/nvkm/subdev/pwr/fuc/macros.fuc
+++ b/nvkm/subdev/pwr/fuc/macros.fuc
@@ -251,6 +251,16 @@
*/ 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 /*
--
2.0.0
More information about the Nouveau
mailing list