]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.h
ArmPkg/ArmScmiDxe: Dynamically allocate buffer for protocol ids
[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_VENDOR_LEN SCMI_MAX_STR_LEN
23
24 /** Pointer to protocol initialization function.
25
26 @param[in] Handle A pointer to the EFI_HANDLE on which the protocol
27 interface is to be installed.
28
29 @retval EFI_SUCCESS Protocol interface installed successfully.
30 **/
31 typedef
32 EFI_STATUS
33 (EFIAPI *SCMI_PROTOCOL_INIT_FXN)(
34 IN EFI_HANDLE *Handle
35 );
36
37 typedef struct {
38 SCMI_PROTOCOL_ID Id; // Protocol Id.
39 SCMI_PROTOCOL_INIT_FXN InitFn; // Protocol init function.
40 } SCMI_PROTOCOL_ENTRY;
41
42 #endif /* SCMI_DXE_H_ */