]>
Commit | Line | Data |
---|---|---|
4f2494cf GP |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r | |
4 | \r | |
4059386c | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
4f2494cf GP |
6 | \r |
7 | System Control and Management Interface V1.0\r | |
8 | http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/\r | |
9 | DEN0056A_System_Control_and_Management_Interface.pdf\r | |
10 | **/\r | |
11 | \r | |
12 | #ifndef ARM_SCMI_BASE_PROTOCOL_PRIVATE_H_\r | |
13 | #define ARM_SCMI_BASE_PROTOCOL_PRIVATE_H_\r | |
14 | \r | |
15 | // Return values of BASE_DISCOVER_LIST_PROTOCOLS command.\r | |
16 | typedef struct {\r | |
17 | UINT32 NumProtocols;\r | |
18 | \r | |
19 | // Array of four protocols in each element\r | |
20 | // Total elements = 1 + (NumProtocols-1)/4\r | |
21 | \r | |
22 | // NOTE: Since EDK2 does not allow flexible array member [] we declare\r | |
23 | // here array of 1 element length. However below is used as a variable\r | |
24 | // length array.\r | |
25 | UINT8 Protocols[1];\r | |
26 | } BASE_DISCOVER_LIST;\r | |
27 | \r | |
28 | /** Initialize Base protocol and install protocol on a given handle.\r | |
29 | \r | |
30 | @param[in] Handle Handle to install Base protocol.\r | |
31 | \r | |
32 | @retval EFI_SUCCESS Base protocol interface installed\r | |
33 | successfully.\r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | ScmiBaseProtocolInit (\r | |
37 | IN OUT EFI_HANDLE* Handle\r | |
38 | );\r | |
39 | \r | |
40 | #endif /* ARM_SCMI_BASE_PROTOCOL_PRIVATE_H_ */\r |