1f10796a0Sdp-arm /* 2*b10d4499SJeenu Viswambharan * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. 3f10796a0Sdp-arm * 4f10796a0Sdp-arm * Redistribution and use in source and binary forms, with or without 5f10796a0Sdp-arm * modification, are permitted provided that the following conditions are met: 6f10796a0Sdp-arm * 7f10796a0Sdp-arm * Redistributions of source code must retain the above copyright notice, this 8f10796a0Sdp-arm * list of conditions and the following disclaimer. 9f10796a0Sdp-arm * 10f10796a0Sdp-arm * Redistributions in binary form must reproduce the above copyright notice, 11f10796a0Sdp-arm * this list of conditions and the following disclaimer in the documentation 12f10796a0Sdp-arm * and/or other materials provided with the distribution. 13f10796a0Sdp-arm * 14f10796a0Sdp-arm * Neither the name of ARM nor the names of its contributors may be used 15f10796a0Sdp-arm * to endorse or promote products derived from this software without specific 16f10796a0Sdp-arm * prior written permission. 17f10796a0Sdp-arm * 18f10796a0Sdp-arm * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19f10796a0Sdp-arm * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20f10796a0Sdp-arm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21f10796a0Sdp-arm * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22f10796a0Sdp-arm * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23f10796a0Sdp-arm * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24f10796a0Sdp-arm * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25f10796a0Sdp-arm * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26f10796a0Sdp-arm * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27f10796a0Sdp-arm * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28f10796a0Sdp-arm * POSSIBILITY OF SUCH DAMAGE. 29f10796a0Sdp-arm */ 30f10796a0Sdp-arm 31f10796a0Sdp-arm #ifndef __ARM_SIP_SVC_H__ 32f10796a0Sdp-arm #define __ARM_SIP_SVC_H__ 33f10796a0Sdp-arm 34f10796a0Sdp-arm /* SMC function IDs for SiP Service queries */ 35f10796a0Sdp-arm 36f10796a0Sdp-arm #define ARM_SIP_SVC_CALL_COUNT 0x8200ff00 37f10796a0Sdp-arm #define ARM_SIP_SVC_UID 0x8200ff01 38f10796a0Sdp-arm /* 0x8200ff02 is reserved */ 39f10796a0Sdp-arm #define ARM_SIP_SVC_VERSION 0x8200ff03 40f10796a0Sdp-arm 41*b10d4499SJeenu Viswambharan /* Function ID for requesting state switch of lower EL */ 42*b10d4499SJeenu Viswambharan #define ARM_SIP_SVC_EXE_STATE_SWITCH 0x82000020 43*b10d4499SJeenu Viswambharan 44f10796a0Sdp-arm /* ARM SiP Service Calls version numbers */ 45f10796a0Sdp-arm #define ARM_SIP_SVC_VERSION_MAJOR 0x0 46*b10d4499SJeenu Viswambharan #define ARM_SIP_SVC_VERSION_MINOR 0x2 47f10796a0Sdp-arm 48f10796a0Sdp-arm #endif /* __ARM_SIP_SVC_H__ */ 49