@@ -5,7 +5,6 @@ use crate::data_types::{Align, PhysicalAddress};
5
5
use crate :: proto:: device_path:: { DevicePath , FfiDevicePath } ;
6
6
use crate :: proto:: { Protocol , ProtocolPointer } ;
7
7
use crate :: { Char16 , Event , Guid , Handle , Result , Status , StatusExt } ;
8
- use bitflags:: bitflags;
9
8
use core:: cell:: UnsafeCell ;
10
9
use core:: ffi:: c_void;
11
10
use core:: fmt:: { Debug , Formatter } ;
21
20
} ;
22
21
23
22
pub use uefi_raw:: table:: boot:: {
24
- InterfaceType , MemoryAttribute , MemoryDescriptor , MemoryType , Tpl ,
23
+ EventType , InterfaceType , MemoryAttribute , MemoryDescriptor , MemoryType , Tpl ,
25
24
} ;
26
25
27
26
// TODO: this similar to `SyncUnsafeCell`. Once that is stabilized we
@@ -2039,41 +2038,6 @@ impl<'guid> SearchType<'guid> {
2039
2038
}
2040
2039
}
2041
2040
2042
- bitflags ! {
2043
- /// Flags describing the type of an UEFI event and its attributes.
2044
- #[ repr( transparent) ]
2045
- #[ derive( Clone , Copy , Debug , Default , PartialEq , Eq , PartialOrd , Ord ) ]
2046
- pub struct EventType : u32 {
2047
- /// The event is a timer event and may be passed to `BootServices::set_timer()`
2048
- /// Note that timers only function during boot services time.
2049
- const TIMER = 0x8000_0000 ;
2050
-
2051
- /// The event is allocated from runtime memory.
2052
- /// This must be done if the event is to be signaled after ExitBootServices.
2053
- const RUNTIME = 0x4000_0000 ;
2054
-
2055
- /// Calling wait_for_event or check_event will enqueue the notification
2056
- /// function if the event is not already in the signaled state.
2057
- /// Mutually exclusive with `NOTIFY_SIGNAL`.
2058
- const NOTIFY_WAIT = 0x0000_0100 ;
2059
-
2060
- /// The notification function will be enqueued when the event is signaled
2061
- /// Mutually exclusive with `NOTIFY_WAIT`.
2062
- const NOTIFY_SIGNAL = 0x0000_0200 ;
2063
-
2064
- /// The event will be signaled at ExitBootServices time.
2065
- /// This event type should not be combined with any other.
2066
- /// Its notification function must follow some special rules:
2067
- /// - Cannot use memory allocation services, directly or indirectly
2068
- /// - Cannot depend on timer events, since those will be deactivated
2069
- const SIGNAL_EXIT_BOOT_SERVICES = 0x0000_0201 ;
2070
-
2071
- /// The event will be notified when SetVirtualAddressMap is performed.
2072
- /// This event type should not be combined with any other.
2073
- const SIGNAL_VIRTUAL_ADDRESS_CHANGE = 0x6000_0202 ;
2074
- }
2075
- }
2076
-
2077
2041
/// Raw event notification function
2078
2042
type EventNotifyFn = unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
2079
2043
0 commit comments