Skip to content

Commit e960121

Browse files
Move Lba type to uefi-raw
1 parent 7549b11 commit e960121

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

uefi-raw/src/protocol/block.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// Logical block address.
2+
pub type Lba = u64;

uefi-raw/src/protocol/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//! ID. They can be implemented by a UEFI driver or occasionally by a
55
//! UEFI application.
66
7+
pub mod block;
78
pub mod console;
89
pub mod device_path;
910
pub mod disk;

uefi/src/proto/media/block.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
use crate::proto::unsafe_protocol;
44
use crate::{Result, Status, StatusExt};
55

6+
pub use uefi_raw::protocol::block::Lba;
7+
68
/// The Block I/O protocol.
79
#[repr(C)]
810
#[unsafe_protocol("964e5b21-6459-11d2-8e39-00a0c969723b")]
@@ -100,9 +102,6 @@ impl BlockIO {
100102
}
101103
}
102104

103-
/// EFI LBA type
104-
pub type Lba = u64;
105-
106105
/// Media information structure
107106
#[repr(C)]
108107
#[derive(Debug)]

0 commit comments

Comments
 (0)