fuchsia.hardware.cpu.ctrl

Added: HEAD

PROTOCOLS

Device

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

GetCurrentOperatingPoint

Gets the current operating point of the device.

Request

<EMPTY>

Response

NameType
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

NameType
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

NameType
index uint64

Response

NameType
id uint64

GetNumLogicalCores

Returns the number of logical cores contained within this performance domain.

Request

<EMPTY>

Response

NameType
count uint64

GetOperatingPointCount

Returns the number of operating points within this performance domain.

Request

<EMPTY>

Response

NameType
payload Device_GetOperatingPointCount_Result

GetOperatingPointInfo

Returns information about a given operating point for this performance domain.

Request

NameType
opp uint32

Response

NameType
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

NameType
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

NameType
requested_opp uint32

Response

NameType
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.

FieldTypeDescriptionDefault
frequency_hz int64 No default
voltage_uv int64 No default

Device_GetOperatingPointCount_Response

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

FieldTypeDescriptionDefault
count uint32 No default

Device_GetOperatingPointInfo_Response

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

FieldTypeDescriptionDefault
info CpuOperatingPointInfo No default

Device_GetRelativePerformance_Response

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

FieldTypeDescriptionDefault
relative_performance uint8 No default

Device_SetCurrentOperatingPoint_Response

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

FieldTypeDescriptionDefault
out_opp uint32 No default

UNIONS

Device_GetOperatingPointCount_Result strict

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

OrdinalVariantTypeDescription
response Device_GetOperatingPointCount_Response
err zx/Status

Device_GetOperatingPointInfo_Result strict

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

OrdinalVariantTypeDescription
response Device_GetOperatingPointInfo_Response
err zx/Status

Device_GetRelativePerformance_Result strict

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

OrdinalVariantTypeDescription
response Device_GetRelativePerformance_Response
err zx/Status

Device_SetCurrentOperatingPoint_Result strict

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

OrdinalVariantTypeDescription
response Device_SetCurrentOperatingPoint_Response
err zx/Status

CONSTANTS

NameValueTypeDescription
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

NameTypeTransport
device fuchsia.hardware.cpu.ctrl/Device Channel