TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmMmSvc.h File Reference

Go to the source code of this file.

Macros

#define ARM_SVC_ID_SPM_VERSION_AARCH32   0x84000060
 
#define ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH32   0x84000061
 
#define ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH32   0x84000064
 
#define ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH32   0x84000065
 
#define ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH64   0xC4000061
 
#define ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH64   0xC4000064
 
#define ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH64   0xC4000065
 
#define SET_MEM_ATTR_DATA_PERM_MASK   0x3
 
#define SET_MEM_ATTR_DATA_PERM_SHIFT   0
 
#define SET_MEM_ATTR_DATA_PERM_NO_ACCESS   0
 
#define SET_MEM_ATTR_DATA_PERM_RW   1
 
#define SET_MEM_ATTR_DATA_PERM_RO   3
 
#define SET_MEM_ATTR_CODE_PERM_MASK   0x1
 
#define SET_MEM_ATTR_CODE_PERM_SHIFT   2
 
#define SET_MEM_ATTR_CODE_PERM_X   0
 
#define SET_MEM_ATTR_CODE_PERM_XN   1
 
#define SET_MEM_ATTR_MAKE_PERM_REQUEST(d_perm, c_perm)
 
#define ARM_SVC_SPM_RET_SUCCESS   0
 
#define ARM_SVC_SPM_RET_NOT_SUPPORTED   -1
 
#define ARM_SVC_SPM_RET_INVALID_PARAMS   -2
 
#define ARM_SVC_SPM_RET_DENIED   -3
 
#define ARM_SVC_SPM_RET_NO_MEMORY   -5
 
#define SPM_MAJOR_VERSION   0
 
#define SPM_MINOR_VERSION   1
 

Detailed Description

Copyright (c) 2012-2017, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ArmMmSvc.h.

Macro Definition Documentation

◆ ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH32

#define ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH32   0x84000061

Definition at line 18 of file ArmMmSvc.h.

◆ ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH64

#define ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH64   0xC4000061

Definition at line 21 of file ArmMmSvc.h.

◆ ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH32

#define ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH32   0x84000064

Definition at line 19 of file ArmMmSvc.h.

◆ ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH64

#define ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH64   0xC4000064

Definition at line 22 of file ArmMmSvc.h.

◆ ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH32

#define ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH32   0x84000065

Definition at line 20 of file ArmMmSvc.h.

◆ ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH64

#define ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH64   0xC4000065

Definition at line 23 of file ArmMmSvc.h.

◆ ARM_SVC_ID_SPM_VERSION_AARCH32

#define ARM_SVC_ID_SPM_VERSION_AARCH32   0x84000060

Definition at line 17 of file ArmMmSvc.h.

◆ ARM_SVC_SPM_RET_DENIED

#define ARM_SVC_SPM_RET_DENIED   -3

Definition at line 56 of file ArmMmSvc.h.

◆ ARM_SVC_SPM_RET_INVALID_PARAMS

#define ARM_SVC_SPM_RET_INVALID_PARAMS   -2

Definition at line 55 of file ArmMmSvc.h.

◆ ARM_SVC_SPM_RET_NO_MEMORY

#define ARM_SVC_SPM_RET_NO_MEMORY   -5

Definition at line 57 of file ArmMmSvc.h.

◆ ARM_SVC_SPM_RET_NOT_SUPPORTED

#define ARM_SVC_SPM_RET_NOT_SUPPORTED   -1

Definition at line 54 of file ArmMmSvc.h.

◆ ARM_SVC_SPM_RET_SUCCESS

#define ARM_SVC_SPM_RET_SUCCESS   0

Definition at line 53 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_CODE_PERM_MASK

#define SET_MEM_ATTR_CODE_PERM_MASK   0x1

Definition at line 43 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_CODE_PERM_SHIFT

#define SET_MEM_ATTR_CODE_PERM_SHIFT   2

Definition at line 44 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_CODE_PERM_X

#define SET_MEM_ATTR_CODE_PERM_X   0

Definition at line 45 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_CODE_PERM_XN

#define SET_MEM_ATTR_CODE_PERM_XN   1

Definition at line 46 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_DATA_PERM_MASK

#define SET_MEM_ATTR_DATA_PERM_MASK   0x3

Definition at line 37 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_DATA_PERM_NO_ACCESS

#define SET_MEM_ATTR_DATA_PERM_NO_ACCESS   0

Definition at line 39 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_DATA_PERM_RO

#define SET_MEM_ATTR_DATA_PERM_RO   3

Definition at line 41 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_DATA_PERM_RW

#define SET_MEM_ATTR_DATA_PERM_RW   1

Definition at line 40 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_DATA_PERM_SHIFT

#define SET_MEM_ATTR_DATA_PERM_SHIFT   0

Definition at line 38 of file ArmMmSvc.h.

◆ SET_MEM_ATTR_MAKE_PERM_REQUEST

#define SET_MEM_ATTR_MAKE_PERM_REQUEST (   d_perm,
  c_perm 
)
Value:
((((c_perm) & SET_MEM_ATTR_CODE_PERM_MASK) << SET_MEM_ATTR_CODE_PERM_SHIFT) | \
(( (d_perm) & SET_MEM_ATTR_DATA_PERM_MASK) << SET_MEM_ATTR_DATA_PERM_SHIFT))

Definition at line 48 of file ArmMmSvc.h.

◆ SPM_MAJOR_VERSION

#define SPM_MAJOR_VERSION   0

Definition at line 59 of file ArmMmSvc.h.

◆ SPM_MINOR_VERSION

#define SPM_MINOR_VERSION   1

Definition at line 60 of file ArmMmSvc.h.