Struct simics_api_sys::rapidio_v3_interface
source · #[repr(C)]pub struct rapidio_v3_interface {
pub memory_operation: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, addr: physical_address_t, buf: *mut dbuffer_t, op: rapidio_operation_t)>,
pub doorbell: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, data: uint16)>,
pub deliver_message: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, mbox: uint16, letter: uint16, data: *mut dbuffer_t)>,
pub read_register: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, hopcount: uint8, reg_no: c_int) -> uint32>,
pub write_register: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, hopcount: uint8, reg_no: c_int, value: uint32)>,
pub port_write: Option<unsafe extern "C" fn(obj: *mut conf_object_t, target_id: uint16, source_id: uint16, hopcount: uint8, msg: *mut dbuffer_t)>,
}
Fields§
§memory_operation: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, addr: physical_address_t, buf: *mut dbuffer_t, op: rapidio_operation_t)>
§doorbell: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, data: uint16)>
§deliver_message: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, mbox: uint16, letter: uint16, data: *mut dbuffer_t)>
§read_register: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, hopcount: uint8, reg_no: c_int) -> uint32>
§write_register: Option<unsafe extern "C" fn(obj: *mut conf_object_t, destination: uint16, source: uint16, hopcount: uint8, reg_no: c_int, value: uint32)>
§port_write: Option<unsafe extern "C" fn(obj: *mut conf_object_t, target_id: uint16, source_id: uint16, hopcount: uint8, msg: *mut dbuffer_t)>
Trait Implementations§
source§impl Clone for rapidio_v3_interface
impl Clone for rapidio_v3_interface
source§fn clone(&self) -> rapidio_v3_interface
fn clone(&self) -> rapidio_v3_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for rapidio_v3_interface
impl Debug for rapidio_v3_interface
source§impl Default for rapidio_v3_interface
impl Default for rapidio_v3_interface
source§fn default() -> rapidio_v3_interface
fn default() -> rapidio_v3_interface
Returns the “default value” for a type. Read more
source§impl Hash for rapidio_v3_interface
impl Hash for rapidio_v3_interface
source§impl Ord for rapidio_v3_interface
impl Ord for rapidio_v3_interface
source§fn cmp(&self, other: &rapidio_v3_interface) -> Ordering
fn cmp(&self, other: &rapidio_v3_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for rapidio_v3_interface
impl PartialEq for rapidio_v3_interface
source§impl PartialOrd for rapidio_v3_interface
impl PartialOrd for rapidio_v3_interface
impl Copy for rapidio_v3_interface
impl Eq for rapidio_v3_interface
impl StructuralPartialEq for rapidio_v3_interface
Auto Trait Implementations§
impl Freeze for rapidio_v3_interface
impl RefUnwindSafe for rapidio_v3_interface
impl Send for rapidio_v3_interface
impl Sync for rapidio_v3_interface
impl Unpin for rapidio_v3_interface
impl UnwindSafe for rapidio_v3_interface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)