]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/UefiLib.h
fix a typo in a comment
[mirror_edk2.git] / MdePkg / Include / Library / UefiLib.h
CommitLineData
878ddf1f 1/** @file\r
2 MDE UEFI library functions and macros\r
3\r
ca21f1a2 4 Copyright (c) 2006 - 2007, Intel Corporation \r
878ddf1f 5 All rights reserved. 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**/\r
14\r
15#ifndef __UEFI_LIB_H__\r
16#define __UEFI_LIB_H__\r
17\r
18//\r
19// Unicode String Table\r
20//\r
21typedef struct {\r
22 CHAR8 *Language;\r
23 CHAR16 *UnicodeString;\r
24} EFI_UNICODE_STRING_TABLE;\r
25\r
26//\r
27// EFI Lock Status\r
28//\r
29typedef enum {\r
30 EfiLockUninitialized = 0,\r
31 EfiLockReleased = 1,\r
32 EfiLockAcquired = 2\r
33} EFI_LOCK_STATE;\r
34\r
35//\r
36// EFI Lock \r
37//\r
38typedef struct {\r
39 EFI_TPL Tpl;\r
40 EFI_TPL OwnerTpl;\r
41 EFI_LOCK_STATE Lock;\r
42} EFI_LOCK;\r
43\r
44\r
45/**\r
46 This function searches the list of configuration tables stored in the EFI System \r
47 Table for a table with a GUID that matches TableGuid. If a match is found, \r
48 then a pointer to the configuration table is returned in Table, and EFI_SUCCESS \r
49 is returned. If a matching GUID is not found, then EFI_NOT_FOUND is returned.\r
50\r
51 @param TableGuid Pointer to table's GUID type..\r
52 @param Table Pointer to the table associated with TableGuid in the EFI System Table.\r
53\r
54 @retval EFI_SUCCESS A configuration table matching TableGuid was found.\r
55 @retval EFI_NOT_FOUND A configuration table matching TableGuid could not be found.\r
56\r
57**/\r
58EFI_STATUS\r
59EFIAPI\r
60EfiGetSystemConfigurationTable ( \r
61 IN EFI_GUID *TableGuid,\r
62 OUT VOID **Table\r
63 );\r
64\r
65/**\r
66 This function causes the notification function to be executed for every protocol \r
67 of type ProtocolGuid instance that exists in the system when this function is \r
68 invoked. In addition, every time a protocol of type ProtocolGuid instance is \r
69 installed or reinstalled, the notification function is also executed.\r
70\r
71 @param ProtocolGuid Supplies GUID of the protocol upon whose installation the event is fired.\r
72 @param NotifyTpl Supplies the task priority level of the event notifications.\r
73 @param NotifyFunction Supplies the function to notify when the event is signaled.\r
74 @param NotifyContext The context parameter to pass to NotifyFunction.\r
75 @param Registration A pointer to a memory location to receive the registration value.\r
76\r
77 @return The notification event that was created. \r
78\r
79**/\r
80EFI_EVENT\r
81EFIAPI\r
82EfiCreateProtocolNotifyEvent(\r
83 IN EFI_GUID *ProtocolGuid,\r
84 IN EFI_TPL NotifyTpl,\r
85 IN EFI_EVENT_NOTIFY NotifyFunction,\r
86 IN VOID *NotifyContext, OPTIONAL\r
13c84604 87 OUT VOID **Registration\r
878ddf1f 88 );\r
89\r
90/**\r
91 This function creates an event using NotifyTpl, NoifyFunction, and NotifyContext.\r
92 This event is signaled with EfiNamedEventSignal(). This provide the ability for \r
93 one or more listeners on the same event named by the GUID specified by Name.\r
94\r
95 @param Name Supplies GUID name of the event.\r
96 @param NotifyTpl Supplies the task priority level of the event notifications.\r
97 @param NotifyFunction Supplies the function to notify when the event is signaled.\r
98 @param NotifyContext The context parameter to pass to NotifyFunction. \r
99 @param Registration A pointer to a memory location to receive the registration value.\r
100\r
101 @retval EFI_SUCCESS A named event was created.\r
102 @retval EFI_OUT_OF_RESOURCES There are not enough resource to create the named event.\r
103\r
104**/\r
105EFI_STATUS\r
106EFIAPI\r
107EfiNamedEventListen (\r
108 IN CONST EFI_GUID *Name,\r
109 IN EFI_TPL NotifyTpl,\r
110 IN EFI_EVENT_NOTIFY NotifyFunction,\r
111 IN CONST VOID *NotifyContext, OPTIONAL\r
13c84604 112 OUT VOID *Registration OPTIONAL\r
878ddf1f 113 );\r
114\r
115/**\r
116 This function signals the named event specified by Name. The named event must \r
117 have been created with EfiNamedEventListen().\r
118\r
119 @param Name Supplies GUID name of the event.\r
120\r
121 @retval EFI_SUCCESS A named event was signaled.\r
122 @retval EFI_OUT_OF_RESOURCES There are not enough resource to signal the named event.\r
123\r
124**/\r
125EFI_STATUS\r
126EFIAPI\r
127EfiNamedEventSignal (\r
128 IN CONST EFI_GUID *Name\r
129 );\r
130\r
131/**\r
132 This function initializes a basic mutual exclusion lock to the released state \r
133 and returns the lock. Each lock provides mutual exclusion access at its task \r
134 priority level. Since there is no preemption or multiprocessor support in EFI,\r
135 acquiring the lock only consists of raising to the locks TPL.\r
136\r
137 @param Lock A pointer to the lock data structure to initialize.\r
138 @param Priority EFI TPL associated with the lock.\r
139\r
140 @return The lock.\r
141\r
142**/\r
143EFI_LOCK *\r
144EFIAPI\r
145EfiInitializeLock (\r
146 IN OUT EFI_LOCK *Lock,\r
147 IN EFI_TPL Priority\r
148 );\r
149\r
150/**\r
151 This macro initializes the contents of a basic mutual exclusion lock to the \r
152 released state. Each lock provides mutual exclusion access at its task \r
153 priority level. Since there is no preemption or multiprocessor support in EFI,\r
154 acquiring the lock only consists of raising to the locks TPL.\r
155\r
156 @param Lock A pointer to the lock data structure to initialize.\r
157 @param Priority The task priority level of the lock.\r
158\r
159 @return The lock.\r
160\r
161**/\r
162#define EFI_INITIALIZE_LOCK_VARIABLE(Priority) \\r
163 {Priority, EFI_TPL_APPLICATION, EfiLockReleased }\r
164\r
165\r
166/**\r
167 \r
168 Macro that calls DebugAssert() if an EFI_LOCK structure is not in the locked state.\r
169\r
170 If the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set, \r
171 then this macro evaluates the EFI_LOCK structure specified by Lock. If Lock \r
172 is not in the locked state, then DebugAssert() is called passing in the source \r
173 filename, source line number, and Lock.\r
174\r
175 If Lock is NULL, then ASSERT().\r
176\r
177 @param LockParameter A pointer to the lock to acquire.\r
178\r
179**/\r
180#define ASSERT_LOCKED(LockParameter) \\r
181 do { \\r
182 if (DebugAssertEnabled ()) { \\r
183 ASSERT (LockParameter != NULL); \\r
184 if ((LockParameter)->Lock != EfiLockAcquired) { \\r
185 _ASSERT (LockParameter not locked); \\r
186 } \\r
187 } \\r
188 } while (FALSE)\r
189\r
190\r
191/**\r
511710d6 192 This function raises the system's current task priority level to the task \r
878ddf1f 193 priority level of the mutual exclusion lock. Then, it places the lock in the \r
194 acquired state.\r
195\r
196 @param Priority The task priority level of the lock.\r
197\r
198**/\r
199VOID\r
200EFIAPI\r
201EfiAcquireLock (\r
202 IN EFI_LOCK *Lock\r
203 );\r
204\r
205/**\r
511710d6 206 This function raises the system's current task priority level to the task \r
878ddf1f 207 priority level of the mutual exclusion lock. Then, it attempts to place the \r
208 lock in the acquired state.\r
209\r
210 @param Lock A pointer to the lock to acquire.\r
211\r
212 @retval EFI_SUCCESS The lock was acquired.\r
213 @retval EFI_ACCESS_DENIED The lock could not be acquired because it is already owned.\r
214\r
215**/\r
216EFI_STATUS\r
217EFIAPI\r
218EfiAcquireLockOrFail (\r
219 IN EFI_LOCK *Lock\r
220 );\r
221\r
222/**\r
223 This function transitions a mutual exclusion lock from the acquired state to \r
511710d6 224 the released state, and restores the system's task priority level to its \r
878ddf1f 225 previous level.\r
226\r
227 @param Lock A pointer to the lock to release.\r
228\r
229**/\r
230VOID\r
231EFIAPI\r
232EfiReleaseLock (\r
233 IN EFI_LOCK *Lock\r
234 );\r
235\r
ca21f1a2 236/**
237 Tests whether a controller is managed by a specific driver.
238
239 This function tests whether a specific driver manages ControllerHandle by\r
240 opening on DriverBindingHandle a protocol specified by ProtocolGuid with\r
241 attribute EFI_OPEN_PROTOCOL_BY_DRIVER. This library function is used to\r
242 implement the Component Name Protocol for EFI Drivers.\r
243 If ProtocolGuid is NULL, then ASSERT().\r
244
245 @param ControllerHandle A handle for a controller to test.
246 @param DriverBindingHandle Specifies the driver binding handle for the
247 driver.
248 @param ProtocolGuid Supplies GUID for the protocol opened by the
249 driver on the controller.
250
251 @retval EFI_SUCCESS ControllerHandle is managed by the specific
252 driver.
253 @retval EFI_UNSUPPORTED ControllerHandle is not managed by the specific
254 driver.
255
256**/\r
257EFI_STATUS\r
258EFIAPI\r
259EfiTestManagedDevice (\r
260 IN CONST EFI_HANDLE ControllerHandle,\r
261 IN CONST EFI_HANDLE DriverBindingHandle,\r
262 IN CONST EFI_GUID *ProtocolGuid\r
263 );\r
264\r
265/**
266 Tests whether a child handle is a children device of the controller.
267
268 This function tests whether ChildHandle is one of the children of
269 ControllerHandle which are consuming a protocol specified by ProtocolGuid
270 with the attribute bit EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER set. This
271 library function is used to implement the Component Name Protocol for EFI
272 Drivers.
273 If ProtocolGuid is NULL, then ASSERT().
274
275 @param ControllerHandle A handle for a (parent) controller to test.
276 @param ChildHandle A child handle to test.
277 @param ConsumsedGuid Supplies GUID for the protocol consumed by
278 children from controller.
279
280 @retval EFI_SUCCESS ChildHandle is a child of the ControllerHandle.
281 @retval EFI_UNSUPPORTED ChildHandle is not a child of the
282 ControllerHandle.
283
284**/\r
285EFI_STATUS\r
286EFIAPI\r
287EfiTestChildHandle (\r
288 IN CONST EFI_HANDLE ControllerHandle,\r
289 IN CONST EFI_HANDLE ChildHandle,\r
290 IN CONST EFI_GUID *ProtocolGuid\r
291 );\r
292\r
878ddf1f 293/**\r
294 This function looks up a Unicode string in UnicodeStringTable. If Language is \r
295 a member of SupportedLanguages and a Unicode string is found in UnicodeStringTable\r
296 that matches the language code specified by Language, then it is returned in \r
297 UnicodeString.\r
298\r
299 @param Language A pointer to the ISO 639-2 language code for the \r
300 Unicode string to look up and return.\r
301 @param SupportedLanguages A pointer to the set of ISO 639-2 language codes \r
302 that the Unicode string table supports. Language \r
303 must be a member of this set.\r
304 @param UnicodeStringTable A pointer to the table of Unicode strings.\r
305 @param UnicodeString A pointer to the Unicode string from UnicodeStringTable\r
306 that matches the language specified by Language.\r
307\r
308 @retval EFI_SUCCESS The Unicode string that matches the language \r
309 specified by Language was found\r
310 in the table of Unicoide strings UnicodeStringTable, \r
311 and it was returned in UnicodeString.\r
312 @retval EFI_INVALID_PARAMETER Language is NULL.\r
313 @retval EFI_INVALID_PARAMETER UnicodeString is NULL.\r
314 @retval EFI_UNSUPPORTED SupportedLanguages is NULL.\r
315 @retval EFI_UNSUPPORTED UnicodeStringTable is NULL.\r
316 @retval EFI_UNSUPPORTED The language specified by Language is not a \r
317 member of SupportedLanguages.\r
318 @retval EFI_UNSUPPORTED The language specified by Language is not \r
319 supported by UnicodeStringTable.\r
320\r
321**/\r
322EFI_STATUS\r
323EFIAPI\r
324LookupUnicodeString (\r
325 IN CONST CHAR8 *Language,\r
326 IN CONST CHAR8 *SupportedLanguages,\r
327 IN CONST EFI_UNICODE_STRING_TABLE *UnicodeStringTable,\r
328 OUT CHAR16 **UnicodeString\r
329 );\r
330\r
331/**\r
332 This function adds a Unicode string to UnicodeStringTable.\r
333 If Language is a member of SupportedLanguages then UnicodeString is added to \r
334 UnicodeStringTable. New buffers are allocated for both Language and \r
335 UnicodeString. The contents of Language and UnicodeString are copied into \r
336 these new buffers. These buffers are automatically freed when \r
337 FreeUnicodeStringTable() is called.\r
338\r
339 @param Language A pointer to the ISO 639-2 language code for the Unicode \r
340 string to add.\r
341 @param SupportedLanguages A pointer to the set of ISO 639-2 language codes\r
342 that the Unicode string table supports.\r
343 Language must be a member of this set.\r
344 @param UnicodeStringTable A pointer to the table of Unicode strings.\r
345 @param UnicodeString A pointer to the Unicode string to add.\r
346\r
347 @retval EFI_SUCCESS The Unicode string that matches the language \r
348 specified by Language was found in the table of \r
349 Unicode strings UnicodeStringTable, and it was \r
350 returned in UnicodeString.\r
351 @retval EFI_INVALID_PARAMETER Language is NULL.\r
352 @retval EFI_INVALID_PARAMETER UnicodeString is NULL.\r
353 @retval EFI_INVALID_PARAMETER UnicodeString is an empty string.\r
354 @retval EFI_UNSUPPORTED SupportedLanguages is NULL.\r
355 @retval EFI_ALREADY_STARTED A Unicode string with language Language is \r
356 already present in UnicodeStringTable.\r
357 @retval EFI_OUT_OF_RESOURCES There is not enough memory to add another \r
358 Unicode string to UnicodeStringTable.\r
359 @retval EFI_UNSUPPORTED The language specified by Language is not a \r
360 member of SupportedLanguages.\r
361\r
362**/\r
363EFI_STATUS\r
364EFIAPI\r
365AddUnicodeString (\r
366 IN CONST CHAR8 *Language,\r
367 IN CONST CHAR8 *SupportedLanguages,\r
368 IN EFI_UNICODE_STRING_TABLE **UnicodeStringTable,\r
369 IN CONST CHAR16 *UnicodeString\r
370 );\r
371\r
372/**\r
373 This function frees the table of Unicode strings in UnicodeStringTable.\r
374 If UnicodeStringTable is NULL, then EFI_SUCCESS is returned.\r
375 Otherwise, each language code, and each Unicode string in the Unicode string \r
376 table are freed, and EFI_SUCCESS is returned.\r
377\r
378 @param UnicodeStringTable A pointer to the table of Unicode strings.\r
379\r
380 @retval EFI_SUCCESS The Unicode string table was freed.\r
381\r
382**/\r
383EFI_STATUS\r
384EFIAPI\r
385FreeUnicodeStringTable (\r
386 IN EFI_UNICODE_STRING_TABLE *UnicodeStringTable\r
387 );\r
388\r
389/**\r
390 This function computes and returns the width of the Unicode character \r
391 specified by UnicodeChar.\r
392\r
393 @param UnicodeChar A Unicode character.\r
394\r
395 @retval 0 The width if UnicodeChar could not be determined.\r
396 @retval 1 UnicodeChar is a narrow glyph.\r
397 @retval 2 UnicodeChar is a wide glyph.\r
398\r
399**/\r
400UINTN\r
401EFIAPI\r
402GetGlyphWidth (\r
403 IN CHAR16 UnicodeChar\r
404 );\r
405\r
406/**\r
407 This function computes and returns the display length of\r
408 the Null-terminated Unicode string specified by String.\r
409 If String is NULL, then 0 is returned.\r
410 If any of the widths of the Unicode characters in String\r
411 can not be determined, then 0 is returned.\r
412\r
413 @param String A pointer to a Null-terminated Unicode string.\r
414\r
415 @return The display length of the Null-terminated Unicode string specified by String.\r
416 \r
417**/\r
418UINTN\r
419EFIAPI\r
420UnicodeStringDisplayLength (\r
421 IN CONST CHAR16 *String\r
422 );\r
423\r
424//\r
425// Functions that abstract early Framework contamination of UEFI.\r
426//\r
427/**\r
428 Signal a Ready to Boot Event. \r
429 \r
430 Create a Ready to Boot Event. Signal it and close it. This causes other \r
431 events of the same event group to be signaled in other modules. \r
432\r
433**/\r
434VOID\r
435EFIAPI\r
436EfiSignalEventReadyToBoot (\r
437 VOID\r
438 );\r
439\r
440/**\r
441 Signal a Legacy Boot Event. \r
442 \r
443 Create a legacy Boot Event. Signal it and close it. This causes other \r
444 events of the same event group to be signaled in other modules. \r
445\r
446**/\r
447VOID\r
448EFIAPI\r
449EfiSignalEventLegacyBoot (\r
450 VOID\r
451 );\r
452\r
453/**\r
454 Create a Legacy Boot Event. \r
455 \r
456 Tiano extended the CreateEvent Type enum to add a legacy boot event type. \r
457 This was bad as Tiano did not own the enum. In UEFI 2.0 CreateEventEx was\r
458 added and now it's possible to not voilate the UEFI specification by \r
459 declaring a GUID for the legacy boot event class. This library supports\r
a537f148 460 the EDK/EFI 1.10 form and EDK II/UEFI 2.0 form and allows common code to \r
878ddf1f 461 work both ways.\r
462\r
463 @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).\r
464\r
465 @retval EFI_SUCCESS Event was created.\r
466 @retval Other Event was not created.\r
467\r
468**/\r
469EFI_STATUS\r
470EFIAPI\r
471EfiCreateEventLegacyBoot (\r
abea19db 472 OUT EFI_EVENT *LegacyBootEvent\r
878ddf1f 473 );\r
474\r
9a462b41 475/**\r
476 Create an EFI event in the Legacy Boot Event Group and allows\r
477 the caller to specify a notification function. \r
478 \r
479 This function abstracts the creation of the Legacy Boot Event.\r
480 The Framework moved from a proprietary to UEFI 2.0 based mechanism.\r
481 This library abstracts the caller from how this event is created to prevent\r
482 to code form having to change with the version of the specification supported.\r
483 If LegacyBootEvent is NULL, then ASSERT().\r
484\r
485 @param NotifyTpl The task priority level of the event.\r
486 @param NotifyFunction The notification function to call when the event is signaled.\r
487 @param NotifyContext The content to pass to NotifyFunction when the event is signaled.\r
488 @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).\r
489\r
490 @retval EFI_SUCCESS Event was created.\r
491 @retval Other Event was not created.\r
492\r
493**/\r
494EFI_STATUS\r
495EFIAPI\r
496EfiCreateEventLegacyBootEx (\r
497 IN EFI_TPL NotifyTpl,\r
498 IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL\r
499 IN VOID *NotifyContext, OPTIONAL\r
500 OUT EFI_EVENT *LegacyBootEvent\r
501 );\r
502\r
878ddf1f 503/**\r
504 Create a Read to Boot Event. \r
505 \r
506 Tiano extended the CreateEvent Type enum to add a ready to boot event type. \r
507 This was bad as Tiano did not own the enum. In UEFI 2.0 CreateEventEx was\r
508 added and now it's possible to not voilate the UEFI specification and use \r
509 the ready to boot event class defined in UEFI 2.0. This library supports\r
a537f148 510 the EDK/EFI 1.10 form and EDKII/UEFI 2.0 form and allows common code to \r
878ddf1f 511 work both ways.\r
512\r
513 @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).\r
514\r
515 @retval EFI_SUCCESS Event was created.\r
516 @retval Other Event was not created.\r
517\r
518**/\r
519EFI_STATUS\r
520EFIAPI\r
521EfiCreateEventReadyToBoot (\r
abea19db 522 OUT EFI_EVENT *ReadyToBootEvent\r
878ddf1f 523 );\r
524\r
9a462b41 525/**\r
526 Create an EFI event in the Ready To Boot Event Group and allows\r
527 the caller to specify a notification function. \r
528 \r
529 This function abstracts the creation of the Ready to Boot Event.\r
530 The Framework moved from a proprietary to UEFI 2.0 based mechanism.\r
531 This library abstracts the caller from how this event is created to prevent\r
532 to code form having to change with the version of the specification supported.\r
533 If ReadyToBootEvent is NULL, then ASSERT().\r
534\r
535 @param NotifyTpl The task priority level of the event.\r
536 @param NotifyFunction The notification function to call when the event is signaled.\r
537 @param NotifyContext The content to pass to NotifyFunction when the event is signaled.\r
538 @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex).\r
539\r
540 @retval EFI_SUCCESS Event was created.\r
541 @retval Other Event was not created.\r
542\r
543**/\r
544EFI_STATUS\r
545EFIAPI\r
546EfiCreateEventReadyToBootEx (\r
547 IN EFI_TPL NotifyTpl,\r
548 IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL\r
549 IN VOID *NotifyContext, OPTIONAL\r
550 OUT EFI_EVENT *ReadyToBootEvent\r
551 );\r
552\r
878ddf1f 553/**\r
554 Initialize a Firmware Volume (FV) Media Device Path node.\r
555 \r
556 Tiano extended the EFI 1.10 device path nodes. Tiano does not own this enum\r
557 so as we move to UEFI 2.0 support we must use a mechanism that conforms with\r
558 the UEFI 2.0 specification to define the FV device path. An UEFI GUIDed \r
a537f148 559 device path is defined for Tiano extensions of device path. If the code \r
878ddf1f 560 is compiled to conform with the UEFI 2.0 specification use the new device path\r
561 else use the old form for backwards compatability.\r
562\r
563 @param FvDevicePathNode Pointer to a FV device path node to initialize\r
564 @param NameGuid FV file name to use in FvDevicePathNode\r
565\r
566**/\r
567VOID\r
568EFIAPI\r
569EfiInitializeFwVolDevicepathNode (\r
abea19db 570 IN OUT MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode,\r
571 IN CONST EFI_GUID *NameGuid\r
878ddf1f 572 );\r
573\r
574/**\r
575 Check to see if the Firmware Volume (FV) Media Device Path is valid \r
576 \r
577 Tiano extended the EFI 1.10 device path nodes. Tiano does not own this enum\r
578 so as we move to UEFI 2.0 support we must use a mechanism that conforms with\r
579 the UEFI 2.0 specification to define the FV device path. An UEFI GUIDed \r
a537f148 580 device path is defined for Tiano extensions of device path. If the code \r
878ddf1f 581 is compiled to conform with the UEFI 2.0 specification use the new device path\r
582 else use the old form for backwards compatability. The return value to this\r
583 function points to a location in FvDevicePathNode and it does not allocate\r
584 new memory for the GUID pointer that is returned.\r
585\r
586 @param FvDevicePathNode Pointer to FV device path to check.\r
587\r
588 @retval NULL FvDevicePathNode is not valid.\r
589 @retval Other FvDevicePathNode is valid and pointer to NameGuid was returned.\r
590\r
591**/\r
592EFI_GUID *\r
593EFIAPI\r
594EfiGetNameGuidFromFwVolDevicePathNode (\r
abea19db 595 IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode\r
878ddf1f 596 );\r
597\r
598\r
599#endif\r