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,
},
GetDomainId {
responder: DeviceGetDomainIdResponder,
},
GetRelativePerformance {
responder: DeviceGetRelativePerformanceResponder,
},
}
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().
GetDomainId
Returns the id of this performance domain within its package. This number should be stable across boots, but clients should prefer to use GetRelativePerformance to differentiate cores if possible.
Fields
responder: DeviceGetDomainIdResponder
GetRelativePerformance
The relative performance of this domain as configured by the platform, if known. The highest performance domain should return 255, while others should return N/255 fractional values relative to that domain. Returns ZX_ERR_NOT_SUPPORTED if the performance level is unknown.
Fields
responder: DeviceGetRelativePerformanceResponder
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)>
pub fn into_get_domain_id(self) -> Option<DeviceGetDomainIdResponder>
pub fn into_get_relative_performance( self, ) -> Option<DeviceGetRelativePerformanceResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL