11//! UEFI services available during boot.
22
33use super :: Header ;
4+ use crate :: proto:: Protocol ;
5+ use crate :: { Event , Guid , Handle , Result , Status } ;
46use bitflags:: bitflags;
57use core:: cell:: UnsafeCell ;
68use core:: ffi:: c_void;
79use core:: { mem, ptr, result} ;
8- use crate :: proto:: Protocol ;
9- use crate :: { Event , Guid , Handle , Result , Status } ;
1010
1111/// Contains pointers to all of the boot services.
1212#[ repr( C ) ]
@@ -18,9 +18,12 @@ pub struct BootServices {
1818 restore_tpl : extern "win64" fn ( old_tpl : Tpl ) ,
1919
2020 // Memory allocation functions
21- allocate_pages :
22- extern "win64" fn ( alloc_ty : u32 , mem_ty : MemoryType , count : usize , addr : & mut u64 )
23- -> Status ,
21+ allocate_pages : extern "win64" fn (
22+ alloc_ty : u32 ,
23+ mem_ty : MemoryType ,
24+ count : usize ,
25+ addr : & mut u64 ,
26+ ) -> Status ,
2427 free_pages : extern "win64" fn ( addr : u64 , pages : usize ) -> Status ,
2528 memory_map : extern "win64" fn (
2629 size : & mut usize ,
@@ -42,9 +45,11 @@ pub struct BootServices {
4245 event : * mut Event ,
4346 ) -> Status ,
4447 set_timer : usize ,
45- wait_for_event :
46- extern "win64" fn ( number_of_events : usize , events : * mut Event , out_index : & mut usize )
47- -> Status ,
48+ wait_for_event : extern "win64" fn (
49+ number_of_events : usize ,
50+ events : * mut Event ,
51+ out_index : & mut usize ,
52+ ) -> Status ,
4853 signal_event : usize ,
4954 close_event : usize ,
5055 check_event : usize ,
@@ -53,9 +58,11 @@ pub struct BootServices {
5358 install_protocol_interface : usize ,
5459 reinstall_protocol_interface : usize ,
5560 uninstall_protocol_interface : usize ,
56- handle_protocol :
57- extern "win64" fn ( handle : Handle , proto : * const Guid , out_proto : & mut * mut c_void )
58- -> Status ,
61+ handle_protocol : extern "win64" fn (
62+ handle : Handle ,
63+ proto : * const Guid ,
64+ out_proto : & mut * mut c_void ,
65+ ) -> Status ,
5966 _reserved : usize ,
6067 register_protocol_notify : usize ,
6168 locate_handle : extern "win64" fn (
0 commit comments