aboutsummaryrefslogtreecommitdiff
path: root/include/asm-microblaze
diff options
context:
space:
mode:
authorMichal Simek2007-05-08 14:39:11 +0200
committerMichal Simek2007-05-08 14:39:11 +0200
commitab874d5047e5d30dbc1e517ff26083efffa98ecb (patch)
treeda6bd36263be3a251bc04c4ce8875355e4310aeb /include/asm-microblaze
parent3c4bd60de15d79ddfc0cf3170a55847b2025d93f (diff)
add: FSL control read and write
Diffstat (limited to 'include/asm-microblaze')
-rwxr-xr-xinclude/asm-microblaze/asm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-microblaze/asm.h b/include/asm-microblaze/asm.h
index c59854a8603..26e369119e1 100755
--- a/include/asm-microblaze/asm.h
+++ b/include/asm-microblaze/asm.h
@@ -25,13 +25,28 @@
/* FSL macros */
#define NGET(val, fslnum) \
__asm__ __volatile__ ("nget %0, rfsl" #fslnum :"=r" (val));
+
#define GET(val, fslnum) \
__asm__ __volatile__ ("get %0, rfsl" #fslnum :"=r" (val));
+
+#define NCGET(val, fslnum) \
+ __asm__ __volatile__ ("ncget %0, rfsl" #fslnum :"=r" (val));
+
+#define CGET(val, fslnum) \
+ __asm__ __volatile__ ("cget %0, rfsl" #fslnum :"=r" (val));
+
#define NPUT(val, fslnum) \
__asm__ __volatile__ ("nput %0, rfsl" #fslnum ::"r" (val));
+
#define PUT(val, fslnum) \
__asm__ __volatile__ ("put %0, rfsl" #fslnum ::"r" (val));
+#define NCPUT(val, fslnum) \
+ __asm__ __volatile__ ("ncput %0, rfsl" #fslnum ::"r" (val));
+
+#define CPUT(val, fslnum) \
+ __asm__ __volatile__ ("cput %0, rfsl" #fslnum ::"r" (val));
+
/* CPU dependent */
#define MFS(val) \
__asm__ __volatile__ ("mfs %0, rmsr":"=r" (val));