]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
055363e1ad538bc5bfb9bed2289b4e7eeabd4e07
[mirror_edk2.git] / MdeModulePkg / Core / PiSmmCore / PiSmmCore.h
1 /** @file
2 The internal header file includes the common header files, defines
3 internal structure and functions used by SmmCore module.
4
5 Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _SMM_CORE_H_
17 #define _SMM_CORE_H_
18
19 #include <PiSmm.h>
20
21 #include <Protocol/DxeSmmReadyToLock.h>
22 #include <Protocol/SmmReadyToLock.h>
23 #include <Protocol/CpuIo2.h>
24 #include <Protocol/SmmCommunication.h>
25 #include <Protocol/SmmAccess2.h>
26 #include <Protocol/FirmwareVolume2.h>
27 #include <Protocol/LoadedImage.h>
28 #include <Protocol/DevicePath.h>
29 #include <Protocol/Security.h>
30 #include <Protocol/Security2.h>
31
32 #include <Guid/Apriori.h>
33 #include <Guid/EventGroup.h>
34 #include <Guid/EventLegacyBios.h>
35
36 #include <Library/BaseLib.h>
37 #include <Library/BaseMemoryLib.h>
38 #include <Library/PeCoffLib.h>
39 #include <Library/CacheMaintenanceLib.h>
40 #include <Library/DebugLib.h>
41 #include <Library/ReportStatusCodeLib.h>
42 #include <Library/MemoryAllocationLib.h>
43 #include <Library/DevicePathLib.h>
44 #include <Library/UefiLib.h>
45 #include <Library/UefiBootServicesTableLib.h>
46 #include <Library/PcdLib.h>
47 #include <Library/SmmCorePlatformHookLib.h>
48 #include <Library/PerformanceLib.h>
49 #include <Library/TimerLib.h>
50
51 #include "PiSmmCorePrivateData.h"
52
53 //
54 // Used to build a table of SMI Handlers that the SMM Core registers
55 //
56 typedef struct {
57 EFI_SMM_HANDLER_ENTRY_POINT2 Handler;
58 EFI_GUID *HandlerType;
59 EFI_HANDLE DispatchHandle;
60 BOOLEAN UnRegister;
61 } SMM_CORE_SMI_HANDLERS;
62
63 //
64 // Structure for recording the state of an SMM Driver
65 //
66 #define EFI_SMM_DRIVER_ENTRY_SIGNATURE SIGNATURE_32('s', 'd','r','v')
67
68 typedef struct {
69 UINTN Signature;
70 LIST_ENTRY Link; // mDriverList
71
72 LIST_ENTRY ScheduledLink; // mScheduledQueue
73
74 EFI_HANDLE FvHandle;
75 EFI_GUID FileName;
76 EFI_DEVICE_PATH_PROTOCOL *FvFileDevicePath;
77 EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv;
78
79 VOID *Depex;
80 UINTN DepexSize;
81
82 BOOLEAN Before;
83 BOOLEAN After;
84 EFI_GUID BeforeAfterGuid;
85
86 BOOLEAN Dependent;
87 BOOLEAN Scheduled;
88 BOOLEAN Initialized;
89 BOOLEAN DepexProtocolError;
90
91 EFI_HANDLE ImageHandle;
92 EFI_LOADED_IMAGE_PROTOCOL *LoadedImage;
93 //
94 // Image EntryPoint in SMRAM
95 //
96 PHYSICAL_ADDRESS ImageEntryPoint;
97 //
98 // Image Buffer in SMRAM
99 //
100 PHYSICAL_ADDRESS ImageBuffer;
101 //
102 // Image Page Number
103 //
104 UINTN NumberOfPage;
105 } EFI_SMM_DRIVER_ENTRY;
106
107 #define EFI_HANDLE_SIGNATURE SIGNATURE_32('h','n','d','l')
108
109 ///
110 /// IHANDLE - contains a list of protocol handles
111 ///
112 typedef struct {
113 UINTN Signature;
114 /// All handles list of IHANDLE
115 LIST_ENTRY AllHandles;
116 /// List of PROTOCOL_INTERFACE's for this handle
117 LIST_ENTRY Protocols;
118 UINTN LocateRequest;
119 } IHANDLE;
120
121 #define ASSERT_IS_HANDLE(a) ASSERT((a)->Signature == EFI_HANDLE_SIGNATURE)
122
123 #define PROTOCOL_ENTRY_SIGNATURE SIGNATURE_32('p','r','t','e')
124
125 ///
126 /// PROTOCOL_ENTRY - each different protocol has 1 entry in the protocol
127 /// database. Each handler that supports this protocol is listed, along
128 /// with a list of registered notifies.
129 ///
130 typedef struct {
131 UINTN Signature;
132 /// Link Entry inserted to mProtocolDatabase
133 LIST_ENTRY AllEntries;
134 /// ID of the protocol
135 EFI_GUID ProtocolID;
136 /// All protocol interfaces
137 LIST_ENTRY Protocols;
138 /// Registerd notification handlers
139 LIST_ENTRY Notify;
140 } PROTOCOL_ENTRY;
141
142 #define PROTOCOL_INTERFACE_SIGNATURE SIGNATURE_32('p','i','f','c')
143
144 ///
145 /// PROTOCOL_INTERFACE - each protocol installed on a handle is tracked
146 /// with a protocol interface structure
147 ///
148 typedef struct {
149 UINTN Signature;
150 /// Link on IHANDLE.Protocols
151 LIST_ENTRY Link;
152 /// Back pointer
153 IHANDLE *Handle;
154 /// Link on PROTOCOL_ENTRY.Protocols
155 LIST_ENTRY ByProtocol;
156 /// The protocol ID
157 PROTOCOL_ENTRY *Protocol;
158 /// The interface value
159 VOID *Interface;
160 } PROTOCOL_INTERFACE;
161
162 #define PROTOCOL_NOTIFY_SIGNATURE SIGNATURE_32('p','r','t','n')
163
164 ///
165 /// PROTOCOL_NOTIFY - used for each register notification for a protocol
166 ///
167 typedef struct {
168 UINTN Signature;
169 PROTOCOL_ENTRY *Protocol;
170 /// All notifications for this protocol
171 LIST_ENTRY Link;
172 /// Notification function
173 EFI_SMM_NOTIFY_FN Function;
174 /// Last position notified
175 LIST_ENTRY *Position;
176 } PROTOCOL_NOTIFY;
177
178 //
179 // SMM Core Global Variables
180 //
181 extern SMM_CORE_PRIVATE_DATA *gSmmCorePrivate;
182 extern EFI_SMM_SYSTEM_TABLE2 gSmmCoreSmst;
183 extern LIST_ENTRY gHandleList;
184 extern EFI_PHYSICAL_ADDRESS gLoadModuleAtFixAddressSmramBase;
185
186 /**
187 Called to initialize the memory service.
188
189 @param SmramRangeCount Number of SMRAM Regions
190 @param SmramRanges Pointer to SMRAM Descriptors
191
192 **/
193 VOID
194 SmmInitializeMemoryServices (
195 IN UINTN SmramRangeCount,
196 IN EFI_SMRAM_DESCRIPTOR *SmramRanges
197 );
198
199 /**
200 The SmmInstallConfigurationTable() function is used to maintain the list
201 of configuration tables that are stored in the System Management System
202 Table. The list is stored as an array of (GUID, Pointer) pairs. The list
203 must be allocated from pool memory with PoolType set to EfiRuntimeServicesData.
204
205 @param SystemTable A pointer to the SMM System Table (SMST).
206 @param Guid A pointer to the GUID for the entry to add, update, or remove.
207 @param Table A pointer to the buffer of the table to add.
208 @param TableSize The size of the table to install.
209
210 @retval EFI_SUCCESS The (Guid, Table) pair was added, updated, or removed.
211 @retval EFI_INVALID_PARAMETER Guid is not valid.
212 @retval EFI_NOT_FOUND An attempt was made to delete a non-existent entry.
213 @retval EFI_OUT_OF_RESOURCES There is not enough memory available to complete the operation.
214
215 **/
216 EFI_STATUS
217 EFIAPI
218 SmmInstallConfigurationTable (
219 IN CONST EFI_SMM_SYSTEM_TABLE2 *SystemTable,
220 IN CONST EFI_GUID *Guid,
221 IN VOID *Table,
222 IN UINTN TableSize
223 );
224
225 /**
226 Wrapper function to SmmInstallProtocolInterfaceNotify. This is the public API which
227 Calls the private one which contains a BOOLEAN parameter for notifications
228
229 @param UserHandle The handle to install the protocol handler on,
230 or NULL if a new handle is to be allocated
231 @param Protocol The protocol to add to the handle
232 @param InterfaceType Indicates whether Interface is supplied in
233 native form.
234 @param Interface The interface for the protocol being added
235
236 @return Status code
237
238 **/
239 EFI_STATUS
240 EFIAPI
241 SmmInstallProtocolInterface (
242 IN OUT EFI_HANDLE *UserHandle,
243 IN EFI_GUID *Protocol,
244 IN EFI_INTERFACE_TYPE InterfaceType,
245 IN VOID *Interface
246 );
247
248 /**
249 Allocates pages from the memory map.
250
251 @param Type The type of allocation to perform
252 @param MemoryType The type of memory to turn the allocated pages
253 into
254 @param NumberOfPages The number of pages to allocate
255 @param Memory A pointer to receive the base allocated memory
256 address
257
258 @retval EFI_INVALID_PARAMETER Parameters violate checking rules defined in spec.
259 @retval EFI_NOT_FOUND Could not allocate pages match the requirement.
260 @retval EFI_OUT_OF_RESOURCES No enough pages to allocate.
261 @retval EFI_SUCCESS Pages successfully allocated.
262
263 **/
264 EFI_STATUS
265 EFIAPI
266 SmmAllocatePages (
267 IN EFI_ALLOCATE_TYPE Type,
268 IN EFI_MEMORY_TYPE MemoryType,
269 IN UINTN NumberOfPages,
270 OUT EFI_PHYSICAL_ADDRESS *Memory
271 );
272
273 /**
274 Frees previous allocated pages.
275
276 @param Memory Base address of memory being freed
277 @param NumberOfPages The number of pages to free
278
279 @retval EFI_NOT_FOUND Could not find the entry that covers the range
280 @retval EFI_INVALID_PARAMETER Address not aligned
281 @return EFI_SUCCESS Pages successfully freed.
282
283 **/
284 EFI_STATUS
285 EFIAPI
286 SmmFreePages (
287 IN EFI_PHYSICAL_ADDRESS Memory,
288 IN UINTN NumberOfPages
289 );
290
291 /**
292 Allocate pool of a particular type.
293
294 @param PoolType Type of pool to allocate
295 @param Size The amount of pool to allocate
296 @param Buffer The address to return a pointer to the allocated
297 pool
298
299 @retval EFI_INVALID_PARAMETER PoolType not valid
300 @retval EFI_OUT_OF_RESOURCES Size exceeds max pool size or allocation failed.
301 @retval EFI_SUCCESS Pool successfully allocated.
302
303 **/
304 EFI_STATUS
305 EFIAPI
306 SmmAllocatePool (
307 IN EFI_MEMORY_TYPE PoolType,
308 IN UINTN Size,
309 OUT VOID **Buffer
310 );
311
312 /**
313 Frees pool.
314
315 @param Buffer The allocated pool entry to free
316
317 @retval EFI_INVALID_PARAMETER Buffer is not a valid value.
318 @retval EFI_SUCCESS Pool successfully freed.
319
320 **/
321 EFI_STATUS
322 EFIAPI
323 SmmFreePool (
324 IN VOID *Buffer
325 );
326
327 /**
328 Installs a protocol interface into the boot services environment.
329
330 @param UserHandle The handle to install the protocol handler on,
331 or NULL if a new handle is to be allocated
332 @param Protocol The protocol to add to the handle
333 @param InterfaceType Indicates whether Interface is supplied in
334 native form.
335 @param Interface The interface for the protocol being added
336 @param Notify indicates whether notify the notification list
337 for this protocol
338
339 @retval EFI_INVALID_PARAMETER Invalid parameter
340 @retval EFI_OUT_OF_RESOURCES No enough buffer to allocate
341 @retval EFI_SUCCESS Protocol interface successfully installed
342
343 **/
344 EFI_STATUS
345 SmmInstallProtocolInterfaceNotify (
346 IN OUT EFI_HANDLE *UserHandle,
347 IN EFI_GUID *Protocol,
348 IN EFI_INTERFACE_TYPE InterfaceType,
349 IN VOID *Interface,
350 IN BOOLEAN Notify
351 );
352
353 /**
354 Uninstalls all instances of a protocol:interfacer from a handle.
355 If the last protocol interface is remove from the handle, the
356 handle is freed.
357
358 @param UserHandle The handle to remove the protocol handler from
359 @param Protocol The protocol, of protocol:interface, to remove
360 @param Interface The interface, of protocol:interface, to remove
361
362 @retval EFI_INVALID_PARAMETER Protocol is NULL.
363 @retval EFI_SUCCESS Protocol interface successfully uninstalled.
364
365 **/
366 EFI_STATUS
367 EFIAPI
368 SmmUninstallProtocolInterface (
369 IN EFI_HANDLE UserHandle,
370 IN EFI_GUID *Protocol,
371 IN VOID *Interface
372 );
373
374 /**
375 Queries a handle to determine if it supports a specified protocol.
376
377 @param UserHandle The handle being queried.
378 @param Protocol The published unique identifier of the protocol.
379 @param Interface Supplies the address where a pointer to the
380 corresponding Protocol Interface is returned.
381
382 @return The requested protocol interface for the handle
383
384 **/
385 EFI_STATUS
386 EFIAPI
387 SmmHandleProtocol (
388 IN EFI_HANDLE UserHandle,
389 IN EFI_GUID *Protocol,
390 OUT VOID **Interface
391 );
392
393 /**
394 Add a new protocol notification record for the request protocol.
395
396 @param Protocol The requested protocol to add the notify
397 registration
398 @param Function Points to the notification function
399 @param Registration Returns the registration record
400
401 @retval EFI_INVALID_PARAMETER Invalid parameter
402 @retval EFI_SUCCESS Successfully returned the registration record
403 that has been added
404
405 **/
406 EFI_STATUS
407 EFIAPI
408 SmmRegisterProtocolNotify (
409 IN CONST EFI_GUID *Protocol,
410 IN EFI_SMM_NOTIFY_FN Function,
411 OUT VOID **Registration
412 );
413
414 /**
415 Locates the requested handle(s) and returns them in Buffer.
416
417 @param SearchType The type of search to perform to locate the
418 handles
419 @param Protocol The protocol to search for
420 @param SearchKey Dependant on SearchType
421 @param BufferSize On input the size of Buffer. On output the
422 size of data returned.
423 @param Buffer The buffer to return the results in
424
425 @retval EFI_BUFFER_TOO_SMALL Buffer too small, required buffer size is
426 returned in BufferSize.
427 @retval EFI_INVALID_PARAMETER Invalid parameter
428 @retval EFI_SUCCESS Successfully found the requested handle(s) and
429 returns them in Buffer.
430
431 **/
432 EFI_STATUS
433 EFIAPI
434 SmmLocateHandle (
435 IN EFI_LOCATE_SEARCH_TYPE SearchType,
436 IN EFI_GUID *Protocol OPTIONAL,
437 IN VOID *SearchKey OPTIONAL,
438 IN OUT UINTN *BufferSize,
439 OUT EFI_HANDLE *Buffer
440 );
441
442 /**
443 Return the first Protocol Interface that matches the Protocol GUID. If
444 Registration is pasased in return a Protocol Instance that was just add
445 to the system. If Retistration is NULL return the first Protocol Interface
446 you find.
447
448 @param Protocol The protocol to search for
449 @param Registration Optional Registration Key returned from
450 RegisterProtocolNotify()
451 @param Interface Return the Protocol interface (instance).
452
453 @retval EFI_SUCCESS If a valid Interface is returned
454 @retval EFI_INVALID_PARAMETER Invalid parameter
455 @retval EFI_NOT_FOUND Protocol interface not found
456
457 **/
458 EFI_STATUS
459 EFIAPI
460 SmmLocateProtocol (
461 IN EFI_GUID *Protocol,
462 IN VOID *Registration OPTIONAL,
463 OUT VOID **Interface
464 );
465
466 /**
467 Manage SMI of a particular type.
468
469 @param HandlerType Points to the handler type or NULL for root SMI handlers.
470 @param Context Points to an optional context buffer.
471 @param CommBuffer Points to the optional communication buffer.
472 @param CommBufferSize Points to the size of the optional communication buffer.
473
474 @retval EFI_SUCCESS Interrupt source was processed successfully but not quiesced.
475 @retval EFI_INTERRUPT_PENDING One or more SMI sources could not be quiesced.
476 @retval EFI_WARN_INTERRUPT_SOURCE_PENDING Interrupt source was not handled or quiesced.
477 @retval EFI_WARN_INTERRUPT_SOURCE_QUIESCED Interrupt source was handled and quiesced.
478
479 **/
480 EFI_STATUS
481 EFIAPI
482 SmiManage (
483 IN CONST EFI_GUID *HandlerType,
484 IN CONST VOID *Context OPTIONAL,
485 IN OUT VOID *CommBuffer OPTIONAL,
486 IN OUT UINTN *CommBufferSize OPTIONAL
487 );
488
489 /**
490 Registers a handler to execute within SMM.
491
492 @param Handler Handler service funtion pointer.
493 @param HandlerType Points to the handler type or NULL for root SMI handlers.
494 @param DispatchHandle On return, contains a unique handle which can be used to later unregister the handler function.
495
496 @retval EFI_SUCCESS Handler register success.
497 @retval EFI_INVALID_PARAMETER Handler or DispatchHandle is NULL.
498
499 **/
500 EFI_STATUS
501 EFIAPI
502 SmiHandlerRegister (
503 IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,
504 IN CONST EFI_GUID *HandlerType OPTIONAL,
505 OUT EFI_HANDLE *DispatchHandle
506 );
507
508 /**
509 Unregister a handler in SMM.
510
511 @param DispatchHandle The handle that was specified when the handler was registered.
512
513 @retval EFI_SUCCESS Handler function was successfully unregistered.
514 @retval EFI_INVALID_PARAMETER DispatchHandle does not refer to a valid handle.
515
516 **/
517 EFI_STATUS
518 EFIAPI
519 SmiHandlerUnRegister (
520 IN EFI_HANDLE DispatchHandle
521 );
522
523 /**
524 This function is the main entry point for an SMM handler dispatch
525 or communicate-based callback.
526
527 @param DispatchHandle The unique handle assigned to this handler by SmiHandlerRegister().
528 @param Context Points to an optional handler context which was specified when the handler was registered.
529 @param CommBuffer A pointer to a collection of data in memory that will
530 be conveyed from a non-SMM environment into an SMM environment.
531 @param CommBufferSize The size of the CommBuffer.
532
533 @return Status Code
534
535 **/
536 EFI_STATUS
537 EFIAPI
538 SmmDriverDispatchHandler (
539 IN EFI_HANDLE DispatchHandle,
540 IN CONST VOID *Context, OPTIONAL
541 IN OUT VOID *CommBuffer, OPTIONAL
542 IN OUT UINTN *CommBufferSize OPTIONAL
543 );
544
545 /**
546 This function is the main entry point for an SMM handler dispatch
547 or communicate-based callback.
548
549 @param DispatchHandle The unique handle assigned to this handler by SmiHandlerRegister().
550 @param Context Points to an optional handler context which was specified when the handler was registered.
551 @param CommBuffer A pointer to a collection of data in memory that will
552 be conveyed from a non-SMM environment into an SMM environment.
553 @param CommBufferSize The size of the CommBuffer.
554
555 @return Status Code
556
557 **/
558 EFI_STATUS
559 EFIAPI
560 SmmLegacyBootHandler (
561 IN EFI_HANDLE DispatchHandle,
562 IN CONST VOID *Context, OPTIONAL
563 IN OUT VOID *CommBuffer, OPTIONAL
564 IN OUT UINTN *CommBufferSize OPTIONAL
565 );
566
567 /**
568 This function is the main entry point for an SMM handler dispatch
569 or communicate-based callback.
570
571 @param DispatchHandle The unique handle assigned to this handler by SmiHandlerRegister().
572 @param Context Points to an optional handler context which was specified when the handler was registered.
573 @param CommBuffer A pointer to a collection of data in memory that will
574 be conveyed from a non-SMM environment into an SMM environment.
575 @param CommBufferSize The size of the CommBuffer.
576
577 @return Status Code
578
579 **/
580 EFI_STATUS
581 EFIAPI
582 SmmReadyToLockHandler (
583 IN EFI_HANDLE DispatchHandle,
584 IN CONST VOID *Context, OPTIONAL
585 IN OUT VOID *CommBuffer, OPTIONAL
586 IN OUT UINTN *CommBufferSize OPTIONAL
587 );
588
589 /**
590 Place holder function until all the SMM System Table Service are available.
591
592 @param Arg1 Undefined
593 @param Arg2 Undefined
594 @param Arg3 Undefined
595 @param Arg4 Undefined
596 @param Arg5 Undefined
597
598 @return EFI_NOT_AVAILABLE_YET
599
600 **/
601 EFI_STATUS
602 EFIAPI
603 SmmEfiNotAvailableYetArg5 (
604 UINTN Arg1,
605 UINTN Arg2,
606 UINTN Arg3,
607 UINTN Arg4,
608 UINTN Arg5
609 );
610
611 //
612 //Functions used during debug buils
613 //
614
615 /**
616 Traverse the discovered list for any drivers that were discovered but not loaded
617 because the dependency experessions evaluated to false.
618
619 **/
620 VOID
621 SmmDisplayDiscoveredNotDispatched (
622 VOID
623 );
624
625 /**
626 Add free SMRAM region for use by memory service.
627
628 @param MemBase Base address of memory region.
629 @param MemLength Length of the memory region.
630 @param Type Memory type.
631 @param Attributes Memory region state.
632
633 **/
634 VOID
635 SmmAddMemoryRegion (
636 IN EFI_PHYSICAL_ADDRESS MemBase,
637 IN UINT64 MemLength,
638 IN EFI_MEMORY_TYPE Type,
639 IN UINT64 Attributes
640 );
641
642 /**
643 Finds the protocol entry for the requested protocol.
644
645 @param Protocol The ID of the protocol
646 @param Create Create a new entry if not found
647
648 @return Protocol entry
649
650 **/
651 PROTOCOL_ENTRY *
652 SmmFindProtocolEntry (
653 IN EFI_GUID *Protocol,
654 IN BOOLEAN Create
655 );
656
657 /**
658 Signal event for every protocol in protocol entry.
659
660 @param Prot Protocol interface
661
662 **/
663 VOID
664 SmmNotifyProtocol (
665 IN PROTOCOL_INTERFACE *Prot
666 );
667
668 /**
669 Finds the protocol instance for the requested handle and protocol.
670 Note: This function doesn't do parameters checking, it's caller's responsibility
671 to pass in valid parameters.
672
673 @param Handle The handle to search the protocol on
674 @param Protocol GUID of the protocol
675 @param Interface The interface for the protocol being searched
676
677 @return Protocol instance (NULL: Not found)
678
679 **/
680 PROTOCOL_INTERFACE *
681 SmmFindProtocolInterface (
682 IN IHANDLE *Handle,
683 IN EFI_GUID *Protocol,
684 IN VOID *Interface
685 );
686
687 /**
688 Removes Protocol from the protocol list (but not the handle list).
689
690 @param Handle The handle to remove protocol on.
691 @param Protocol GUID of the protocol to be moved
692 @param Interface The interface of the protocol
693
694 @return Protocol Entry
695
696 **/
697 PROTOCOL_INTERFACE *
698 SmmRemoveInterfaceFromProtocol (
699 IN IHANDLE *Handle,
700 IN EFI_GUID *Protocol,
701 IN VOID *Interface
702 );
703
704 /**
705 This is the POSTFIX version of the dependency evaluator. This code does
706 not need to handle Before or After, as it is not valid to call this
707 routine in this case. POSTFIX means all the math is done on top of the stack.
708
709 @param DriverEntry DriverEntry element to update.
710
711 @retval TRUE If driver is ready to run.
712 @retval FALSE If driver is not ready to run or some fatal error
713 was found.
714
715 **/
716 BOOLEAN
717 SmmIsSchedulable (
718 IN EFI_SMM_DRIVER_ENTRY *DriverEntry
719 );
720
721 #endif