|
2 | 2 | //! |
3 | 3 | //! These functions will panic if called after exiting boot services. |
4 | 4 |
|
| 5 | +pub use crate::table::boot::{ |
| 6 | + AllocateType, EventNotifyFn, LoadImageSource, OpenProtocolAttributes, OpenProtocolParams, |
| 7 | + ProtocolSearchKey, SearchType, TimerTrigger, |
| 8 | +}; |
| 9 | +pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl}; |
| 10 | + |
5 | 11 | use crate::data_types::PhysicalAddress; |
6 | 12 | use crate::mem::memory_map::{MemoryMapBackingMemory, MemoryMapKey, MemoryMapMeta, MemoryMapOwned}; |
7 | 13 | use crate::polyfill::maybe_uninit_slice_assume_init_ref; |
8 | 14 | use crate::proto::device_path::DevicePath; |
| 15 | +#[cfg(doc)] |
| 16 | +use crate::proto::device_path::LoadedImageDevicePath; |
9 | 17 | use crate::proto::loaded_image::LoadedImage; |
10 | 18 | use crate::proto::media::fs::SimpleFileSystem; |
11 | 19 | use crate::proto::{Protocol, ProtocolPointer}; |
12 | 20 | use crate::runtime::{self, ResetType}; |
13 | 21 | use crate::table::Revision; |
14 | 22 | use crate::util::opt_nonnull_to_ptr; |
| 23 | +use crate::{table, Char16, Error, Event, Guid, Handle, Result, Status, StatusExt}; |
15 | 24 | use core::ffi::c_void; |
16 | 25 | use core::mem::MaybeUninit; |
17 | 26 | use core::ops::{Deref, DerefMut}; |
18 | 27 | use core::ptr::{self, NonNull}; |
19 | 28 | use core::sync::atomic::{AtomicPtr, Ordering}; |
20 | 29 | use core::{mem, slice}; |
21 | | -use uefi::{table, Char16, Error, Event, Guid, Handle, Result, Status, StatusExt}; |
22 | 30 | use uefi_raw::table::boot::InterfaceType; |
23 | | - |
24 | | -#[cfg(doc)] |
25 | | -use crate::proto::device_path::LoadedImageDevicePath; |
26 | 31 | #[cfg(feature = "alloc")] |
27 | 32 | use {alloc::vec::Vec, uefi::ResultExt}; |
28 | 33 |
|
29 | | -pub use uefi::table::boot::{ |
30 | | - AllocateType, EventNotifyFn, LoadImageSource, OpenProtocolAttributes, OpenProtocolParams, |
31 | | - ProtocolSearchKey, SearchType, TimerTrigger, |
32 | | -}; |
33 | | -pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl}; |
34 | | - |
35 | 34 | /// Global image handle. This is only set by [`set_image_handle`], and it is |
36 | 35 | /// only read by [`image_handle`]. |
37 | 36 | static IMAGE_HANDLE: AtomicPtr<c_void> = AtomicPtr::new(ptr::null_mut()); |
|
0 commit comments