pub enum DeviceRequest {
GetOperatingPointInfo {
opp: u32,
responder: DeviceGetOperatingPointInfoResponder,
},
GetCurrentOperatingPoint {
responder: DeviceGetCurrentOperatingPointResponder,
},
SetCurrentOperatingPoint {
requested_opp: u32,
responder: DeviceSetCurrentOperatingPointResponder,
},
GetOperatingPointCount {
responder: DeviceGetOperatingPointCountResponder,
},
GetNumLogicalCores {
responder: DeviceGetNumLogicalCoresResponder,
},
GetLogicalCoreId {
index: u64,
responder: DeviceGetLogicalCoreIdResponder,
},
}
Variants§
GetOperatingPointInfo
Returns information about a given operating point for this performance domain.
GetCurrentOperatingPoint
Gets the current operating point of the device.
Fields
responder: DeviceGetCurrentOperatingPointResponder
SetCurrentOperatingPoint
Set the operating point of this device to the requested operating point. Returns ZX_OK, if the device is in a working state and the operating point is changed to requested_opp successfully. out_opp will be same as requested_opp. Returns error status, if switching to the requested_opp was unsuccessful. out_opp is the operating performance point (OPP) that the device is currently in.
GetOperatingPointCount
Returns the number of operating points within this performance domain.
Fields
responder: DeviceGetOperatingPointCountResponder
GetNumLogicalCores
Returns the number of logical cores contained within this performance domain.
Fields
responder: DeviceGetNumLogicalCoresResponder
GetLogicalCoreId
Returns a global system-wide core ID for the nth core in this
performance domain. index
must be a value in the range [0, n) where
n is the value returned by GetNumLogicalCores().
Implementations§
source§impl DeviceRequest
impl DeviceRequest
pub fn into_get_operating_point_info( self ) -> Option<(u32, DeviceGetOperatingPointInfoResponder)>
pub fn into_get_current_operating_point( self ) -> Option<DeviceGetCurrentOperatingPointResponder>
pub fn into_set_current_operating_point( self ) -> Option<(u32, DeviceSetCurrentOperatingPointResponder)>
pub fn into_get_operating_point_count( self ) -> Option<DeviceGetOperatingPointCountResponder>
pub fn into_get_num_logical_cores( self ) -> Option<DeviceGetNumLogicalCoresResponder>
pub fn into_get_logical_core_id( self ) -> Option<(u64, DeviceGetLogicalCoreIdResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL