Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot from memory device path #305

9 changes: 1 addition & 8 deletions src/efi/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,12 @@ use core::ffi::c_void;
use r_efi::{
efi::{self, Char16, Guid, Status},
protocols::{
device_path::Protocol as DevicePathProtocol, file::Protocol as FileProtocol,
simple_file_system::Protocol as SimpleFileSystemProtocol,
file::Protocol as FileProtocol, simple_file_system::Protocol as SimpleFileSystemProtocol,
},
};

use crate::block::SectorBuf;

#[repr(C)]
pub struct FileDevicePathProtocol {
pub device_path: DevicePathProtocol,
pub filename: [u16; 64],
}

pub extern "efiapi" fn filesystem_open_volume(
fs_proto: *mut SimpleFileSystemProtocol,
file: *mut *mut FileProtocol,
Expand Down
Loading
Loading