Fields

revision: u64,
media: *EfiBlockMedia,
_reset: *const fn (*BlockIoProtocol, bool) callconv(cc) Status,
_read_blocks: *const fn (*BlockIoProtocol, u32, u64, usize, [*]u8) callconv(cc) Status,
_write_blocks: *const fn (*BlockIoProtocol, u32, u64, usize, [*]u8) callconv(cc) Status,
_flush_blocks: *const fn (*BlockIoProtocol) callconv(cc) Status,

Functions

fn flushBlocks(self: *Self) Status

Flushes all modified data to a physical block device.

fn readBlocks(self: *Self, media_id: u32, lba: u64, buffer_size: usize, buf: [*]u8) Status

Reads the number of requested blocks from the device.

fn reset(self: *Self, extended_verification: bool) Status

Resets the block device hardware.

fn writeBlocks(self: *Self, media_id: u32, lba: u64, buffer_size: usize, buf: [*]u8) Status

Writes a specified number of blocks to the device.

Values