pub enum Function {
Show 22 variants
    Version,
    CpuSuspend {
        state: PowerState,
        entry: EntryPoint,
    },
    CpuOff,
    CpuOn {
        target_cpu: Mpidr,
        entry: EntryPoint,
    },
    AffinityInfo {
        mpidr: Mpidr,
        lowest_affinity_level: u32,
    },
    Migrate {
        target_affinity: Mpidr,
    },
    MigrateInfoType,
    MigrateInfoUpCpu {
        is_32bit: bool,
    },
    SystemOff,
    SystemOff2 {
        off_type: SystemOff2Type,
        cookie: Cookie,
    },
    SystemReset,
    SystemReset2 {
        reset_type: ResetType,
        cookie: Cookie,
    },
    MemProtect {
        enabled: bool,
    },
    MemProtectCheckRange {
        range: MemProtectRange,
    },
    Features {
        psci_func_id: PsciFeature,
    },
    CpuFreeze,
    CpuDefaultSuspend {
        entry: EntryPoint,
    },
    NodeHwState {
        target_cpu: Mpidr,
        power_level: u32,
    },
    SystemSuspend {
        entry: EntryPoint,
    },
    SetSuspendMode {
        mode: SuspendMode,
    },
    StatResidency {
        target_cpu: Mpidr,
        power_state: PowerState,
    },
    StatCount {
        target_cpu: Mpidr,
        power_state: PowerState,
    },
}Expand description
Enum for representing PSCI requests and their arguments.
Variants§
Version
CpuSuspend
CpuOff
CpuOn
AffinityInfo
Migrate
MigrateInfoType
MigrateInfoUpCpu
SystemOff
SystemOff2
SystemReset
SystemReset2
MemProtect
MemProtectCheckRange
Fields
§
range: MemProtectRangeFeatures
Fields
§
psci_func_id: PsciFeatureCpuFreeze
CpuDefaultSuspend
Fields
§
entry: EntryPointNodeHwState
SystemSuspend
Fields
§
entry: EntryPointSetSuspendMode
Fields
§
mode: SuspendModeStatResidency
StatCount
Implementations§
Source§impl Function
 
impl Function
Sourcepub fn function_id(&self) -> FunctionId
 
pub fn function_id(&self) -> FunctionId
Returns the function ID for the call.
pub fn copy_to_array(&self, a: &mut [u64; 4])
Trait Implementations§
impl Copy for Function
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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