File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99- Added ` HiiStringProtocol ` .
1010- Added ` HiiPopupProtocol ` .
1111- Added ` FormBrowser2Protocol ` .
12+ - Added new type ` SerialIoProtocolRevision `
1213
1314## Changed
1415- Switched ` *const Self ` to ` *mut Self ` in ` SerialIoProtocol::set_attributes() `
16+ - Switched field ` revision ` in ` SerialIoProtocol ` from ` u32 ` to new type
17+ ` SerialIoProtocolRevision `
1518
1619
1720# uefi-raw - v0.13.0 (2025-11-05)
Original file line number Diff line number Diff line change @@ -77,10 +77,22 @@ pub struct SerialIoMode {
7777 pub stop_bits : StopBits ,
7878}
7979
80+ newtype_enum ! {
81+ /// The revision of the [`SerialIoProtocol`].
82+ #[ derive( Default ) ]
83+ pub enum SerialIoProtocolRevision : u32 => {
84+ /// Initial version 1.0.
85+ REVISION_1_0 = 0x00010000 ,
86+ /// Version 1.1.
87+ REVISION_1_1 = 0x00010001 ,
88+ }
89+ }
90+
91+ /// Serial I/O protocol (revision 1.0).
8092#[ derive( Debug ) ]
8193#[ repr( C ) ]
8294pub struct SerialIoProtocol {
83- pub revision : u32 ,
95+ pub revision : SerialIoProtocolRevision ,
8496 pub reset : unsafe extern "efiapi" fn ( * mut Self ) -> Status ,
8597 pub set_attributes : unsafe extern "efiapi" fn (
8698 * mut Self ,
@@ -100,8 +112,6 @@ pub struct SerialIoProtocol {
100112
101113impl SerialIoProtocol {
102114 pub const GUID : Guid = guid ! ( "bb25cf6f-f1d4-11d2-9a0c-0090273fc1fd" ) ;
103- pub const REVISION : u32 = 0x00010000 ;
104- pub const REVISION1P1 : u32 = 0x00010001 ;
105115}
106116
107117newtype_enum ! {
You can’t perform that action at this time.
0 commit comments