Jeenu Viswambharan | 1814a3e | 2014-02-28 10:08:33 +0000 | [diff] [blame] | 1 | /* |
Soby Mathew | 0d78607 | 2016-03-24 16:56:29 +0000 | [diff] [blame] | 2 | * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. |
Jeenu Viswambharan | 1814a3e | 2014-02-28 10:08:33 +0000 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Jeenu Viswambharan | 1814a3e | 2014-02-28 10:08:33 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef STD_SVC_H |
| 8 | #define STD_SVC_H |
Jeenu Viswambharan | 1814a3e | 2014-02-28 10:08:33 +0000 | [diff] [blame] | 9 | |
| 10 | /* SMC function IDs for Standard Service queries */ |
| 11 | |
| 12 | #define ARM_STD_SVC_CALL_COUNT 0x8400ff00 |
| 13 | #define ARM_STD_SVC_UID 0x8400ff01 |
| 14 | /* 0x8400ff02 is reserved */ |
| 15 | #define ARM_STD_SVC_VERSION 0x8400ff03 |
| 16 | |
| 17 | /* ARM Standard Service Calls version numbers */ |
| 18 | #define STD_SVC_VERSION_MAJOR 0x0 |
| 19 | #define STD_SVC_VERSION_MINOR 0x1 |
| 20 | |
Soby Mathew | 8da8966 | 2016-09-19 17:21:15 +0100 | [diff] [blame] | 21 | /* |
| 22 | * Get the ARM Standard Service argument from EL3 Runtime. |
| 23 | * This function must be implemented by EL3 Runtime and the |
| 24 | * `svc_mask` identifies the service. `svc_mask` is a bit |
| 25 | * mask identifying the range of SMC function IDs available |
| 26 | * to the service. |
| 27 | */ |
| 28 | uintptr_t get_arm_std_svc_args(unsigned int svc_mask); |
| 29 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 30 | #endif /* STD_SVC_H */ |