Struct simics_api_sys::generic_transaction

source ·
#[repr(C)]
pub struct generic_transaction {
Show 16 fields pub logical_address: logical_address_t, pub physical_address: physical_address_t, pub size: c_uint, pub type_: mem_op_type_t, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub block_flags: c_uint, pub ini_type: ini_type_t, pub ini_ptr: *mut conf_object_t, pub exception: exception_type_t, pub user_ptr: *mut c_void, pub real_address: *mut uint8, pub space_count: c_int, pub transaction: *mut transaction, pub reserved: *mut page_t, pub reserved2: c_uint,
}
Expand description
generic_transaction_t generic_transaction_t

generic_transaction_t

A generic_transaction_t represents a memory transaction. It should only be accessed via the accessor functions documented in Device API Functions, Core, Memory Transactions.

Fields§

§logical_address: logical_address_t§physical_address: physical_address_t§size: c_uint

size in bytes

§type_: mem_op_type_t

opaque

§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§block_flags: c_uint

what we wish to block from caching

§ini_type: ini_type_t

cpu, device, or other

§ini_ptr: *mut conf_object_t§exception: exception_type_t

set if memhier throws exception, otherwise Sim_PE_No_Exception

§user_ptr: *mut c_void

user pointer that Simics never touches

§real_address: *mut uint8

data pointer for the initiator

§space_count: c_int

internal, # of memory space transitions

§transaction: *mut transaction§reserved: *mut page_t

no longer used

§reserved2: c_uint

no longer used

Implementations§

source§

impl generic_transaction

source

pub fn atomic(&self) -> c_uint

source

pub fn set_atomic(&mut self, val: c_uint)

source

pub fn inquiry(&self) -> c_uint

source

pub fn set_inquiry(&mut self, val: c_uint)

source

pub fn non_coherent(&self) -> c_uint

source

pub fn set_non_coherent(&mut self, val: c_uint)

source

pub fn ignore(&self) -> c_uint

source

pub fn set_ignore(&mut self, val: c_uint)

source

pub fn may_stall(&self) -> c_uint

source

pub fn set_may_stall(&mut self, val: c_uint)

source

pub fn reissue(&self) -> c_uint

source

pub fn set_reissue(&mut self, val: c_uint)

source

pub fn block_STC(&self) -> c_uint

source

pub fn set_block_STC(&mut self, val: c_uint)

source

pub fn use_page_cache(&self) -> c_uint

source

pub fn set_use_page_cache(&mut self, val: c_uint)

source

pub fn inverse_endian(&self) -> c_uint

source

pub fn set_inverse_endian(&mut self, val: c_uint)

source

pub fn page_cross(&self) -> c_uint

source

pub fn set_page_cross(&mut self, val: c_uint)

source

pub fn mem_hier_on_fetch(&self) -> c_uint

source

pub fn set_mem_hier_on_fetch(&mut self, val: c_uint)

source

pub fn new_bitfield_1( atomic: c_uint, inquiry: c_uint, non_coherent: c_uint, ignore: c_uint, may_stall: c_uint, reissue: c_uint, block_STC: c_uint, use_page_cache: c_uint, inverse_endian: c_uint, page_cross: c_uint, mem_hier_on_fetch: c_uint, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

source§

impl Clone for generic_transaction

source§

fn clone(&self) -> generic_transaction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for generic_transaction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for generic_transaction

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Hash for generic_transaction

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for generic_transaction

source§

fn cmp(&self, other: &generic_transaction) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for generic_transaction

source§

fn eq(&self, other: &generic_transaction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for generic_transaction

source§

fn partial_cmp(&self, other: &generic_transaction) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for generic_transaction

source§

impl Eq for generic_transaction

source§

impl StructuralPartialEq for generic_transaction

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.