Hi Jens,

> On 17 Jul 2023, at 09:20, Jens Wiklander <[email protected]> wrote:
> 
> According to DEN0077A version 1.1 REL0, section 18.3, Table 18.{21, 25,
> 26, 27, 28}, add defines for framework direct request/response messages.
> 
> Signed-off-by: Jens Wiklander <[email protected]>
> Reviewed-by: Henry Wang <[email protected]>

Reviewed-by: Bertrand Marquis <[email protected]>

Cheers
Bertrand

> ---
> xen/arch/arm/tee/ffa.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
> 
> diff --git a/xen/arch/arm/tee/ffa.c b/xen/arch/arm/tee/ffa.c
> index c1dead73d1f2..56a0a10c1e99 100644
> --- a/xen/arch/arm/tee/ffa.c
> +++ b/xen/arch/arm/tee/ffa.c
> @@ -57,6 +57,19 @@
> #define FFA_MY_VERSION          MAKE_FFA_VERSION(FFA_MY_VERSION_MAJOR, \
>                                                  FFA_MY_VERSION_MINOR)
> 
> +/*
> + * Flags and field values used for the MSG_SEND_DIRECT_REQ/RESP:
> + * BIT(31): Framework or partition message
> + * BIT(7-0): Message type for frameworks messages
> + */
> +#define FFA_MSG_FLAG_FRAMEWORK          BIT(31, U)
> +#define FFA_MSG_TYPE_MASK               0xFFU;
> +#define FFA_MSG_PSCI                    0x0U
> +#define FFA_MSG_SEND_VM_CREATED         0x4U
> +#define FFA_MSG_RESP_VM_CREATED         0x5U
> +#define FFA_MSG_SEND_VM_DESTROYED       0x6U
> +#define FFA_MSG_RESP_VM_DESTROYED       0x7U
> +
> /*
>  * Flags to determine partition properties in FFA_PARTITION_INFO_GET return
>  * message:
> -- 
> 2.34.1
> 


Reply via email to