blob: 3e25cbc6adc71783e70fd32afc50cf69278644be [file] [log] [blame]
dp-arm1cebefd2016-09-19 11:21:03 +01001/*
Antonio Nino Diaz05fdb832018-10-25 16:53:04 +01002 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
dp-arm1cebefd2016-09-19 11:21:03 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
dp-arm1cebefd2016-09-19 11:21:03 +01005 */
6
Antonio Nino Diaz05fdb832018-10-25 16:53:04 +01007#ifndef ARM_SIP_SVC_H
8#define ARM_SIP_SVC_H
9
10#include <utils_def.h>
dp-arm1cebefd2016-09-19 11:21:03 +010011
12/* SMC function IDs for SiP Service queries */
13
Antonio Nino Diaz05fdb832018-10-25 16:53:04 +010014#define ARM_SIP_SVC_CALL_COUNT U(0x8200ff00)
15#define ARM_SIP_SVC_UID U(0x8200ff01)
16/* U(0x8200ff02) is reserved */
17#define ARM_SIP_SVC_VERSION U(0x8200ff03)
dp-arm1cebefd2016-09-19 11:21:03 +010018
Jeenu Viswambharanbc1a9292017-02-16 14:55:15 +000019/* Function ID for requesting state switch of lower EL */
Antonio Nino Diaz05fdb832018-10-25 16:53:04 +010020#define ARM_SIP_SVC_EXE_STATE_SWITCH U(0x82000020)
Jeenu Viswambharanbc1a9292017-02-16 14:55:15 +000021
dp-arm1cebefd2016-09-19 11:21:03 +010022/* ARM SiP Service Calls version numbers */
Antonio Nino Diaz05fdb832018-10-25 16:53:04 +010023#define ARM_SIP_SVC_VERSION_MAJOR U(0x0)
24#define ARM_SIP_SVC_VERSION_MINOR U(0x2)
dp-arm1cebefd2016-09-19 11:21:03 +010025
Antonio Nino Diaz05fdb832018-10-25 16:53:04 +010026#endif /* ARM_SIP_SVC_H */