Struct simics::api::interface::interfaces::RapidioV4Interface
source · pub struct RapidioV4Interface {
obj: *mut ConfObject,
interface: *mut rapidio_v4_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut rapidio_v4_interface
Implementations§
source§impl RapidioV4Interface
impl RapidioV4Interface
sourcepub fn transaction_request(
&mut self,
target_id: uint16,
source_id: uint16,
addr: uint64,
op: rapidio_operation_t,
msg: bytes_t,
id: uint64,
) -> Result<()>
pub fn transaction_request( &mut self, target_id: uint16, source_id: uint16, addr: uint64, op: rapidio_operation_t, msg: bytes_t, id: uint64, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn transaction_response(&mut self, msg: bytes_t, id: uint64) -> Result<()>
pub fn transaction_response(&mut self, msg: bytes_t, id: uint64) -> Result<()>
Automatically generated method for the interface
sourcepub fn doorbell(
&mut self,
target_id: uint16,
source_id: uint16,
val: uint16,
) -> Result<()>
pub fn doorbell( &mut self, target_id: uint16, source_id: uint16, val: uint16, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn deliver_message(
&mut self,
target_id: uint16,
source_id: uint16,
mbox: uint16,
letter: uint16,
msg: bytes_t,
) -> Result<()>
pub fn deliver_message( &mut self, target_id: uint16, source_id: uint16, mbox: uint16, letter: uint16, msg: bytes_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn read_register_request(
&mut self,
target_id: uint16,
source_id: uint16,
hopcount: uint8,
reg_no: uint32,
id: uint64,
) -> Result<()>
pub fn read_register_request( &mut self, target_id: uint16, source_id: uint16, hopcount: uint8, reg_no: uint32, id: uint64, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn read_register_response(&mut self, val: uint32, id: uint64) -> Result<()>
pub fn read_register_response(&mut self, val: uint32, id: uint64) -> Result<()>
Automatically generated method for the interface
sourcepub fn write_register(
&mut self,
target_id: uint16,
source_id: uint16,
hopcount: uint8,
reg_no: uint32,
val: uint32,
) -> Result<()>
pub fn write_register( &mut self, target_id: uint16, source_id: uint16, hopcount: uint8, reg_no: uint32, val: uint32, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn port_write(
&mut self,
target_id: uint16,
source_id: uint16,
hopcount: uint8,
msg: bytes_t,
) -> Result<()>
pub fn port_write( &mut self, target_id: uint16, source_id: uint16, hopcount: uint8, msg: bytes_t, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for RapidioV4Interface
impl Interface for RapidioV4Interface
source§type InternalInterface = rapidio_v4_interface
type InternalInterface = rapidio_v4_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 RapidioV4Interface
impl RefUnwindSafe for RapidioV4Interface
impl !Send for RapidioV4Interface
impl !Sync for RapidioV4Interface
impl Unpin for RapidioV4Interface
impl UnwindSafe for RapidioV4Interface
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