]>
Commit | Line | Data |
---|---|---|
6b085d3c SM |
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 | @par Glossary:\r | |
14 | - Cm or CM - Configuration Manager\r | |
15 | - Obj or OBJ - Object\r | |
16 | **/\r | |
17 | \r | |
18 | #ifndef CONFIGURATION_MANAGER_PROTOCOL_H_\r | |
19 | #define CONFIGURATION_MANAGER_PROTOCOL_H_\r | |
20 | \r | |
21 | #include <ConfigurationManagerObject.h>\r | |
22 | \r | |
23 | /** This macro defines the Configuration Manager Protocol GUID.\r | |
24 | \r | |
25 | GUID: {D85A4835-5A82-4894-AC02-706F43D5978E}\r | |
26 | */\r | |
27 | #define EDKII_CONFIGURATION_MANAGER_PROTOCOL_GUID \\r | |
28 | { 0xd85a4835, 0x5a82, 0x4894, \\r | |
29 | { 0xac, 0x2, 0x70, 0x6f, 0x43, 0xd5, 0x97, 0x8e } \\r | |
30 | };\r | |
31 | \r | |
32 | /** This macro defines the Configuration Manager Protocol Revision.\r | |
33 | */\r | |
34 | #define EDKII_CONFIGURATION_MANAGER_PROTOCOL_REVISION CREATE_REVISION (1, 0)\r | |
35 | \r | |
36 | #pragma pack(1)\r | |
37 | \r | |
38 | /**\r | |
39 | Forward declarations:\r | |
40 | */\r | |
41 | typedef struct ConfigurationManagerProtocol EDKII_CONFIGURATION_MANAGER_PROTOCOL;\r | |
42 | typedef struct PlatformRepositoryInfo EDKII_PLATFORM_REPOSITORY_INFO;\r | |
43 | \r | |
44 | /** The GetObject function defines the interface implemented by the\r | |
45 | Configuration Manager Protocol for returning the Configuration\r | |
46 | Manager Objects.\r | |
47 | \r | |
48 | @param [in] This Pointer to the Configuration Manager Protocol.\r | |
49 | @param [in] CmObjectId The Configuration Manager Object ID.\r | |
50 | @param [in] Token An optional token identifying the object. If\r | |
51 | unused this must be CM_NULL_TOKEN.\r | |
52 | @param [out] CmObject Pointer to the Configuration Manager Object\r | |
53 | descriptor describing the requested Object.\r | |
54 | \r | |
55 | @retval EFI_SUCCESS Success.\r | |
56 | @retval EFI_INVALID_PARAMETER A parameter is invalid.\r | |
57 | @retval EFI_NOT_FOUND The required object information is not found.\r | |
58 | @retval EFI_BAD_BUFFER_SIZE The size returned by the Configuration Manager\r | |
59 | is less than the Object size for the requested\r | |
60 | object.\r | |
61 | **/\r | |
62 | typedef\r | |
63 | EFI_STATUS\r | |
64 | (EFIAPI * EDKII_CONFIGURATION_MANAGER_GET_OBJECT) (\r | |
65 | IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This,\r | |
66 | IN CONST CM_OBJECT_ID CmObjectId,\r | |
67 | IN CONST CM_OBJECT_TOKEN Token OPTIONAL,\r | |
68 | IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject\r | |
69 | );\r | |
70 | \r | |
71 | /** The SetObject function defines the interface implemented by the\r | |
72 | Configuration Manager Protocol for updating the Configuration\r | |
73 | Manager Objects.\r | |
74 | \r | |
75 | @param [in] This Pointer to the Configuration Manager Protocol.\r | |
76 | @param [in] CmObjectId The Configuration Manager Object ID.\r | |
77 | @param [in] Token An optional token identifying the object. If\r | |
78 | unused this must be CM_NULL_TOKEN.\r | |
79 | @param [out] CmObject Pointer to the Configuration Manager Object\r | |
80 | descriptor describing the Object.\r | |
81 | \r | |
82 | @retval EFI_SUCCESS The operation completed successfully.\r | |
83 | @retval EFI_INVALID_PARAMETER A parameter is invalid.\r | |
84 | @retval EFI_NOT_FOUND The required object information is not found.\r | |
85 | @retval EFI_BAD_BUFFER_SIZE The size returned by the Configuration Manager\r | |
86 | is less than the Object size for the requested\r | |
87 | object.\r | |
88 | @retval EFI_UNSUPPORTED This operation is not supported.\r | |
89 | **/\r | |
90 | typedef\r | |
91 | EFI_STATUS\r | |
92 | (EFIAPI * EDKII_CONFIGURATION_MANAGER_SET_OBJECT) (\r | |
93 | IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This,\r | |
94 | IN CONST CM_OBJECT_ID CmObjectId,\r | |
95 | IN CONST CM_OBJECT_TOKEN Token OPTIONAL,\r | |
96 | IN CM_OBJ_DESCRIPTOR * CONST CmObject\r | |
97 | );\r | |
98 | \r | |
99 | /** The EDKII_CONFIGURATION_MANAGER_PROTOCOL structure describes the\r | |
100 | Configuration Manager Protocol interface.\r | |
101 | */\r | |
102 | typedef struct ConfigurationManagerProtocol {\r | |
103 | /// The Configuration Manager Protocol revision.\r | |
104 | UINT32 Revision;\r | |
105 | \r | |
106 | /** The interface used to request information about\r | |
107 | the Configuration Manager Objects.\r | |
108 | */\r | |
109 | EDKII_CONFIGURATION_MANAGER_GET_OBJECT GetObject;\r | |
110 | \r | |
111 | /** The interface used to update the information stored\r | |
112 | in the Configuration Manager repository.\r | |
113 | */\r | |
114 | EDKII_CONFIGURATION_MANAGER_SET_OBJECT SetObject;\r | |
115 | \r | |
116 | /** Pointer to an implementation defined abstract repository\r | |
117 | provisioned by the Configuration Manager.\r | |
118 | */\r | |
119 | EDKII_PLATFORM_REPOSITORY_INFO * PlatRepoInfo;\r | |
120 | } EDKII_CONFIGURATION_MANAGER_PROTOCOL;\r | |
121 | \r | |
122 | /** The Configuration Manager Protocol GUID.\r | |
123 | */\r | |
124 | extern EFI_GUID gEdkiiConfigurationManagerProtocolGuid;\r | |
125 | \r | |
126 | #pragma pack()\r | |
127 | \r | |
128 | #endif // CONFIGURATION_MANAGER_PROTOCOL_H_\r |