]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/ArmScmiDxe/ArmScmiBaseProtocolPrivate.h
MdeModulePkg/FaultTolerantWriteDxe: implement standalone MM version
[mirror_edk2.git] / ArmPkg / Drivers / ArmScmiDxe / ArmScmiBaseProtocolPrivate.h
CommitLineData
4f2494cf
GP
1/** @file\r
2\r
3 Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r
4\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 System Control and Management Interface V1.0\r
14 http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/\r
15 DEN0056A_System_Control_and_Management_Interface.pdf\r
16**/\r
17\r
18#ifndef ARM_SCMI_BASE_PROTOCOL_PRIVATE_H_\r
19#define ARM_SCMI_BASE_PROTOCOL_PRIVATE_H_\r
20\r
21// Return values of BASE_DISCOVER_LIST_PROTOCOLS command.\r
22typedef struct {\r
23 UINT32 NumProtocols;\r
24\r
25 // Array of four protocols in each element\r
26 // Total elements = 1 + (NumProtocols-1)/4\r
27\r
28 // NOTE: Since EDK2 does not allow flexible array member [] we declare\r
29 // here array of 1 element length. However below is used as a variable\r
30 // length array.\r
31 UINT8 Protocols[1];\r
32} BASE_DISCOVER_LIST;\r
33\r
34/** Initialize Base protocol and install protocol on a given handle.\r
35\r
36 @param[in] Handle Handle to install Base protocol.\r
37\r
38 @retval EFI_SUCCESS Base protocol interface installed\r
39 successfully.\r
40**/\r
41EFI_STATUS\r
42ScmiBaseProtocolInit (\r
43 IN OUT EFI_HANDLE* Handle\r
44 );\r
45\r
46#endif /* ARM_SCMI_BASE_PROTOCOL_PRIVATE_H_ */\r