Skip to main content

AmdHardwareConfigurationMsr

Struct AmdHardwareConfigurationMsr 

Source
pub struct AmdHardwareConfigurationMsr(/* private fields */);
Expand description

Layout for MSRC001_0015.

Implementations§

Source§

impl AmdHardwareConfigurationMsr

Source

pub const RSVD1_MASK: u64

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u64

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u64

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const IR_PERF_EN_MASK: u64

Unshifted bitmask of ir_perf_en.

Source

pub const IR_PERF_EN_SHIFT: usize = 30

Bit shift (i.e., the low bit) of ir_perf_en.

Source

pub const EFF_FREQ_READ_ONLY_LOCK_MASK: u64

Unshifted bitmask of eff_freq_read_only_lock.

Source

pub const EFF_FREQ_READ_ONLY_LOCK_SHIFT: usize = 27

Bit shift (i.e., the low bit) of eff_freq_read_only_lock.

Source

pub const EFF_FRQ_CNT_MWAIT_MASK: u64

Unshifted bitmask of eff_frq_cnt_mwait.

Source

pub const EFF_FRQ_CNT_MWAIT_SHIFT: usize = 26

Bit shift (i.e., the low bit) of eff_frq_cnt_mwait.

Source

pub const CPB_DIS_MASK: u64

Unshifted bitmask of cpb_dis.

Source

pub const CPB_DIS_SHIFT: usize = 25

Bit shift (i.e., the low bit) of cpb_dis.

Source

pub const TSC_FREQ_SEL_MASK: u64

Unshifted bitmask of tsc_freq_sel.

Source

pub const TSC_FREQ_SEL_SHIFT: usize = 24

Bit shift (i.e., the low bit) of tsc_freq_sel.

Source

pub const LOCK_TSC_TO_CURRENT_P0_MASK: u64

Unshifted bitmask of lock_tsc_to_current_p0.

Source

pub const LOCK_TSC_TO_CURRENT_P0_SHIFT: usize = 21

Bit shift (i.e., the low bit) of lock_tsc_to_current_p0.

Source

pub const IO_CFG_GP_FAULT_MASK: u64

Unshifted bitmask of io_cfg_gp_fault.

Source

pub const IO_CFG_GP_FAULT_SHIFT: usize = 20

Bit shift (i.e., the low bit) of io_cfg_gp_fault.

Source

pub const MC_STATUS_WR_EN_MASK: u64

Unshifted bitmask of mc_status_wr_en.

Source

pub const MC_STATUS_WR_EN_SHIFT: usize = 18

Bit shift (i.e., the low bit) of mc_status_wr_en.

Source

pub const WRAP32_DIS_MASK: u64

Unshifted bitmask of wrap32_dis.

Source

pub const WRAP32_DIS_SHIFT: usize = 17

Bit shift (i.e., the low bit) of wrap32_dis.

Source

pub const RSM_SP_CYC_DIS_MASK: u64

Unshifted bitmask of rsm_sp_cyc_dis.

Source

pub const RSM_SP_CYC_DIS_SHIFT: usize = 14

Bit shift (i.e., the low bit) of rsm_sp_cyc_dis.

Source

pub const SMI_SP_CYC_DIS_MASK: u64

Unshifted bitmask of smi_sp_cyc_dis.

Source

pub const SMI_SP_CYC_DIS_SHIFT: usize = 13

Bit shift (i.e., the low bit) of smi_sp_cyc_dis.

Source

pub const MON_MWAIT_USER_EN_MASK: u64

Unshifted bitmask of mon_mwait_user_en.

Source

pub const MON_MWAIT_USER_EN_SHIFT: usize = 10

Bit shift (i.e., the low bit) of mon_mwait_user_en.

Source

pub const MON_MWAIT_DIS_MASK: u64

Unshifted bitmask of mon_mwait_dis.

Source

pub const MON_MWAIT_DIS_SHIFT: usize = 9

Bit shift (i.e., the low bit) of mon_mwait_dis.

Source

pub const IGNNE_EM_MASK: u64

Unshifted bitmask of ignne_em.

Source

pub const IGNNE_EM_SHIFT: usize = 8

Bit shift (i.e., the low bit) of ignne_em.

Source

pub const ALLOW_FERR_ON_NE_MASK: u64

Unshifted bitmask of allow_ferr_on_ne.

Source

pub const ALLOW_FERR_ON_NE_SHIFT: usize = 7

Bit shift (i.e., the low bit) of allow_ferr_on_ne.

Source

pub const INVDWBINVD_MASK: u64

Unshifted bitmask of invdwbinvd.

Source

pub const INVDWBINVD_SHIFT: usize = 4

Bit shift (i.e., the low bit) of invdwbinvd.

Source

pub const TLB_CACHE_DIS_MASK: u64

Unshifted bitmask of tlb_cache_dis.

Source

pub const TLB_CACHE_DIS_SHIFT: usize = 3

Bit shift (i.e., the low bit) of tlb_cache_dis.

Source

pub const SMM_LOCK_MASK: u64

Unshifted bitmask of smm_lock.

Source

pub const SMM_LOCK_SHIFT: usize = 0

Bit shift (i.e., the low bit) of smm_lock.

Source

pub const FIELDS: [FieldMetadata<u64>; 18]

Metadata of all named fields in the layout.

Source

pub const fn new() -> Self

Creates a new instance with reserved-as-1 bits set and all other bits zeroed (i.e., with a value of Self::RSVD1_MASK).

Source

pub const fn bits(self) -> u64

Source

pub const fn ir_perf_en(&self) -> bool

The value of AmdHardwareConfigurationMsr30.

Source

pub const fn set_ir_perf_en(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr30.

Source

pub const fn eff_freq_read_only_lock(&self) -> bool

The value of AmdHardwareConfigurationMsr27.

Source

pub const fn set_eff_freq_read_only_lock(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr27.

Source

pub const fn eff_frq_cnt_mwait(&self) -> bool

The value of AmdHardwareConfigurationMsr26.

Source

pub const fn set_eff_frq_cnt_mwait(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr26.

Source

pub const fn cpb_dis(&self) -> bool

The value of AmdHardwareConfigurationMsr25.

Source

pub const fn set_cpb_dis(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr25.

Source

pub const fn tsc_freq_sel(&self) -> bool

The value of AmdHardwareConfigurationMsr24.

Source

pub const fn set_tsc_freq_sel(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr24.

Source

pub const fn lock_tsc_to_current_p0(&self) -> bool

The value of AmdHardwareConfigurationMsr21.

Source

pub const fn set_lock_tsc_to_current_p0(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr21.

Source

pub const fn io_cfg_gp_fault(&self) -> bool

The value of AmdHardwareConfigurationMsr20.

Source

pub const fn set_io_cfg_gp_fault(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr20.

Source

pub const fn mc_status_wr_en(&self) -> bool

The value of AmdHardwareConfigurationMsr18.

Source

pub const fn set_mc_status_wr_en(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr18.

Source

pub const fn wrap32_dis(&self) -> bool

The value of AmdHardwareConfigurationMsr17.

Source

pub const fn set_wrap32_dis(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr17.

Source

pub const fn rsm_sp_cyc_dis(&self) -> bool

The value of AmdHardwareConfigurationMsr14.

Source

pub const fn set_rsm_sp_cyc_dis(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr14.

Source

pub const fn smi_sp_cyc_dis(&self) -> bool

The value of AmdHardwareConfigurationMsr13.

Source

pub const fn set_smi_sp_cyc_dis(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr13.

Source

pub const fn mon_mwait_user_en(&self) -> bool

The value of AmdHardwareConfigurationMsr10.

Source

pub const fn set_mon_mwait_user_en(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr10.

Source

pub const fn mon_mwait_dis(&self) -> bool

The value of AmdHardwareConfigurationMsr9.

Source

pub const fn set_mon_mwait_dis(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr9.

Source

pub const fn ignne_em(&self) -> bool

The value of AmdHardwareConfigurationMsr8.

Source

pub const fn set_ignne_em(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr8.

Source

pub const fn allow_ferr_on_ne(&self) -> bool

The value of AmdHardwareConfigurationMsr7.

Source

pub const fn set_allow_ferr_on_ne(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr7.

Source

pub const fn invdwbinvd(&self) -> bool

The value of AmdHardwareConfigurationMsr4.

Source

pub const fn set_invdwbinvd(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr4.

Source

pub const fn tlb_cache_dis(&self) -> bool

The value of AmdHardwareConfigurationMsr3.

Source

pub const fn set_tlb_cache_dis(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr3.

Source

pub const fn smm_lock(&self) -> bool

The value of AmdHardwareConfigurationMsr0.

Source

pub const fn set_smm_lock(&mut self, value: bool) -> &mut Self

Sets the value of AmdHardwareConfigurationMsr0.

Source§

impl AmdHardwareConfigurationMsr

Source

pub fn iter(&self) -> AmdHardwareConfigurationMsrIter

Returns an iterator over (metadata, value) pairs for each field.

Trait Implementations§

Source§

impl Binary for AmdHardwareConfigurationMsr

Source§

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

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

impl Clone for AmdHardwareConfigurationMsr

Source§

fn clone(&self) -> AmdHardwareConfigurationMsr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for AmdHardwareConfigurationMsr

Source§

impl Debug for AmdHardwareConfigurationMsr

Source§

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

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

impl Default for AmdHardwareConfigurationMsr

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for AmdHardwareConfigurationMsr

Source§

impl From<AmdHardwareConfigurationMsr> for u64

Source§

fn from(value: AmdHardwareConfigurationMsr) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for AmdHardwareConfigurationMsr

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for AmdHardwareConfigurationMsr

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = AmdHardwareConfigurationMsrIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a AmdHardwareConfigurationMsr

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = AmdHardwareConfigurationMsrIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for AmdHardwareConfigurationMsr

Source§

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

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

impl Octal for AmdHardwareConfigurationMsr

Source§

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

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

impl PartialEq for AmdHardwareConfigurationMsr

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable)§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AmdHardwareConfigurationMsr

Source§

impl UpperHex for AmdHardwareConfigurationMsr

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

§

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

§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.