Struct simics_api_sys::bindings::riscv_imsic_interface
source · #[repr(C)]pub struct riscv_imsic_interface {
pub num_guest_files: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint32>,
pub read_irq_file: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t, offset: uint32) -> uint64>,
pub read_and_write_irq_file: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t, offset: uint32, new_value: uint64, mask: uint64) -> uint64>,
pub read_xtopei: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t) -> uint64>,
pub read_and_write_xtopei: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t, value: uint64, mask: uint64) -> uint64>,
}
Fields§
§num_guest_files: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint32>
GEILEN
read_irq_file: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t, offset: uint32) -> uint64>
id is either one of the standard files, machine or supervisor, or one of the guest files (vgein).
read_and_write_irq_file: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t, offset: uint32, new_value: uint64, mask: uint64) -> uint64>
§read_xtopei: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t) -> uint64>
§read_and_write_xtopei: Option<unsafe extern "C" fn(obj: *mut conf_object_t, id: riscv_imsic_file_id_t, value: uint64, mask: uint64) -> uint64>
Trait Implementations§
source§impl Clone for riscv_imsic_interface
impl Clone for riscv_imsic_interface
source§fn clone(&self) -> riscv_imsic_interface
fn clone(&self) -> riscv_imsic_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 riscv_imsic_interface
impl Debug for riscv_imsic_interface
source§impl Default for riscv_imsic_interface
impl Default for riscv_imsic_interface
source§fn default() -> riscv_imsic_interface
fn default() -> riscv_imsic_interface
Returns the “default value” for a type. Read more
source§impl Hash for riscv_imsic_interface
impl Hash for riscv_imsic_interface
source§impl Ord for riscv_imsic_interface
impl Ord for riscv_imsic_interface
source§fn cmp(&self, other: &riscv_imsic_interface) -> Ordering
fn cmp(&self, other: &riscv_imsic_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 riscv_imsic_interface
impl PartialEq for riscv_imsic_interface
source§impl PartialOrd for riscv_imsic_interface
impl PartialOrd for riscv_imsic_interface
impl Copy for riscv_imsic_interface
impl Eq for riscv_imsic_interface
impl StructuralPartialEq for riscv_imsic_interface
Auto Trait Implementations§
impl Freeze for riscv_imsic_interface
impl RefUnwindSafe for riscv_imsic_interface
impl Send for riscv_imsic_interface
impl Sync for riscv_imsic_interface
impl Unpin for riscv_imsic_interface
impl UnwindSafe for riscv_imsic_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
)