@@ -12,7 +12,7 @@ newtype_enum! {
1212 }
1313}
1414
15- #[ derive( Debug ) ]
15+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
1616#[ repr( C ) ]
1717pub struct DeviceRequest {
1818 pub request_type : u8 ,
@@ -22,7 +22,7 @@ pub struct DeviceRequest {
2222 pub length : u16 ,
2323}
2424
25- #[ derive( Default , Debug ) ]
25+ #[ derive( Clone , Copy , Debug , Default , PartialEq , Eq ) ]
2626#[ repr( transparent) ]
2727pub struct UsbTransferStatus ( pub u32 ) ;
2828
@@ -33,7 +33,7 @@ pub type AsyncUsbTransferCallback = unsafe extern "efiapi" fn(
3333 status : UsbTransferStatus ,
3434) -> Status ;
3535
36- #[ derive( Debug ) ]
36+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
3737#[ repr( C ) ]
3838pub struct DeviceDescriptor {
3939 pub length : u8 ,
@@ -52,7 +52,7 @@ pub struct DeviceDescriptor {
5252 pub num_configurations : u8 ,
5353}
5454
55- #[ derive( Debug ) ]
55+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
5656#[ repr( C ) ]
5757pub struct ConfigDescriptor {
5858 pub length : u8 ,
@@ -65,7 +65,7 @@ pub struct ConfigDescriptor {
6565 pub max_power : u8 ,
6666}
6767
68- #[ derive( Debug ) ]
68+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
6969#[ repr( C ) ]
7070pub struct InterfaceDescriptor {
7171 pub length : u8 ,
@@ -79,7 +79,7 @@ pub struct InterfaceDescriptor {
7979 pub interface : u8 ,
8080}
8181
82- #[ derive( Debug ) ]
82+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
8383#[ repr( C ) ]
8484pub struct EndpointDescriptor {
8585 pub length : u8 ,
@@ -106,8 +106,8 @@ pub struct UsbIoProtocol {
106106 this : * mut Self ,
107107 device_endpoint : u8 ,
108108 data : * mut ffi:: c_void ,
109- data_length : usize ,
110- timeout : u32 ,
109+ data_length : * mut usize ,
110+ timeout : usize ,
111111 status : * mut UsbTransferStatus ,
112112 ) -> Status ,
113113 pub async_interrupt_transfer : unsafe extern "efiapi" fn (
0 commit comments