TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/ArmScmiBaseProtocol.h>
#include "ArmScmiBaseProtocolPrivate.h"
#include "ScmiPrivate.h"
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS | BaseGetVersion (IN SCMI_BASE_PROTOCOL *This, OUT UINT32 *Version) |
STATIC EFI_STATUS | BaseGetTotalProtocols (IN SCMI_BASE_PROTOCOL *This, OUT UINT32 *TotalProtocols) |
STATIC EFI_STATUS | BaseDiscoverVendorDetails (IN SCMI_MESSAGE_ID_BASE MessageId, OUT UINT8 VendorIdentifier[SCMI_MAX_STR_LEN]) |
STATIC EFI_STATUS | BaseDiscoverVendor (IN SCMI_BASE_PROTOCOL *This, OUT UINT8 VendorIdentifier[SCMI_MAX_STR_LEN]) |
EFI_STATUS | BaseDiscoverSubVendor (IN SCMI_BASE_PROTOCOL *This, OUT UINT8 VendorIdentifier[SCMI_MAX_STR_LEN]) |
STATIC EFI_STATUS | BaseDiscoverImplVersion (IN SCMI_BASE_PROTOCOL *This, OUT UINT32 *ImplementationVersion) |
STATIC EFI_STATUS | BaseDiscoverListProtocols (IN SCMI_BASE_PROTOCOL *This, IN OUT UINT32 *ProtocolListSize, OUT UINT8 *ProtocolList) |
EFI_STATUS | ScmiBaseProtocolInit (IN OUT EFI_HANDLE *Handle) |
Variables | |
STATIC CONST SCMI_BASE_PROTOCOL | BaseProtocol |
Copyright (c) 2017-2021, 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 ScmiBaseProtocol.c.
STATIC EFI_STATUS BaseDiscoverImplVersion | ( | IN SCMI_BASE_PROTOCOL * | This, |
OUT UINT32 * | ImplementationVersion | ||
) |
Return implementation version.
[in] | This | A Pointer to SCMI_BASE_PROTOCOL Instance. |
[out] | ImplementationVersion | Vendor specific implementation version. |
EFI_SUCCESS | Implementation version is returned. |
EFI_DEVICE_ERROR | SCP returns a SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 176 of file ScmiBaseProtocol.c.
STATIC EFI_STATUS BaseDiscoverListProtocols | ( | IN SCMI_BASE_PROTOCOL * | This, |
IN OUT UINT32 * | ProtocolListSize, | ||
OUT UINT8 * | ProtocolList | ||
) |
Return list of protocols.
[in] | This | A Pointer to SCMI_BASE_PROTOCOL Instance. |
[out] | ProtocolListSize | Size of the ProtocolList. |
[out] | ProtocolList | Protocol list. |
EFI_SUCCESS | List of protocols is returned. |
EFI_BUFFER_TOO_SMALL | ProtocolListSize is too small for the result. It has been updated to the size needed. |
EFI_DEVICE_ERROR | SCP returns a SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 221 of file ScmiBaseProtocol.c.
EFI_STATUS BaseDiscoverSubVendor | ( | IN SCMI_BASE_PROTOCOL * | This, |
OUT UINT8 | VendorIdentifier[SCMI_MAX_STR_LEN] | ||
) |
Return sub vendor name.
[in] | This | A Pointer to SCMI_BASE_PROTOCOL Instance. |
[out] | VendorIdentifier | Null terminated ASCII string of up to 16 bytes with a sub vendor name. |
EFI_SUCCESS | VendorIdentifier is returned. |
EFI_DEVICE_ERROR | SCP returns a SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 153 of file ScmiBaseProtocol.c.
STATIC EFI_STATUS BaseDiscoverVendor | ( | IN SCMI_BASE_PROTOCOL * | This, |
OUT UINT8 | VendorIdentifier[SCMI_MAX_STR_LEN] | ||
) |
Return vendor name.
[in] | This | A Pointer to SCMI_BASE_PROTOCOL Instance. |
[out] | VendorIdentifier | Null terminated ASCII string of up to 16 bytes with a vendor name. |
EFI_SUCCESS | VendorIdentifier is returned. |
EFI_DEVICE_ERROR | SCP returns a SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 130 of file ScmiBaseProtocol.c.
STATIC EFI_STATUS BaseDiscoverVendorDetails | ( | IN SCMI_MESSAGE_ID_BASE | MessageId, |
OUT UINT8 | VendorIdentifier[SCMI_MAX_STR_LEN] | ||
) |
Common function which returns vendor details.
[in] | MessageId | ScmiMessageIdBaseDiscoverVendor OR ScmiMessageIdBaseDiscoverSubVendor |
[out] | VendorIdentifier | ASCII name of the vendor/subvendor. |
EFI_SUCCESS | VendorIdentifier is returned. |
EFI_DEVICE_ERROR | SCP returns an SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 84 of file ScmiBaseProtocol.c.
STATIC EFI_STATUS BaseGetTotalProtocols | ( | IN SCMI_BASE_PROTOCOL * | This, |
OUT UINT32 * | TotalProtocols | ||
) |
Return total number of SCMI protocols supported by the SCP firmware.
[in] | This | A Pointer to SCMI_BASE_PROTOCOL Instance. |
[out] | TotalProtocols | Total number of SCMI protocols supported. |
EFI_SUCCESS | Total number of protocols supported are returned. |
EFI_DEVICE_ERROR | SCP returns a SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 52 of file ScmiBaseProtocol.c.
STATIC EFI_STATUS BaseGetVersion | ( | IN SCMI_BASE_PROTOCOL * | This, |
OUT UINT32 * | Version | ||
) |
Return version of the Base protocol supported by SCP firmware.
[in] | This | A Pointer to SCMI_BASE_PROTOCOL Instance. |
[out] | Version | Version of the supported SCMI Base protocol. |
EFI_SUCCESS | The version of the protocol is returned. |
EFI_DEVICE_ERROR | SCP returns an SCMI error. |
!(EFI_SUCCESS) | Other errors. |
Definition at line 32 of file ScmiBaseProtocol.c.
EFI_STATUS ScmiBaseProtocolInit | ( | IN OUT EFI_HANDLE * | Handle | ) |
Initialize Base protocol and install protocol on a given handle.
[in] | Handle | Handle to install Base protocol. |
EFI_SUCCESS | Base protocol interface installed successfully. |
Definition at line 301 of file ScmiBaseProtocol.c.
STATIC CONST SCMI_BASE_PROTOCOL BaseProtocol |
Definition at line 284 of file ScmiBaseProtocol.c.