Enum optee_teec::ParamType
source · pub enum ParamType {
None = 0,
ValueInput = 1,
ValueOutput = 2,
ValueInout = 3,
MemrefTempInput = 5,
MemrefTempOutput = 6,
MemrefTempInout = 7,
MemrefWhole = 12,
MemrefPartialInput = 13,
MemrefPartialOutput = 14,
MemrefPartialInout = 15,
}
Expand description
These are used to indicate the type of Parameter encoded inside the operation structure.
Variants§
None = 0
The Parameter is not used.
ValueInput = 1
The Parameter is a TEEC_Value tagged as input.
ValueOutput = 2
The Parameter is a TEEC_Value tagged as output.
ValueInout = 3
The Parameter is a TEEC_Value tagged as both as input and output, i.e., for which both the behaviors of ValueInput and ValueOutput apply.
MemrefTempInput = 5
The Parameter is a TEEC_TempMemoryReference describing a region of memory which needs to be temporarily registered for the duration of the Operation and is tagged as input.
MemrefTempOutput = 6
Same as MemrefTempInput, but the Memory Reference is tagged as output. The Implementation may update the size field to reflect the required output size in some use cases.
MemrefTempInout = 7
A Temporary Memory Reference tagged as both input and output, i.e., for which both the behaviors of MemrefTempInput and MemrefTempOutput apply.
MemrefWhole = 12
The Parameter is a Registered Memory Reference that refers to the entirety of its parent Shared Memory block. The parameter structure is a TEEC_MemoryReference. In this structure, the Implementation MUST read only the parent field and MAY update the size field when the operation completes.
MemrefPartialInput = 13
A Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as input.
MemrefPartialOutput = 14
A Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as output.
MemrefPartialInout = 15
The Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as both input and output, i.e., for which both the behaviors of MemrefPartialInput and MemrefPartialOutput apply.