3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
25 #define VALID_TPL(a) ((a) <= EFI_TPL_HIGH_LEVEL)
33 #define EVENT_SIGNATURE EFI_SIGNATURE_32('e','v','n','t')
40 // Entry if the event is registered to be signalled
43 LIST_ENTRY SignalLink
;
46 // Notification information for this event
50 EFI_EVENT_NOTIFY NotifyFunction
;
53 LIST_ENTRY NotifyLink
;
57 // A list of all runtime events
59 LIST_ENTRY RuntimeLink
;
62 // Information by event type
79 // Internal prototypes
83 CoreDispatchEventNotifies (
90 Dispatches all pending events.
94 Priority - The task priority level of event notifications to dispatch
112 Return the highest set bit
116 Number - The value to check
120 Bit position of the highest set bit
134 Disables CPU interrupts.
138 This - Protocol instance structure
140 State - Pointer to the CPU's current interrupt state
144 EFI_SUCCESS - If interrupts were disabled in the CPU.
146 EFI_INVALID_PARAMETER - State is NULL.
152 // Exported functions
156 CoreEventVirtualAddressFixup (
163 A function out of date, should be removed.
178 CoreInitializeTimer (
185 Initializes timer support
199 // extern data declarations
202 extern EFI_LOCK gEventQueueLock
;
203 extern UINTN gEventPending
;
204 extern LIST_ENTRY gEventQueue
[];
205 extern LIST_ENTRY gEventSignalQueue
;
207 extern LIST_ENTRY mRuntimeEventList
;