Struct simics::api::interface::interfaces::RapidioV3Interface
source · pub struct RapidioV3Interface {
obj: *mut ConfObject,
interface: *mut rapidio_v3_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut rapidio_v3_interface
Implementations§
source§impl RapidioV3Interface
impl RapidioV3Interface
sourcepub fn memory_operation(
&mut self,
destination: uint16,
source: uint16,
addr: physical_address_t,
buf: *mut dbuffer_t,
op: rapidio_operation_t,
) -> Result<()>
pub fn memory_operation( &mut self, destination: uint16, source: uint16, addr: physical_address_t, buf: *mut dbuffer_t, op: rapidio_operation_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn doorbell(
&mut self,
destination: uint16,
source: uint16,
data: uint16,
) -> Result<()>
pub fn doorbell( &mut self, destination: uint16, source: uint16, data: uint16, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn deliver_message(
&mut self,
destination: uint16,
source: uint16,
mbox: uint16,
letter: uint16,
data: *mut dbuffer_t,
) -> Result<()>
pub fn deliver_message( &mut self, destination: uint16, source: uint16, mbox: uint16, letter: uint16, data: *mut dbuffer_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn read_register(
&mut self,
destination: uint16,
source: uint16,
hopcount: uint8,
reg_no: c_int,
) -> Result<uint32>
pub fn read_register( &mut self, destination: uint16, source: uint16, hopcount: uint8, reg_no: c_int, ) -> Result<uint32>
Automatically generated method for the interface
sourcepub fn write_register(
&mut self,
destination: uint16,
source: uint16,
hopcount: uint8,
reg_no: c_int,
value: uint32,
) -> Result<()>
pub fn write_register( &mut self, destination: uint16, source: uint16, hopcount: uint8, reg_no: c_int, value: uint32, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn port_write(
&mut self,
target_id: uint16,
source_id: uint16,
hopcount: uint8,
msg: *mut dbuffer_t,
) -> Result<()>
pub fn port_write( &mut self, target_id: uint16, source_id: uint16, hopcount: uint8, msg: *mut dbuffer_t, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for RapidioV3Interface
impl Interface for RapidioV3Interface
source§type InternalInterface = rapidio_v3_interface
type InternalInterface = rapidio_v3_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for RapidioV3Interface
impl RefUnwindSafe for RapidioV3Interface
impl !Send for RapidioV3Interface
impl !Sync for RapidioV3Interface
impl Unpin for RapidioV3Interface
impl UnwindSafe for RapidioV3Interface
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