]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.h
ArmPkg/ArmScmiDxe: Fix ASSERT error in SCMI DXE
[mirror_edk2.git] / ArmPkg / Drivers / ArmScmiDxe / ScmiDxe.h
1 /** @file
2
3 Copyright (c) 2017-2018, Arm Limited. All rights reserved.
4
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 System Control and Management Interface V1.0
14 http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/
15 DEN0056A_System_Control_and_Management_Interface.pdf
16 **/
17 #ifndef SCMI_DXE_H_
18 #define SCMI_DXE_H_
19
20 #include "ScmiPrivate.h"
21
22 #define MAX_PROTOCOLS 6
23 #define MAX_VENDOR_LEN SCMI_MAX_STR_LEN
24
25 /** Pointer to protocol initialization function.
26
27 @param[in] Handle A pointer to the EFI_HANDLE on which the protocol
28 interface is to be installed.
29
30 @retval EFI_SUCCESS Protocol interface installed successfully.
31 **/
32 typedef
33 EFI_STATUS
34 (EFIAPI *SCMI_PROTOCOL_INIT_FXN)(
35 IN EFI_HANDLE *Handle
36 );
37
38 typedef struct {
39 SCMI_PROTOCOL_ID Id; // Protocol Id.
40 SCMI_PROTOCOL_INIT_FXN InitFn; // Protocol init function.
41 } SCMI_PROTOCOL_ENTRY;
42
43 #endif /* SCMI_DXE_H_ */