1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _RUN_INTEGRATION_PAL_REG_H_
8 #define _RUN_INTEGRATION_PAL_REG_H_
9 
10 /************************************************************
11  *
12  * macros
13  *
14  ************************************************************/
15 /** Write to register at offset (in words)*/
16 #define RUNIT_READ_REG(offset) \
17         *(volatile uint32_t *)(processMap.processTeeHwRegBaseAddr + (offset))
18 
19 /** Read from register at offset (in words) into val */
20 #define RUNIT_WRITE_REG(offset, val)  { \
21     (*(volatile uint32_t *)(processMap.processTeeHwRegBaseAddr + (offset))) = (uint32_t)(val); \
22 }
23 
24 #endif //_RUN_INTEGRATION_PAL_REG_H_
25