diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-07-28 09:30:20 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-28 09:30:20 +0100 |
commit | 661299d9d0437a0ff72240f3d60016ac3a361a6e (patch) | |
tree | 765512576314fc3612b503f182b9ae4e60fcf849 /include/asm-cris/arch-v32/hwregs/reg_rdwr.h | |
parent | 05caac585f8abd6c0113856bc8858e3ef214d8a6 (diff) | |
parent | 41c018b7ecb60b1c2c4d5dee0cd37d32a94c45af (diff) | |
download | kernel_samsung_tuna-661299d9d0437a0ff72240f3d60016ac3a361a6e.zip kernel_samsung_tuna-661299d9d0437a0ff72240f3d60016ac3a361a6e.tar.gz kernel_samsung_tuna-661299d9d0437a0ff72240f3d60016ac3a361a6e.tar.bz2 |
Merge with Linus' 2.6 tree
Diffstat (limited to 'include/asm-cris/arch-v32/hwregs/reg_rdwr.h')
-rw-r--r-- | include/asm-cris/arch-v32/hwregs/reg_rdwr.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/hwregs/reg_rdwr.h b/include/asm-cris/arch-v32/hwregs/reg_rdwr.h new file mode 100644 index 0000000..44e6023 --- /dev/null +++ b/include/asm-cris/arch-v32/hwregs/reg_rdwr.h @@ -0,0 +1,15 @@ +/* $Id: reg_rdwr.h,v 1.6 2005/04/24 18:30:58 starvik Exp $ + * + * Read/write register macros used by *_defs.h + */ + +#ifndef reg_rdwr_h +#define reg_rdwr_h + + +#define REG_READ(type, addr) *((volatile type *) (addr)) + +#define REG_WRITE(type, addr, val) \ + do { *((volatile type *) (addr)) = (val); } while(0) + +#endif |