mirror of https://github.com/acidanthera/audk.git
MdePkg MmCommunication.h: Follow PI spec to update EFI_MM_COMMUNICATE
Follow PI spec (>= 1.5) to add new return status code description and make CommSize OPTIONAL. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
fdd8463d7b
commit
c53190e910
|
@ -57,16 +57,26 @@ typedef struct _EFI_MM_COMMUNICATION_PROTOCOL EFI_MM_COMMUNICATION_PROTOCOL;
|
||||||
@param[in] CommBuffer A pointer to the buffer to convey into MMRAM.
|
@param[in] CommBuffer A pointer to the buffer to convey into MMRAM.
|
||||||
@param[in] CommSize The size of the data buffer being passed in. On exit, the size of data
|
@param[in] CommSize The size of the data buffer being passed in. On exit, the size of data
|
||||||
being returned. Zero if the handler does not wish to reply with any data.
|
being returned. Zero if the handler does not wish to reply with any data.
|
||||||
|
This parameter is optional and may be NULL.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The message was successfully posted.
|
@retval EFI_SUCCESS The message was successfully posted.
|
||||||
@retval EFI_INVALID_PARAMETER The CommBuffer was NULL.
|
@retval EFI_INVALID_PARAMETER The CommBuffer was NULL.
|
||||||
|
@retval EFI_BAD_BUFFER_SIZE The buffer is too large for the MM implementation.
|
||||||
|
If this error is returned, the MessageLength field
|
||||||
|
in the CommBuffer header or the integer pointed by
|
||||||
|
CommSize, are updated to reflect the maximum payload
|
||||||
|
size the implementation can accommodate.
|
||||||
|
@retval EFI_ACCESS_DENIED The CommunicateBuffer parameter or CommSize parameter,
|
||||||
|
if not omitted, are in address range that cannot be
|
||||||
|
accessed by the MM environment.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_MM_COMMUNICATE)(
|
(EFIAPI *EFI_MM_COMMUNICATE)(
|
||||||
IN CONST EFI_MM_COMMUNICATION_PROTOCOL *This,
|
IN CONST EFI_MM_COMMUNICATION_PROTOCOL *This,
|
||||||
IN OUT VOID *CommBuffer,
|
IN OUT VOID *CommBuffer,
|
||||||
IN OUT UINTN *CommSize
|
IN OUT UINTN *CommSize OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue