Skip to main content

PciRootBridgeIoProtocol

Struct PciRootBridgeIoProtocol 

Source
#[repr(C)]
pub struct PciRootBridgeIoProtocol {
Show 16 fields pub parent_handle: Handle, pub poll_mem: unsafe extern "efiapi" fn(this: *mut Self, width: PciRootBridgeIoProtocolWidth, address: u64, mask: u64, value: u64, delay: u64, result: *mut u64) -> Status, pub poll_io: unsafe extern "efiapi" fn(this: *mut Self, width: PciRootBridgeIoProtocolWidth, address: u64, mask: u64, value: u64, delay: u64, result: *mut u64) -> Status, pub mem: PciRootBridgeIoAccess, pub io: PciRootBridgeIoAccess, pub pci: PciRootBridgeIoAccess, pub copy_mem: unsafe extern "efiapi" fn(this: *mut Self, width: PciRootBridgeIoProtocolWidth, dest_addr: u64, src_addr: u64, count: usize) -> Status, pub map: unsafe extern "efiapi" fn(this: *const Self, operation: PciRootBridgeIoProtocolOperation, host_addr: *const c_void, num_bytes: *mut usize, device_addr: *mut PhysicalAddress, mapping: *mut *mut c_void) -> Status, pub unmap: unsafe extern "efiapi" fn(this: *const Self, mapping: *const c_void) -> Status, pub allocate_buffer: unsafe extern "efiapi" fn(this: *const Self, alloc_ty: AllocateType, memory_ty: MemoryType, pages: usize, host_addr: *mut *const c_void, attributes: u64) -> Status, pub free_buffer: unsafe extern "efiapi" fn(this: *const Self, pages: usize, host_addr: *const c_void) -> Status, pub flush: unsafe extern "efiapi" fn(this: *mut Self) -> Status, pub get_attributes: unsafe extern "efiapi" fn(this: *const Self, supports: *mut u64, attributes: *mut u64) -> Status, pub set_attributes: unsafe extern "efiapi" fn(this: *mut Self, attributes: u64, resource_base: *mut u64, resource_length: *mut u64) -> Status, pub configuration: unsafe extern "efiapi" fn(this: *const Self, resources: *mut *const c_void) -> Status, pub segment_number: u32,
}

Fields§

§parent_handle: Handle§poll_mem: unsafe extern "efiapi" fn(this: *mut Self, width: PciRootBridgeIoProtocolWidth, address: u64, mask: u64, value: u64, delay: u64, result: *mut u64) -> Status§poll_io: unsafe extern "efiapi" fn(this: *mut Self, width: PciRootBridgeIoProtocolWidth, address: u64, mask: u64, value: u64, delay: u64, result: *mut u64) -> Status§mem: PciRootBridgeIoAccess§io: PciRootBridgeIoAccess§pci: PciRootBridgeIoAccess§copy_mem: unsafe extern "efiapi" fn(this: *mut Self, width: PciRootBridgeIoProtocolWidth, dest_addr: u64, src_addr: u64, count: usize) -> Status§map: unsafe extern "efiapi" fn(this: *const Self, operation: PciRootBridgeIoProtocolOperation, host_addr: *const c_void, num_bytes: *mut usize, device_addr: *mut PhysicalAddress, mapping: *mut *mut c_void) -> Status§unmap: unsafe extern "efiapi" fn(this: *const Self, mapping: *const c_void) -> Status§allocate_buffer: unsafe extern "efiapi" fn(this: *const Self, alloc_ty: AllocateType, memory_ty: MemoryType, pages: usize, host_addr: *mut *const c_void, attributes: u64) -> Status§free_buffer: unsafe extern "efiapi" fn(this: *const Self, pages: usize, host_addr: *const c_void) -> Status§flush: unsafe extern "efiapi" fn(this: *mut Self) -> Status§get_attributes: unsafe extern "efiapi" fn(this: *const Self, supports: *mut u64, attributes: *mut u64) -> Status§set_attributes: unsafe extern "efiapi" fn(this: *mut Self, attributes: u64, resource_base: *mut u64, resource_length: *mut u64) -> Status§configuration: unsafe extern "efiapi" fn(this: *const Self, resources: *mut *const c_void) -> Status§segment_number: u32

Implementations§

Trait Implementations§

Source§

impl Debug for PciRootBridgeIoProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Send for PciRootBridgeIoProtocol

§

impl !Sync for PciRootBridgeIoProtocol

§

impl Freeze for PciRootBridgeIoProtocol

§

impl RefUnwindSafe for PciRootBridgeIoProtocol

§

impl Unpin for PciRootBridgeIoProtocol

§

impl UnsafeUnpin for PciRootBridgeIoProtocol

§

impl UnwindSafe for PciRootBridgeIoProtocol

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.