PROTOCOLS
Device
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
GetCurrentOperatingPoint
Gets the current operating point of the device.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
out_opp |
uint32
|
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.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
domain_id |
uint32
|
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().
Request
| Name | Type |
|---|---|
index |
uint64
|
Response
| Name | Type |
|---|---|
id |
uint64
|
GetNumLogicalCores
Returns the number of logical cores contained within this performance domain.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
count |
uint64
|
GetOperatingPointCount
Returns the number of operating points within this performance domain.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
Device_GetOperatingPointCount_Result
|
GetOperatingPointInfo
Returns information about a given operating point for this performance domain.
Request
| Name | Type |
|---|---|
opp |
uint32
|
Response
| Name | Type |
|---|---|
payload |
Device_GetOperatingPointInfo_Result
|
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.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
Device_GetRelativePerformance_Result
|
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.
Request
| Name | Type |
|---|---|
requested_opp |
uint32
|
Response
| Name | Type |
|---|---|
payload |
Device_SetCurrentOperatingPoint_Result
|
STRUCTS
CpuOperatingPointInfo
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
A collection of some basic information for a given operating point.
| Field | Type | Description | Default |
|---|---|---|---|
frequency_hz |
int64
|
No default | |
voltage_uv |
int64
|
No default |
Device_GetOperatingPointCount_Response
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Field | Type | Description | Default |
|---|---|---|---|
count |
uint32
|
No default |
Device_GetOperatingPointInfo_Response
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Field | Type | Description | Default |
|---|---|---|---|
info |
CpuOperatingPointInfo
|
No default |
Device_GetRelativePerformance_Response
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Field | Type | Description | Default |
|---|---|---|---|
relative_performance |
uint8
|
No default |
Device_SetCurrentOperatingPoint_Response
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Field | Type | Description | Default |
|---|---|---|---|
out_opp |
uint32
|
No default |
UNIONS
Device_GetOperatingPointCount_Result strict
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Device_GetOperatingPointCount_Response
|
|
2 |
err |
zx/Status
|
Device_GetOperatingPointInfo_Result strict
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Device_GetOperatingPointInfo_Response
|
|
2 |
err |
zx/Status
|
Device_GetRelativePerformance_Result strict
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Device_GetRelativePerformance_Response
|
|
2 |
err |
zx/Status
|
Device_SetCurrentOperatingPoint_Result strict
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Device_SetCurrentOperatingPoint_Response
|
|
2 |
err |
zx/Status
|
CONSTANTS
| Name | Value | Type | Description |
|---|---|---|---|
| DEVICE_OPERATING_POINT_P0 |
0
|
uint32 |
|
| FREQUENCY_UNKNOWN |
-1
|
int64 |
CpuOperatingPointInfo::frequency_hz and CpuOperatingPointInfo::voltage_uv are set to this if the frequency and voltage for the given operating point are unknown respectively. |
| VOLTAGE_UNKNOWN |
-1
|
int64 |
SERVICES
Service
Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl
| Name | Type | Transport |
|---|---|---|
| device |
fuchsia.hardware.cpu.ctrl/Device
|
Channel |