projects
/
profile
/
mobile
/
platform
/
kernel
/
linux-3.10-sc7730.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git]
/
arch
/
cris
/
include
/
arch-v32
/
arch
/
hwregs
/
reg_rdwr.h
1
/*
2
* Read/write register macros used by *_defs.h
3
*/
4
5
#ifndef reg_rdwr_h
6
#define reg_rdwr_h
7
8
#ifndef REG_READ
9
#define REG_READ(type, addr) (*((volatile type *) (addr)))
10
#endif
11
12
#ifndef REG_WRITE
13
#define REG_WRITE(type, addr, val) \
14
do { *((volatile type *) (addr)) = (val); } while(0)
15
#endif
16
17
#endif