Struct simics_api_sys::bindings::ppc_interface
source · #[repr(C)]pub struct ppc_interface {
pub clear_atomic_reservation_bit: Option<unsafe extern "C" fn(cpu: *mut conf_object_t)>,
pub raise_machine_check_exception: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, exc: ppc_mc_exc_t)>,
pub get_timebase_enabled: Option<unsafe extern "C" fn(cpu: *mut conf_object_t) -> c_uint>,
pub set_timebase_enabled: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, enabled: c_uint)>,
pub get_sleep_state: Option<unsafe extern "C" fn(cpu: *mut conf_object_t) -> ppc_sleep_state_t>,
pub set_sleep_state: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, state: ppc_sleep_state_t)>,
}
Fields§
§clear_atomic_reservation_bit: Option<unsafe extern "C" fn(cpu: *mut conf_object_t)>
§raise_machine_check_exception: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, exc: ppc_mc_exc_t)>
§get_timebase_enabled: Option<unsafe extern "C" fn(cpu: *mut conf_object_t) -> c_uint>
Timebase
set_timebase_enabled: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, enabled: c_uint)>
§get_sleep_state: Option<unsafe extern "C" fn(cpu: *mut conf_object_t) -> ppc_sleep_state_t>
Power mode
set_sleep_state: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, state: ppc_sleep_state_t)>
Trait Implementations§
source§impl Clone for ppc_interface
impl Clone for ppc_interface
source§fn clone(&self) -> ppc_interface
fn clone(&self) -> ppc_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 ppc_interface
impl Debug for ppc_interface
source§impl Default for ppc_interface
impl Default for ppc_interface
source§fn default() -> ppc_interface
fn default() -> ppc_interface
Returns the “default value” for a type. Read more
source§impl Hash for ppc_interface
impl Hash for ppc_interface
source§impl Ord for ppc_interface
impl Ord for ppc_interface
source§fn cmp(&self, other: &ppc_interface) -> Ordering
fn cmp(&self, other: &ppc_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 ppc_interface
impl PartialEq for ppc_interface
source§impl PartialOrd for ppc_interface
impl PartialOrd for ppc_interface
impl Copy for ppc_interface
impl Eq for ppc_interface
impl StructuralPartialEq for ppc_interface
Auto Trait Implementations§
impl Freeze for ppc_interface
impl RefUnwindSafe for ppc_interface
impl Send for ppc_interface
impl Sync for ppc_interface
impl Unpin for ppc_interface
impl UnwindSafe for ppc_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
)