Linux v2.6.15-rc6
[pohmelfs.git] / include / asm-cris / arch-v32 / hwregs / reg_rdwr.h
blob44e60233c68feb36c1ed9d0d763974a38569f8cc
1 /* $Id: reg_rdwr.h,v 1.6 2005/04/24 18:30:58 starvik Exp $
3 * Read/write register macros used by *_defs.h
4 */
6 #ifndef reg_rdwr_h
7 #define reg_rdwr_h
10 #define REG_READ(type, addr) *((volatile type *) (addr))
12 #define REG_WRITE(type, addr, val) \
13 do { *((volatile type *) (addr)) = (val); } while(0)
15 #endif