@@ -11,13 +11,13 @@ use crate::builder::traits::StructAsBytes;
1111/// EFI system table in 32 bit mode
1212#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
1313#[ repr( C ) ]
14- pub struct EFISdt32 {
14+ pub struct EFISdt32Tag {
1515 typ : TagTypeId ,
1616 size : u32 ,
1717 pointer : u32 ,
1818}
1919
20- impl EFISdt32 {
20+ impl EFISdt32Tag {
2121 /// Create a new tag to pass the EFI32 System Table pointer.
2222 pub fn new ( pointer : u32 ) -> Self {
2323 Self {
@@ -34,7 +34,7 @@ impl EFISdt32 {
3434}
3535
3636#[ cfg( feature = "builder" ) ]
37- impl StructAsBytes for EFISdt32 {
37+ impl StructAsBytes for EFISdt32Tag {
3838 fn byte_size ( & self ) -> usize {
3939 size_of :: < Self > ( )
4040 }
@@ -43,13 +43,13 @@ impl StructAsBytes for EFISdt32 {
4343/// EFI system table in 64 bit mode
4444#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
4545#[ repr( C ) ]
46- pub struct EFISdt64 {
46+ pub struct EFISdt64Tag {
4747 typ : TagTypeId ,
4848 size : u32 ,
4949 pointer : u64 ,
5050}
5151
52- impl EFISdt64 {
52+ impl EFISdt64Tag {
5353 /// Create a new tag to pass the EFI64 System Table pointer.
5454 pub fn new ( pointer : u64 ) -> Self {
5555 Self {
@@ -66,7 +66,7 @@ impl EFISdt64 {
6666}
6767
6868#[ cfg( feature = "builder" ) ]
69- impl StructAsBytes for EFISdt64 {
69+ impl StructAsBytes for EFISdt64Tag {
7070 fn byte_size ( & self ) -> usize {
7171 size_of :: < Self > ( )
7272 }
@@ -140,19 +140,19 @@ impl StructAsBytes for EFIImageHandle64Tag {
140140
141141#[ cfg( all( test, feature = "builder" ) ) ]
142142mod tests {
143- use super :: { EFIImageHandle32Tag , EFIImageHandle64Tag , EFISdt32 , EFISdt64 } ;
143+ use super :: { EFIImageHandle32Tag , EFIImageHandle64Tag , EFISdt32Tag , EFISdt64Tag } ;
144144
145145 const ADDR : usize = 0xABCDEF ;
146146
147147 #[ test]
148148 fn test_build_eftsdt32 ( ) {
149- let tag = EFISdt32 :: new ( ADDR . try_into ( ) . unwrap ( ) ) ;
149+ let tag = EFISdt32Tag :: new ( ADDR . try_into ( ) . unwrap ( ) ) ;
150150 assert_eq ! ( tag. sdt_address( ) , ADDR ) ;
151151 }
152152
153153 #[ test]
154154 fn test_build_eftsdt64 ( ) {
155- let tag = EFISdt64 :: new ( ADDR . try_into ( ) . unwrap ( ) ) ;
155+ let tag = EFISdt64Tag :: new ( ADDR . try_into ( ) . unwrap ( ) ) ;
156156 assert_eq ! ( tag. sdt_address( ) , ADDR ) ;
157157 }
158158
0 commit comments