diff options
author | Michal Simek <monstr@monstr.eu> | 2007-05-08 14:39:11 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2007-05-08 14:39:11 +0200 |
commit | ab874d5047e5d30dbc1e517ff26083efffa98ecb (patch) | |
tree | da6bd36263be3a251bc04c4ce8875355e4310aeb /include/asm-microblaze | |
parent | 3c4bd60de15d79ddfc0cf3170a55847b2025d93f (diff) |
add: FSL control read and write
Diffstat (limited to 'include/asm-microblaze')
-rwxr-xr-x | include/asm-microblaze/asm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-microblaze/asm.h b/include/asm-microblaze/asm.h index c59854a860..26e369119e 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)); |