mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-15 08:57:02 +02:00
Rename SP_VERSION macros to MM_VERSION, which is the name used in the MM specification [1]. Also, a few more helper macros have been added. MM-specific definitions have been moved to their own header file. [1] http://infocenter.arm.com/help/topic/com.arm.doc.den0060a/DEN0060A_ARM_MM_Interface_Specification.pdf Change-Id: Ia10e48c7e81a7a1f5eeca29a5270cae740a4a88a Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
32 lines
908 B
C
32 lines
908 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __MM_SVC_H__
|
|
#define __MM_SVC_H__
|
|
|
|
#include <utils_def.h>
|
|
|
|
#define MM_VERSION_MAJOR U(1)
|
|
#define MM_VERSION_MAJOR_SHIFT 16
|
|
#define MM_VERSION_MAJOR_MASK U(0x7FFF)
|
|
#define MM_VERSION_MINOR U(0)
|
|
#define MM_VERSION_MINOR_SHIFT 0
|
|
#define MM_VERSION_MINOR_MASK U(0xFFFF)
|
|
#define MM_VERSION_FORM(major, minor) ((major << MM_VERSION_MAJOR_SHIFT) | (minor))
|
|
#define MM_VERSION_COMPILED MM_VERSION_FORM(MM_VERSION_MAJOR, MM_VERSION_MINOR)
|
|
|
|
/*
|
|
* SMC IDs defined in [1] for accessing MM services from the Non-secure world.
|
|
* These FIDs occupy the range 0x40 - 0x5f.
|
|
* [1] DEN0060A_ARM_MM_Interface_Specification.pdf
|
|
*/
|
|
#define MM_VERSION_AARCH32 U(0x84000040)
|
|
|
|
#define MM_COMMUNICATE_AARCH64 U(0xC4000041)
|
|
#define MM_COMMUNICATE_AARCH32 U(0x84000041)
|
|
|
|
#endif /* __MM_SVC_H__ */
|