@@ -23,11 +23,12 @@ impl BlockIO {
23
23
/// Resets the block device hardware.
24
24
///
25
25
/// # 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.
28
28
///
29
29
/// # 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.
31
32
pub fn reset ( & mut self , extended_verification : bool ) -> Result {
32
33
unsafe { ( self . 0 . reset ) ( & mut self . 0 , extended_verification. into ( ) ) } . to_result ( )
33
34
}
@@ -41,13 +42,13 @@ impl BlockIO {
41
42
///
42
43
/// # Errors
43
44
/// * `uefi::Status::DEVICE_ERROR` The device reported an error while attempting to perform the read
44
- /// operation.
45
+ /// operation.
45
46
/// * `uefi::Status::NO_MEDIA` There is no media in the device.
46
47
/// * `uefi::Status::MEDIA_CHANGED` The `media_id` is not for the current media.
47
48
/// * `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.
49
50
/// * `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.
51
52
pub fn read_blocks ( & self , media_id : u32 , lba : Lba , buffer : & mut [ u8 ] ) -> Result {
52
53
let buffer_size = buffer. len ( ) ;
53
54
unsafe {
@@ -74,11 +75,11 @@ impl BlockIO {
74
75
/// * `uefi::Status::NO_MEDIA` There is no media in the device.
75
76
/// * `uefi::Status::MEDIA_CHANGED` The `media_id` is not for the current media.
76
77
/// * `uefi::Status::DEVICE_ERROR` The device reported an error while attempting to perform the write
77
- /// operation.
78
+ /// operation.
78
79
/// * `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.
80
81
/// * `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.
82
83
pub fn write_blocks ( & mut self , media_id : u32 , lba : Lba , buffer : & [ u8 ] ) -> Result {
83
84
let buffer_size = buffer. len ( ) ;
84
85
unsafe {
0 commit comments