11pub mod serial;
22
3- use crate :: { guid, Char16 , Event , Guid , PhysicalAddress , Status } ;
3+ use crate :: { guid, Boolean , Char16 , Event , Guid , PhysicalAddress , Status } ;
44use bitflags:: bitflags;
55use core:: ptr;
66
@@ -42,7 +42,7 @@ pub struct AbsolutePointerState {
4242#[ derive( Debug ) ]
4343#[ repr( C ) ]
4444pub struct AbsolutePointerProtocol {
45- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : u8 ) -> Status ,
45+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : Boolean ) -> Status ,
4646 pub get_state :
4747 unsafe extern "efiapi" fn ( this : * const Self , state : * mut AbsolutePointerState ) -> Status ,
4848 pub wait_for_input : Event ,
@@ -63,7 +63,7 @@ pub struct InputKey {
6363#[ derive( Debug ) ]
6464#[ repr( C ) ]
6565pub struct SimpleTextInputProtocol {
66- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : bool ) -> Status ,
66+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : Boolean ) -> Status ,
6767 pub read_key_stroke : unsafe extern "efiapi" fn ( this : * mut Self , key : * mut InputKey ) -> Status ,
6868 pub wait_for_key : Event ,
6969}
@@ -80,13 +80,13 @@ pub struct SimpleTextOutputMode {
8080 pub attribute : i32 ,
8181 pub cursor_column : i32 ,
8282 pub cursor_row : i32 ,
83- pub cursor_visible : bool ,
83+ pub cursor_visible : Boolean ,
8484}
8585
8686#[ derive( Debug ) ]
8787#[ repr( C ) ]
8888pub struct SimpleTextOutputProtocol {
89- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended : bool ) -> Status ,
89+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended : Boolean ) -> Status ,
9090 pub output_string : unsafe extern "efiapi" fn ( this : * mut Self , string : * const Char16 ) -> Status ,
9191 pub test_string : unsafe extern "efiapi" fn ( this : * mut Self , string : * const Char16 ) -> Status ,
9292 pub query_mode : unsafe extern "efiapi" fn (
@@ -100,7 +100,7 @@ pub struct SimpleTextOutputProtocol {
100100 pub clear_screen : unsafe extern "efiapi" fn ( this : * mut Self ) -> Status ,
101101 pub set_cursor_position :
102102 unsafe extern "efiapi" fn ( this : * mut Self , column : usize , row : usize ) -> Status ,
103- pub enable_cursor : unsafe extern "efiapi" fn ( this : * mut Self , visible : bool ) -> Status ,
103+ pub enable_cursor : unsafe extern "efiapi" fn ( this : * mut Self , visible : Boolean ) -> Status ,
104104 pub mode : * mut SimpleTextOutputMode ,
105105}
106106
@@ -124,16 +124,16 @@ pub struct SimplePointerState {
124124 pub relative_movement_x : i32 ,
125125 pub relative_movement_y : i32 ,
126126 pub relative_movement_z : i32 ,
127- pub left_button : u8 ,
128- pub right_button : u8 ,
127+ pub left_button : Boolean ,
128+ pub right_button : Boolean ,
129129}
130130
131131#[ derive( Debug ) ]
132132#[ repr( C ) ]
133133pub struct SimplePointerProtocol {
134134 pub reset : unsafe extern "efiapi" fn (
135135 this : * mut SimplePointerProtocol ,
136- extended_verification : bool ,
136+ extended_verification : Boolean ,
137137 ) -> Status ,
138138 pub get_state : unsafe extern "efiapi" fn (
139139 this : * mut SimplePointerProtocol ,
0 commit comments