/* * This file describes the Realm Services Interface (RSI) Application Binary * Interface (ABI) for SMC calls made from within the Realm to the RMM and * serviced by the RMM.
*/
/* * The major version number of the RSI implementation. This is increased when * the binary format or semantics of the SMC calls change.
*/ #define RSI_ABI_VERSION_MAJOR UL(1)
/* * The minor version number of the RSI implementation. This is increased when * a bug is fixed, or a feature is added without breaking binary compatibility.
*/ #define RSI_ABI_VERSION_MINOR UL(0)
/* * Continue the operation to retrieve an attestation token. * * arg1 == The IPA of token buffer * arg2 == Offset within the granule of the token buffer * arg3 == Size of the granule buffer * ret0 == Status / error * ret1 == Length of token bytes copied to the granule buffer
*/ #define SMC_RSI_ATTESTATION_TOKEN_CONTINUE SMC_RSI_FID(0x195)
#ifndef __ASSEMBLY__
struct realm_config { union { struct { unsignedlong ipa_bits; /* Width of IPA in bits */ unsignedlong hash_algo; /* Hash algorithm */
};
u8 pad[0x200];
}; union {
u8 rpv[64]; /* Realm Personalization Value */
u8 pad2[0xe00];
}; /* * The RMM requires the configuration structure to be aligned to a 4k * boundary, ensure this happens by aligning this structure.
*/
} __aligned(0x1000);
#endif/* __ASSEMBLY__ */
/* * Read configuration for the current Realm. * * arg1 == struct realm_config addr * ret0 == Status / error
*/ #define SMC_RSI_REALM_CONFIG SMC_RSI_FID(0x196)
/* * Request RIPAS of a target IPA range to be changed to a specified value. * * arg1 == Base IPA address of target region * arg2 == Top of the region * arg3 == RIPAS value * arg4 == flags * ret0 == Status / error * ret1 == Top of modified IPA range * ret2 == Whether the Host accepted or rejected the request
*/ #define SMC_RSI_IPA_STATE_SET SMC_RSI_FID(0x197)
/* * Get RIPAS of a target IPA range. * * arg1 == Base IPA of target region * arg2 == End of target IPA region * ret0 == Status / error * ret1 == Top of IPA region which has the reported RIPAS value * ret2 == RIPAS value
*/ #define SMC_RSI_IPA_STATE_GET SMC_RSI_FID(0x198)
/* * Make a Host call. * * arg1 == IPA of host call structure * ret0 == Status / error
*/ #define SMC_RSI_HOST_CALL SMC_RSI_FID(0x199)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.