/*
 * Copyright (c) 2018-2022, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef ARM_ARCH_SVC_H
#define ARM_ARCH_SVC_H

#define SMCCC_VERSION			U(0x80000000)
#define SMCCC_ARCH_FEATURES		U(0x80000001)
#define SMCCC_ARCH_SOC_ID		U(0x80000002)
#define SMCCC_ARCH_WORKAROUND_1		U(0x80008000)
#define SMCCC_ARCH_WORKAROUND_2		U(0x80007FFF)
#define SMCCC_ARCH_WORKAROUND_3		U(0x80003FFF)

#define ARM_ARCH_SVC_CALL_COUNT		U(0x8000ff00)
#define ARM_ARCH_SVC_UID		U(0x8000ff01)
#define ARM_ARCH_SVC_VERSION		U(0x8000ff03)

#define ARM_ARCH_SVC_COUNT		U(7)

#define ARM_ARCH_SVC_VERSION_MAJOR	U(0)
#define ARM_ARCH_SVC_VERSION_MINOR	U(1)

#define SMCCC_GET_SOC_VERSION		U(0)
#define SMCCC_GET_SOC_REVISION		U(1)

#endif /* ARM_ARCH_SVC_H */
