Struct simics_api_sys::memory_space_interface
source · #[repr(C)]pub struct memory_space_interface {
pub space_lookup: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mop: *mut generic_transaction_t, mapinfo: map_info_t) -> *mut map_list_t>,
pub access: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mop: *mut generic_transaction_t) -> exception_type_t>,
pub access_simple: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, buf: *mut uint8, len: physical_address_t, type_: read_or_write_t, endian: endianness_t) -> exception_type_t>,
pub access_simple_inq: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, buf: *mut uint8, len: physical_address_t, type_: read_or_write_t, endian: endianness_t) -> exception_type_t>,
pub read: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, length: c_int, inquiry: c_int) -> attr_value_t>,
pub write: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, data: attr_value_t, inquiry: c_int) -> exception_type_t>,
pub timing_model_operate: Option<unsafe extern "C" fn(space: *mut conf_object_t, mop: *mut generic_transaction_t) -> cycles_t>,
pub fill: Option<unsafe extern "C" fn(obj: *mut conf_object_t, start: physical_address_t, size: uint64, value: uint8, inquiry: bool) -> uint64>,
}
Fields§
§space_lookup: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mop: *mut generic_transaction_t, mapinfo: map_info_t) -> *mut map_list_t>
§access: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mop: *mut generic_transaction_t) -> exception_type_t>
§access_simple: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, buf: *mut uint8, len: physical_address_t, type_: read_or_write_t, endian: endianness_t) -> exception_type_t>
§access_simple_inq: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, buf: *mut uint8, len: physical_address_t, type_: read_or_write_t, endian: endianness_t) -> exception_type_t>
§read: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, length: c_int, inquiry: c_int) -> attr_value_t>
§write: Option<unsafe extern "C" fn(obj: *mut conf_object_t, initiator: *mut conf_object_t, addr: physical_address_t, data: attr_value_t, inquiry: c_int) -> exception_type_t>
§timing_model_operate: Option<unsafe extern "C" fn(space: *mut conf_object_t, mop: *mut generic_transaction_t) -> cycles_t>
§fill: Option<unsafe extern "C" fn(obj: *mut conf_object_t, start: physical_address_t, size: uint64, value: uint8, inquiry: bool) -> uint64>
Trait Implementations§
source§impl Clone for memory_space_interface
impl Clone for memory_space_interface
source§fn clone(&self) -> memory_space_interface
fn clone(&self) -> memory_space_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 memory_space_interface
impl Debug for memory_space_interface
source§impl Default for memory_space_interface
impl Default for memory_space_interface
source§fn default() -> memory_space_interface
fn default() -> memory_space_interface
Returns the “default value” for a type. Read more
source§impl Hash for memory_space_interface
impl Hash for memory_space_interface
source§impl Ord for memory_space_interface
impl Ord for memory_space_interface
source§fn cmp(&self, other: &memory_space_interface) -> Ordering
fn cmp(&self, other: &memory_space_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 memory_space_interface
impl PartialEq for memory_space_interface
source§impl PartialOrd for memory_space_interface
impl PartialOrd for memory_space_interface
impl Copy for memory_space_interface
impl Eq for memory_space_interface
impl StructuralPartialEq for memory_space_interface
Auto Trait Implementations§
impl Freeze for memory_space_interface
impl RefUnwindSafe for memory_space_interface
impl Send for memory_space_interface
impl Sync for memory_space_interface
impl Unpin for memory_space_interface
impl UnwindSafe for memory_space_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
)