dp-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 05fdb83 | 2018-10-25 16:53:04 +0100 | [diff] [blame] | 2 | * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. |
dp-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
dp-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | 05fdb83 | 2018-10-25 16:53:04 +0100 | [diff] [blame] | 7 | #ifndef ARM_SIP_SVC_H |
| 8 | #define ARM_SIP_SVC_H |
| 9 | |
| 10 | #include <utils_def.h> |
dp-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 11 | |
| 12 | /* SMC function IDs for SiP Service queries */ |
| 13 | |
Antonio Nino Diaz | 05fdb83 | 2018-10-25 16:53:04 +0100 | [diff] [blame] | 14 | #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-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 18 | |
Jeenu Viswambharan | bc1a929 | 2017-02-16 14:55:15 +0000 | [diff] [blame] | 19 | /* Function ID for requesting state switch of lower EL */ |
Antonio Nino Diaz | 05fdb83 | 2018-10-25 16:53:04 +0100 | [diff] [blame] | 20 | #define ARM_SIP_SVC_EXE_STATE_SWITCH U(0x82000020) |
Jeenu Viswambharan | bc1a929 | 2017-02-16 14:55:15 +0000 | [diff] [blame] | 21 | |
dp-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 22 | /* ARM SiP Service Calls version numbers */ |
Antonio Nino Diaz | 05fdb83 | 2018-10-25 16:53:04 +0100 | [diff] [blame] | 23 | #define ARM_SIP_SVC_VERSION_MAJOR U(0x0) |
| 24 | #define ARM_SIP_SVC_VERSION_MINOR U(0x2) |
dp-arm | 1cebefd | 2016-09-19 11:21:03 +0100 | [diff] [blame] | 25 | |
Antonio Nino Diaz | 05fdb83 | 2018-10-25 16:53:04 +0100 | [diff] [blame] | 26 | #endif /* ARM_SIP_SVC_H */ |