Skip to content

Commit e2fb2ca

Browse files
authored
Merge branch 'main' into Iommu
2 parents 7df462e + 2da288d commit e2fb2ca

File tree

20 files changed

+333
-76
lines changed

20 files changed

+333
-76
lines changed

Cargo.lock

Lines changed: 58 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uefi-raw/src/protocol/acpi.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
3+
use crate::{Guid, Status, guid};
4+
use core::ffi::c_void;
5+
6+
#[derive(Clone, Copy, Debug)]
7+
#[repr(C)]
8+
pub struct AcpiTableProtocol {
9+
pub install_acpi_table: unsafe extern "efiapi" fn(
10+
this: *const Self,
11+
acpi_table_buffer: *const c_void,
12+
acpi_table_size: usize,
13+
table_key: *mut usize,
14+
) -> Status,
15+
pub uninstall_acpi_table:
16+
unsafe extern "efiapi" fn(this: *const Self, table_key: usize) -> Status,
17+
}
18+
19+
impl AcpiTableProtocol {
20+
pub const GUID: Guid = guid!("ffe06bdd-6107-46a6-7bb2-5a9c7ec5275c");
21+
}

uefi-raw/src/protocol/device_path.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,12 @@ impl DevicePathUtilitiesProtocol {
304304
#[cfg(test)]
305305
mod tests {
306306
use super::*;
307-
use core::mem;
308307

309308
/// Test that ensures the struct is packed. Thus, we don't need to
310309
/// explicitly specify `packed`.
311310
#[test]
312311
fn abi() {
313-
assert_eq!(mem::size_of::<DevicePathProtocol>(), 4);
314-
assert_eq!(mem::align_of::<DevicePathProtocol>(), 1);
312+
assert_eq!(size_of::<DevicePathProtocol>(), 4);
313+
assert_eq!(align_of::<DevicePathProtocol>(), 1);
315314
}
316315
}

0 commit comments

Comments
 (0)