EFI_SIGNATURE_16 -> SIGNATURE_16 EFI_SIGNATURE_32 -> SIGNATURE_32 EFI_SIGNATURE_64 -> SIGNATURE_64 EFI_FIELD_OFFSET -> OFFSET_OF EFI_MAX_BIT -> MAX_BIT EFI_MAX_ADDRESS -> MAX_ADDRESS These macros are not defined in UEFI spec. It makes more sense to use the equivalent macros in Base.h to avoid alias. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7056 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			92 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   UEFI Event support functions and structure.
 | |
| 
 | |
| Copyright (c) 2006 - 2008, Intel Corporation. <BR>
 | |
| All rights reserved. This program and the accompanying materials
 | |
| are licensed and made available under the terms and conditions of the BSD License
 | |
| which accompanies this distribution.  The full text of the license may be found at
 | |
| http://opensource.org/licenses/bsd-license.php
 | |
| 
 | |
| THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef __EVENT_H__
 | |
| #define __EVENT_H__
 | |
| 
 | |
| 
 | |
| #define VALID_TPL(a)            ((a) <= TPL_HIGH_LEVEL)
 | |
| extern  UINTN                   gEventPending;
 | |
| 
 | |
| 
 | |
| //
 | |
| // EFI_EVENT
 | |
| //
 | |
| #define EVENT_SIGNATURE         SIGNATURE_32('e','v','n','t')
 | |
| typedef struct {
 | |
|   UINTN                   Signature;
 | |
|   UINT32                  Type;
 | |
|   UINT32                  SignalCount;
 | |
|   ///
 | |
|   /// Entry if the event is registered to be signalled
 | |
|   ///
 | |
|   LIST_ENTRY              SignalLink;
 | |
|   ///
 | |
|   /// Notification information for this event
 | |
|   ///
 | |
|   EFI_TPL                 NotifyTpl;
 | |
|   EFI_EVENT_NOTIFY        NotifyFunction;
 | |
|   VOID                    *NotifyContext;
 | |
|   EFI_GUID                EventGroup;
 | |
|   LIST_ENTRY              NotifyLink;
 | |
|   BOOLEAN                 ExFlag;
 | |
|   ///
 | |
|   /// A list of all runtime events
 | |
|   ///
 | |
|   EFI_RUNTIME_EVENT_ENTRY   RuntimeData;
 | |
|   ///
 | |
|   /// Information by event type
 | |
|   ///
 | |
|   union {
 | |
|     ///
 | |
|     /// For timer events
 | |
|     ///
 | |
|     struct {
 | |
|       LIST_ENTRY      Link;
 | |
|       UINT64          TriggerTime;
 | |
|       UINT64          Period;
 | |
|     } Timer;
 | |
|   } u;
 | |
| 
 | |
| } IEVENT;
 | |
| 
 | |
| //
 | |
| // Internal prototypes
 | |
| //
 | |
| 
 | |
| 
 | |
| /**
 | |
|   Dispatches all pending events.
 | |
| 
 | |
|   @param  Priority               The task priority level of event notifications
 | |
|                                  to dispatch
 | |
| 
 | |
| **/
 | |
| VOID
 | |
| CoreDispatchEventNotifies (
 | |
|   IN EFI_TPL      Priority
 | |
|   );
 | |
| 
 | |
| 
 | |
| /**
 | |
|   Initializes timer support.
 | |
| 
 | |
| **/
 | |
| VOID
 | |
| CoreInitializeTimer (
 | |
|   VOID
 | |
|   );
 | |
| 
 | |
| #endif
 |