@@ -23,11 +23,12 @@ impl BlockIO {
2323 /// Resets the block device hardware.
2424 ///
2525 /// # Arguments
26- /// * `extended_verification` Indicates that the driver may perform a more exhaustive verification operation of
27- /// the device during reset.
26+ /// * `extended_verification` Indicates that the driver may perform a more
27+ /// exhaustive verification operation of the device during reset.
2828 ///
2929 /// # Errors
30- /// * `uefi::Status::DEVICE_ERROR` The block device is not functioning correctly and could not be reset.
30+ /// * `uefi::Status::DEVICE_ERROR` The block device is not functioning
31+ /// correctly and could not be reset.
3132 pub fn reset ( & mut self , extended_verification : bool ) -> Result {
3233 unsafe { ( self . 0 . reset ) ( & mut self . 0 , extended_verification. into ( ) ) } . to_result ( )
3334 }
@@ -41,13 +42,13 @@ impl BlockIO {
4142 ///
4243 /// # Errors
4344 /// * `uefi::Status::DEVICE_ERROR` The device reported an error while attempting to perform the read
44- /// operation.
45+ /// operation.
4546 /// * `uefi::Status::NO_MEDIA` There is no media in the device.
4647 /// * `uefi::Status::MEDIA_CHANGED` The `media_id` is not for the current media.
4748 /// * `uefi::Status::BAD_BUFFER_SIZE` The buffer size parameter is not a multiple of the intrinsic block size of
48- /// the device.
49+ /// the device.
4950 /// * `uefi::Status::INVALID_PARAMETER` The read request contains LBAs that are not valid, or the buffer is not on
50- /// proper alignment.
51+ /// proper alignment.
5152 pub fn read_blocks ( & self , media_id : u32 , lba : Lba , buffer : & mut [ u8 ] ) -> Result {
5253 let buffer_size = buffer. len ( ) ;
5354 unsafe {
@@ -74,11 +75,11 @@ impl BlockIO {
7475 /// * `uefi::Status::NO_MEDIA` There is no media in the device.
7576 /// * `uefi::Status::MEDIA_CHANGED` The `media_id` is not for the current media.
7677 /// * `uefi::Status::DEVICE_ERROR` The device reported an error while attempting to perform the write
77- /// operation.
78+ /// operation.
7879 /// * `uefi::Status::BAD_BUFFER_SIZE` The buffer size parameter is not a multiple of the intrinsic block size
79- /// of the device.
80+ /// of the device.
8081 /// * `uefi::Status::INVALID_PARAMETER` The write request contains LBAs that are not valid, or the buffer is not
81- /// on proper alignment.
82+ /// on proper alignment.
8283 pub fn write_blocks ( & mut self , media_id : u32 , lba : Lba , buffer : & [ u8 ] ) -> Result {
8384 let buffer_size = buffer. len ( ) ;
8485 unsafe {
0 commit comments