Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 84d19a1

Browse files
fixed param type issues
1 parent a47ae95 commit 84d19a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎uefi-raw/src/protocol/iommu.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT OR Apache-2.0
22

3-
use crate::table::boot::MemoryType;
3+
use crate::table::boot::{AllocateType,MemoryType};
44
use crate::{Guid, Handle, Status, guid};
55
use bitflags::bitflags;
66
use core::ffi::c_void;
@@ -20,7 +20,7 @@ pub struct EdkiiIommuProtocol {
2020
this: *const Self,
2121
device_handle: Handle,
2222
mapping: *mut c_void,
23-
iommu_access: u64,
23+
iommu_access: EdkiiIommuAccess,
2424
) -> Status,
2525
pub map: unsafe extern "efiapi" fn(
2626
this: *const Self,
@@ -33,11 +33,11 @@ pub struct EdkiiIommuProtocol {
3333
pub unmap: unsafe extern "efiapi" fn(this: *const Self, mapping: *mut c_void) -> Status,
3434
pub allocate_buffer: unsafe extern "efiapi" fn(
3535
this: *const Self,
36-
allocate_type: u32,
36+
allocate_type: AllocateType,
3737
memory_type: MemoryType,
3838
pages: usize,
3939
host_address: *mut *mut c_void,
40-
attributes: u64,
40+
attributes: EdkiiIommuAttribute,
4141
) -> Status,
4242
pub free_buffer: unsafe extern "efiapi" fn(
4343
this: *const Self,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /