Struct simics::api::interface::interfaces::RamInterface
source · pub struct RamInterface {
obj: *mut ConfObject,
interface: *mut ram_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut ram_interface
Implementations§
source§impl RamInterface
impl RamInterface
sourcepub fn get_page(&mut self, addr: physical_address_t) -> Result<*mut page_t>
pub fn get_page(&mut self, addr: physical_address_t) -> Result<*mut page_t>
Automatically generated method for the interface
sourcepub fn fill(
&mut self,
start: physical_address_t,
length: uint64,
value: uint8,
) -> Result<()>
pub fn fill( &mut self, start: physical_address_t, length: uint64, value: uint8, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn read(
&mut self,
initiator: *mut conf_object_t,
addr: uint64,
data: buffer_t,
flags: ram_operation_flags_t,
) -> Result<exception_type_t>
pub fn read( &mut self, initiator: *mut conf_object_t, addr: uint64, data: buffer_t, flags: ram_operation_flags_t, ) -> Result<exception_type_t>
Automatically generated method for the interface
sourcepub fn write(
&mut self,
initiator: *mut conf_object_t,
addr: uint64,
data: bytes_t,
flags: ram_operation_flags_t,
) -> Result<exception_type_t>
pub fn write( &mut self, initiator: *mut conf_object_t, addr: uint64, data: bytes_t, flags: ram_operation_flags_t, ) -> Result<exception_type_t>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for RamInterface
impl Interface for RamInterface
source§type InternalInterface = ram_interface
type InternalInterface = ram_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 RamInterface
impl RefUnwindSafe for RamInterface
impl !Send for RamInterface
impl !Sync for RamInterface
impl Unpin for RamInterface
impl UnwindSafe for RamInterface
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