]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Efi/Protocol/AuthenticationInfo/AuthenticationInfo.h
Update prototype name of Get()/Set() to EFI_AUTHENTICATION_INFO_PROTOCOL_GET/ EFI_AUT...
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Efi / Protocol / AuthenticationInfo / AuthenticationInfo.h
CommitLineData
216cadbb 1/*++\r
2\r
8a18c8c2 3Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>\r
f57387d5 4This program and the accompanying materials\r
216cadbb 5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 PlatformToDriverConfiguration.h\r
15\r
16Abstract:\r
17\r
18 UEFI Authentication Info Protocol.\r
19\r
20Revision History:\r
21\r
22--*/\r
23\r
24#ifndef _EFI_AUTHENTICATION_INFO_H_\r
25#define _EFI_AUTHENTICATION_INFO_H_\r
26\r
27//\r
28// Global ID for the Authentication Info Protocol\r
29//\r
30#define EFI_AUTHENTICATION_INFO_PROTOCOL_GUID \\r
31 { \\r
32 0x7671d9d0, 0x53db, 0x4173, {0xaa, 0x69, 0x23, 0x27, 0xf2, 0x1f, 0x0b, 0xc7} \\r
33 }\r
34\r
35EFI_FORWARD_DECLARATION (EFI_AUTHENTICATION_INFO_PROTOCOL);\r
36\r
37typedef\r
38EFI_STATUS\r
39(EFIAPI *EFI_AUTHENTICATION_INFO_PROTOCOL_GET) (\r
40 IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,\r
8a18c8c2
SZ
41 IN EFI_HANDLE ControllerHandle,\r
42 OUT VOID **Buffer\r
216cadbb 43 );\r
44/*++\r
45\r
46 Routine Description:\r
47 Retrieves the Authentication information associated with a particular\r
48 controller handle.\r
49\r
50 Arguments:\r
51 This - Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL instance.\r
52 ControllerHandle - Handle to the Controller.\r
53 Buffer - Pointer to the authentication information. This function\r
54 is responsible for allocating the buffer and it is the\r
55 caller's responsibility to free buffer when the caller\r
56 is finished with buffer.\r
57\r
58 Returns:\r
59 EFI_SUCCESS - Successfully retrieved Authentication information\r
60 for the given ControllerHandle.\r
61 EFI_NOT_FOUND - No matching Authentication information found for the\r
62 given ControllerHandle.\r
63 EFI_DEVICE_ERROR - The Authentication information could not be retrieved\r
64 due to a hardware error.\r
65\r
66--*/\r
67\r
68typedef\r
69EFI_STATUS\r
70(EFIAPI *EFI_AUTHENTICATION_INFO_PROTOCOL_SET) (\r
71 IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,\r
8a18c8c2 72 IN EFI_HANDLE ControllerHandle,\r
216cadbb 73 IN VOID *Buffer\r
74 );\r
75/*++\r
76\r
77 Routine Description:\r
78 Set the Authentication information for a given controller handle.\r
79\r
80 Arguments:\r
81 This - Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL instance.\r
82 ControllerHandle - Handle to the Controller.\r
83 Buffer - Pointer to the authentication information.\r
84\r
85 Returns:\r
86 EFI_SUCCESS - Successfully set the Authentication node information\r
87 for the given ControllerHandle.\r
88 EFI_UNSUPPORTED - If the platform policies do not allow setting of the\r
89 Authentication information.\r
90 EFI_DEVICE_ERROR - The authentication node information could not be configured\r
91 due to a hardware error.\r
92 EFI_OUT_OF_RESOURCES - Not enough storage is available to hold the data.\r
93\r
94--*/\r
95\r
96//\r
97// Interface structure for the Authentication Info Protocol\r
98//\r
a1cb16bd 99struct _EFI_AUTHENTICATION_INFO_PROTOCOL {\r
216cadbb 100 EFI_AUTHENTICATION_INFO_PROTOCOL_GET Get;\r
101 EFI_AUTHENTICATION_INFO_PROTOCOL_SET Set;\r
a1cb16bd 102};\r
216cadbb 103\r
104extern EFI_GUID gEfiAuthenticationInfoProtocolGuid;\r
105\r
106#endif\r