Lines Matching +full:power +full:- +full:sensor
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2018-2021 ARM Ltd.
20 * struct scmi_revision_info - version information structure
29 * @impl_ver: A vendor-specific implementation version.
31 * @sub_vendor_id: A sub-vendor identifier(Null terminated ASCII string)
64 * struct scmi_clk_proto_ops - represents the various operations provided
88 * struct scmi_perf_proto_ops - represents the various operations provided
102 * @est_power_get: gets the estimated power cost for a given performance domain
106 * @power_scale_mw_get: indicates if the power values provided are in milliWatts
128 unsigned long *rate, unsigned long *power);
135 * struct scmi_power_proto_ops - represents the various operations provided
136 * by SCMI Power Protocol
138 * @num_domains_get: get the count of power domains provided by SCMI
139 * @name_get: gets the name of a power domain
140 * @state_set: sets the power state of a power domain
141 * @state_get: gets the power state of a power domain
147 #define SCMI_POWER_STATE_ID_MASK (BIT(28) - 1)
160 * struct scmi_sensor_reading - represent a timestamped read
164 * @value: The signed value sensor read.
165 * @timestamp: An unsigned timestamp for the sensor read, as provided by
174 * struct scmi_range_attrs - specifies a sensor or axis values' range
175 * @min_range: The minimum value which can be represented by the sensor/axis.
176 * @max_range: The maximum value which can be represented by the sensor/axis.
184 * struct scmi_sensor_axis_info - describes one sensor axes
187 * @scale: Power-of-10 multiplier applied to the axis unit.
188 * @name: NULL-terminated string representing axes name as advertised by
194 * @exponent: Extended attribute representing the power-of-10 multiplier that
198 * measurable by this axes. Set to 0 if not reported by this sensor.
212 * struct scmi_sensor_intervals_info - describes number and type of available
223 * lesser-than-64-bytes dynamic allocation for small @count
247 * struct scmi_sensor_info - represents information related to one of the
249 * @id: Sensor ID.
250 * @type: Sensor type. Chosen amongst one of @enum scmi_sensor_class.
251 * @scale: Power-of-10 multiplier applied to the sensor unit.
256 * @tstamp_scale: Power-of-10 multiplier applied to the sensor timestamps to
261 * @sensor_config: A bitmask reporting the current sensor configuration as
264 * @name: NULL-terminated string representing sensor name as advertised by
267 * attributes for this sensor.
268 * @sensor_power: Extended attribute representing the average power
269 * consumed by the sensor in microwatts (uW) when it is active.
271 * Set to 0 if not reported by this sensor.
272 * @resolution: Extended attribute representing the resolution of the sensor.
274 * Set to 0 if not reported by this sensor.
275 * @exponent: Extended attribute representing the power-of-10 multiplier that is
278 * Set to 0 if not reported by this sensor.
280 * measurable values by this sensor.
282 * Set to 0 if not reported by this sensor.
347 POWER = 0x7, enumerator
438 * struct scmi_sensor_proto_ops - represents the various operations provided
439 * by SCMI Sensor Protocol
442 * @info_get: get the information of the specified sensor
443 * @trip_point_config: selects and configures a trip-point of interest
444 * @reading_get: gets the current value of the sensor
446 * available, of the sensor. (as of v3.0 spec)
447 * Supports multi-axis sensors for sensors which
449 * @count entry equals the sensor num_axis
450 * @config_get: Get sensor current configuration
451 * @config_set: Set sensor current configuration
471 * struct scmi_reset_proto_ops - represents the various operations provided
491 * struct scmi_voltage_info - describe one available SCMI Voltage Domain
495 * - when True the entries are to be interpreted as triplets,
498 * - when False the entries simply represent a single discrete
522 * struct scmi_voltage_proto_ops - represents the various operations provided
549 * struct scmi_notify_ops - represents notifications' operations provided by
608 * struct scmi_handle - Handle returned to ARM SCMI clients for usage.
689 return -EINVAL; in scmi_driver_register()
701 * module_scmi_driver() - Helper macro for registering a scmi driver
712 * module_scmi_protocol() - Helper macro for registering a scmi protocol
727 /* SCMI Notification API - Custom Event Reports */