summaryrefslogtreecommitdiffstats
path: root/include/asm-microblaze/asm.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-05-08 14:39:11 +0200
committerMichal Simek <monstr@monstr.eu>2007-05-08 14:39:11 +0200
commitab874d5047e5d30dbc1e517ff26083efffa98ecb (patch)
treeda6bd36263be3a251bc04c4ce8875355e4310aeb /include/asm-microblaze/asm.h
parent3c4bd60de15d79ddfc0cf3170a55847b2025d93f (diff)
downloadbootable_bootloader_goldelico_gta04-ab874d5047e5d30dbc1e517ff26083efffa98ecb.zip
bootable_bootloader_goldelico_gta04-ab874d5047e5d30dbc1e517ff26083efffa98ecb.tar.gz
bootable_bootloader_goldelico_gta04-ab874d5047e5d30dbc1e517ff26083efffa98ecb.tar.bz2
add: FSL control read and write
Diffstat (limited to 'include/asm-microblaze/asm.h')
-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 c59854a..26e3691 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));