diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-03-04 19:59:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-05 16:28:06 +0100 |
commit | b1035615238233c2b95ad9b7bfb3b6bde60b8188 (patch) | |
tree | 46572db9f90d0e534807757056b749baaaa8712b /drivers/block/efi-block-io.c | |
parent | 069bf5f7dd0f5cf7287700a12afed098a7901535 (diff) | |
download | barebox-b1035615238233c2b95ad9b7bfb3b6bde60b8188.tar.gz barebox-b1035615238233c2b95ad9b7bfb3b6bde60b8188.tar.xz |
efi: block: move definitions into header file
We will need these definitions for the EFI loader as well, so move them
into a header.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240304190038.3486881-68-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/block/efi-block-io.c')
-rw-r--r-- | drivers/block/efi-block-io.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/block/efi-block-io.c b/drivers/block/efi-block-io.c index 810b6da32d..876b46c2d7 100644 --- a/drivers/block/efi-block-io.c +++ b/drivers/block/efi-block-io.c @@ -19,33 +19,6 @@ #define EFI_BLOCK_IO_PROTOCOL_REVISION2 0x00020001 #define EFI_BLOCK_IO_PROTOCOL_REVISION3 ((2<<16) | (31)) -struct efi_block_io_media{ - u32 media_id; - bool removable_media; - bool media_present; - bool logical_partition; - bool read_only; - bool write_caching; - u32 block_size; - u32 io_align; - sector_t last_block; - u64 lowest_aligned_lba; /* added in Revision 2 */ - u32 logical_blocks_per_physical_block; /* added in Revision 2 */ - u32 optimal_transfer_length_granularity; /* added in Revision 3 */ -}; - -struct efi_block_io_protocol { - u64 revision; - struct efi_block_io_media *media; - efi_status_t(EFIAPI *reset)(struct efi_block_io_protocol *this, - bool ExtendedVerification); - efi_status_t(EFIAPI *read)(struct efi_block_io_protocol *this, u32 media_id, - u64 lba, unsigned long buffer_size, void *buf); - efi_status_t(EFIAPI *write)(struct efi_block_io_protocol *this, u32 media_id, - u64 lba, unsigned long buffer_size, void *buf); - efi_status_t(EFIAPI *flush)(struct efi_block_io_protocol *this); -}; - struct efi_bio_priv { struct efi_block_io_protocol *protocol; struct device *dev; |