xref: /arm-trusted-firmware/plat/qti/common/inc/spmi_arb.h (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2020, Google LLC. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu  */
6*91f16700Schasinglulu 
7*91f16700Schasinglulu #ifndef SPMI_ARB_H
8*91f16700Schasinglulu #define SPMI_ARB_H
9*91f16700Schasinglulu 
10*91f16700Schasinglulu #include <stdint.h>
11*91f16700Schasinglulu 
12*91f16700Schasinglulu /*******************************************************************************
13*91f16700Schasinglulu  * WARNING: This driver does not arbitrate access with the kernel. These APIs
14*91f16700Schasinglulu  * must only be called when the kernel is known to be quiesced (such as before
15*91f16700Schasinglulu  * boot or while the system is shutting down).
16*91f16700Schasinglulu  ******************************************************************************/
17*91f16700Schasinglulu 
18*91f16700Schasinglulu /* 32-bit addresses combine (U)SID, PID and register address. */
19*91f16700Schasinglulu 
20*91f16700Schasinglulu int spmi_arb_read8(uint32_t addr);
21*91f16700Schasinglulu int spmi_arb_write8(uint32_t addr, uint8_t data);
22*91f16700Schasinglulu 
23*91f16700Schasinglulu #endif /* SPMI_ARB_H */
24