ArmPkg[all]
0.1
|
Data Structures | |
struct | _SCMI_BASE_PROTOCOL |
Macros | |
#define | BASE_PROTOCOL_VERSION_V1 0x10000 |
#define | BASE_PROTOCOL_VERSION_V2 0x20000 |
#define | NUM_PROTOCOL_MASK 0xFFU |
#define | NUM_AGENT_MASK 0xFFU |
#define | NUM_AGENT_SHIFT 0x8 |
#define | SCMI_TOTAL_PROTOCOLS(Attr) (Attr & NUM_PROTOCOL_MASK) |
#define | SCMI_TOTAL_AGENTS(Attr) ((Attr >> NUM_AGENT_SHIFT) & NUM_AGENT_MASK) |
#define | ARM_SCMI_BASE_PROTOCOL_GUID |
Typedefs | |
typedef struct _SCMI_BASE_PROTOCOL | SCMI_BASE_PROTOCOL |
typedef OUT UINT32 * | Version |
typedef OUT UINT32 * | TotalProtocols |
typedef OUT UINT8 | VendorIdentifier [SCMI_MAX_STR_LEN] |
typedef OUT UINT32 * | ImplementationVersion |
typedef IN OUT UINT32 * | ProtocolListSize |
typedef IN OUT UINT32 OUT UINT8 * | ProtocolList |
Enumerations | |
enum | SCMI_MESSAGE_ID_BASE { ScmiMessageIdBaseDiscoverVendor = 0x3, ScmiMessageIdBaseDiscoverSubVendor = 0x4, ScmiMessageIdBaseDiscoverImplementationVersion = 0x5, ScmiMessageIdBaseDiscoverListProtocols = 0x6 } |
Functions | |
typedef | EFI_STATUS (EFIAPI *SCMI_BASE_GET_VERSION)(IN SCMI_BASE_PROTOCOL *This |
Variables | |
EFI_GUID | gArmScmiBaseProtocolGuid |
Copyright (c) 2017-2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
#define ARM_SCMI_BASE_PROTOCOL_GUID |
#define BASE_PROTOCOL_VERSION_V1 0x10000 |
#define BASE_PROTOCOL_VERSION_V2 0x20000 |
#define NUM_AGENT_MASK 0xFFU |
#define NUM_AGENT_SHIFT 0x8 |
#define NUM_PROTOCOL_MASK 0xFFU |
#define SCMI_TOTAL_AGENTS | ( | Attr | ) | ((Attr >> NUM_AGENT_SHIFT) & NUM_AGENT_MASK) |
#define SCMI_TOTAL_PROTOCOLS | ( | Attr | ) | (Attr & NUM_PROTOCOL_MASK) |
Returns total number of protocols that are implemented (excluding the Base protocol)
typedef OUT UINT32* ImplementationVersion |
typedef IN OUT UINT32 OUT UINT8* ProtocolList |
typedef IN OUT UINT32* ProtocolListSize |
typedef struct _SCMI_BASE_PROTOCOL SCMI_BASE_PROTOCOL |
typedef OUT UINT32* TotalProtocols |
typedef OUT UINT8 VendorIdentifier |
typedef OUT UINT32* Version |
enum SCMI_MESSAGE_ID_BASE |
typedef EFI_STATUS | ( | EFIAPI * | SCMI_BASE_DISCOVER_LIST_PROTOCOLS | ) |
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. |
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. |
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. |
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 vendor name. |
EFI_SUCCESS | VendorIdentifier is returned. |
EFI_DEVICE_ERROR | SCP returns a SCMI error. |
!(EFI_SUCCESS) | Other errors. |
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. |
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. |
EFI_GUID gArmScmiBaseProtocolGuid |