TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmMtlNullLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS MtlWaitUntilChannelFree (IN MTL_CHANNEL *Channel, IN UINTN TimeOutInMicroSeconds)
 
UINT32 * MtlGetChannelPayload (IN MTL_CHANNEL *Channel)
 
EFI_STATUS MtlGetChannel (IN MTL_CHANNEL_TYPE ChannelType, OUT MTL_CHANNEL **Channel)
 
EFI_STATUS MtlSendMessage (IN MTL_CHANNEL *Channel, IN UINT32 MessageHeader, OUT UINT32 PayloadLength)
 
EFI_STATUS MtlReceiveMessage (IN MTL_CHANNEL *Channel, OUT UINT32 *MessageHeader, OUT UINT32 *PayloadLength)
 

Detailed Description

Copyright (c) 2017-2018, Arm Limited. All rights reserved.

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

System Control and Management Interface V1.0 http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/ DEN0056A_System_Control_and_Management_Interface.pdf

Definition in file ArmMtlNullLib.c.

Function Documentation

◆ MtlGetChannel()

EFI_STATUS MtlGetChannel ( IN MTL_CHANNEL_TYPE  ChannelType,
OUT MTL_CHANNEL **  Channel 
)

Return pointer to a channel for the requested channel type.

Parameters
[in]ChannelTypeChannelType, Low or High priority channel. MTL_CHANNEL_TYPE_LOW or MTL_CHANNEL_TYPE_HIGH
[out]ChannelHolds pointer to the channel.
Return values
EFI_UNSUPPORTEDRequested channel type not supported or interface not implemented.

Definition at line 58 of file ArmMtlNullLib.c.

◆ MtlGetChannelPayload()

UINT32 * MtlGetChannelPayload ( IN MTL_CHANNEL Channel)

Return the address of the message payload.

Parameters
[in]ChannelPointer to a channel.
Return values
UINT32*Pointer to the payload.

Definition at line 38 of file ArmMtlNullLib.c.

◆ MtlReceiveMessage()

EFI_STATUS MtlReceiveMessage ( IN MTL_CHANNEL Channel,
OUT UINT32 *  MessageHeader,
OUT UINT32 *  PayloadLength 
)

Wait for a response on a channel.

If channel is free after sending message, it implies SCP responded with a response on the channel.

Parameters
[in]ChannelPointer to a channel.
Return values
EFI_UNSUPPORTEDInterface not implemented.

Definition at line 95 of file ArmMtlNullLib.c.

◆ MtlSendMessage()

EFI_STATUS MtlSendMessage ( IN MTL_CHANNEL Channel,
IN UINT32  MessageHeader,
OUT UINT32  PayloadLength 
)

Mark the channel busy and ring the doorbell.

Parameters
[in]ChannelPointer to a channel.
[in]MessageHeaderMessage header.
[out]PayloadLengthMessage length.
Return values
EFI_UNSUPPORTEDInterface not implemented.

Definition at line 76 of file ArmMtlNullLib.c.

◆ MtlWaitUntilChannelFree()

EFI_STATUS MtlWaitUntilChannelFree ( IN MTL_CHANNEL Channel,
IN UINTN  TimeOutInMicroSeconds 
)

Wait until channel is free.

Parameters
[in]ChannelPointer to a channel.
[in]TimeOutInMicroSecondsTimeout in micro seconds.
Return values
EFI_UNSUPPORTEDInterface not implemented.

Definition at line 23 of file ArmMtlNullLib.c.