License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / cris / include / arch-v32 / arch / hwregs / reg_rdwr.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1791f539 2/*
51533b61
MS
3 * Read/write register macros used by *_defs.h
4 */
5
6#ifndef reg_rdwr_h
7#define reg_rdwr_h
8
1791f539
JN
9#ifndef REG_READ
10#define REG_READ(type, addr) (*((volatile type *) (addr)))
11#endif
51533b61 12
1791f539 13#ifndef REG_WRITE
51533b61
MS
14#define REG_WRITE(type, addr, val) \
15 do { *((volatile type *) (addr)) = (val); } while(0)
1791f539 16#endif
51533b61
MS
17
18#endif