Skip to content

Commit

Permalink
Update to spec 1.4.8
Browse files Browse the repository at this point in the history
* Update to spec 1.4.8

- Remove const for out params of power limit ext structures
  • Loading branch information
lisanna-dettwyler authored and bmyates committed Jul 20, 2022
1 parent 8011468 commit 45148fc
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion include/ze.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT
@file ze.py
@version v1.4-r1.4.1
@version v1.4-r1.4.8
"""
import platform
Expand Down
2 changes: 1 addition & 1 deletion include/ze_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file ze_api.h
* @version v1.4-r1.4.1
* @version v1.4-r1.4.8
*
*/
#ifndef _ZE_API_H
Expand Down
2 changes: 1 addition & 1 deletion include/ze_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file ze_ddi.h
* @version v1.4-r1.4.1
* @version v1.4-r1.4.8
*
*/
#ifndef _ZE_DDI_H
Expand Down
21 changes: 10 additions & 11 deletions include/zes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT
@file zes.py
@version v1.4-r1.4.1
@version v1.4-r1.4.8
"""
import platform
Expand Down Expand Up @@ -1771,23 +1771,22 @@ def __str__(self):
## @brief Device power/current limit descriptor.
class zes_power_limit_ext_desc_t(Structure):
_fields_ = [
("stype", ze_structure_type_t), ## [in] type of this structure
("pNext", c_void_p), ## [in][optional] must be null or a pointer to an extension-specific
## structure (i.e. contains sType and pNext).
("level", const), ## [out] duration type over which the power draw is measured, i.e.
("stype", zes_structure_type_t), ## [in] type of this structure
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
("level", zes_power_level_t), ## [in,out] duration type over which the power draw is measured, i.e.
## sustained, burst, peak, or critical.
("source", const), ## [out] source of power used by the system, i.e. AC or DC.
("limitUnit", const), ## [out] unit used for specifying limit, i.e. current units (milliamps)
("source", zes_power_source_t), ## [out] source of power used by the system, i.e. AC or DC.
("limitUnit", zes_limit_unit_t), ## [out] unit used for specifying limit, i.e. current units (milliamps)
## or power units (milliwatts).
("enabledStateLocked", const), ## [out] indicates if the power limit state (enabled/ignored) can be set
("enabledStateLocked", ze_bool_t), ## [out] indicates if the power limit state (enabled/ignored) can be set
## (false) or is locked (true).
("enabled", ze_bool_t), ## [in,out] indicates if the limit is enabled (true) or ignored (false).
## If enabledStateIsLocked is True, this value is ignored.
("intervalValueLocked", const), ## [out] indicates if the interval can be modified (false) or is fixed
("intervalValueLocked", ze_bool_t), ## [out] indicates if the interval can be modified (false) or is fixed
## (true).
("interval", c_int32_t), ## [in,out] power averaging window in milliseconds. If
## intervalValueLocked is true, this value is ignored.
("limitValueLocked", const), ## [out] indicates if the limit can be set (false) or if the limit is
("limitValueLocked", ze_bool_t), ## [out] indicates if the limit can be set (false) or if the limit is
## fixed (true).
("limit", c_int32_t) ## [in,out] limit value. If limitValueLocked is true, this value is
## ignored. The value should be provided in the unit specified by
Expand All @@ -1808,7 +1807,7 @@ class zes_power_ext_properties_t(Structure):
_fields_ = [
("stype", zes_structure_type_t), ## [in] type of this structure
("pNext", c_void_p), ## [in,out][optional] pointer to extension-specific structure
("domain", const), ## [out] domain that the power limit belongs to.
("domain", zes_power_domain_t), ## [out] domain that the power limit belongs to.
("defaultLimit", POINTER(zes_power_limit_ext_desc_t)) ## [out] the factory default limit of the part.
]

Expand Down
21 changes: 10 additions & 11 deletions include/zes_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zes_api.h
* @version v1.4-r1.4.1
* @version v1.4-r1.4.8
*
*/
#ifndef _ZES_API_H
Expand Down Expand Up @@ -4985,23 +4985,22 @@ typedef enum _zes_power_limits_ext_version_t
/// @brief Device power/current limit descriptor.
typedef struct _zes_power_limit_ext_desc_t
{
ze_structure_type_t stype; ///< [in] type of this structure
const void* pNext; ///< [in][optional] must be null or a pointer to an extension-specific
///< structure (i.e. contains sType and pNext).
zes_power_level_t const level; ///< [out] duration type over which the power draw is measured, i.e.
zes_structure_type_t stype; ///< [in] type of this structure
const void* pNext; ///< [in][optional] pointer to extension-specific structure
zes_power_level_t level; ///< [in,out] duration type over which the power draw is measured, i.e.
///< sustained, burst, peak, or critical.
zes_power_source_t const source; ///< [out] source of power used by the system, i.e. AC or DC.
zes_limit_unit_t const limitUnit; ///< [out] unit used for specifying limit, i.e. current units (milliamps)
zes_power_source_t source; ///< [out] source of power used by the system, i.e. AC or DC.
zes_limit_unit_t limitUnit; ///< [out] unit used for specifying limit, i.e. current units (milliamps)
///< or power units (milliwatts).
ze_bool_t const enabledStateLocked; ///< [out] indicates if the power limit state (enabled/ignored) can be set
ze_bool_t enabledStateLocked; ///< [out] indicates if the power limit state (enabled/ignored) can be set
///< (false) or is locked (true).
ze_bool_t enabled; ///< [in,out] indicates if the limit is enabled (true) or ignored (false).
///< If enabledStateIsLocked is True, this value is ignored.
ze_bool_t const intervalValueLocked; ///< [out] indicates if the interval can be modified (false) or is fixed
ze_bool_t intervalValueLocked; ///< [out] indicates if the interval can be modified (false) or is fixed
///< (true).
int32_t interval; ///< [in,out] power averaging window in milliseconds. If
///< intervalValueLocked is true, this value is ignored.
ze_bool_t const limitValueLocked; ///< [out] indicates if the limit can be set (false) or if the limit is
ze_bool_t limitValueLocked; ///< [out] indicates if the limit can be set (false) or if the limit is
///< fixed (true).
int32_t limit; ///< [in,out] limit value. If limitValueLocked is true, this value is
///< ignored. The value should be provided in the unit specified by
Expand All @@ -5023,7 +5022,7 @@ typedef struct _zes_power_ext_properties_t
{
zes_structure_type_t stype; ///< [in] type of this structure
void* pNext; ///< [in,out][optional] pointer to extension-specific structure
zes_power_domain_t const domain; ///< [out] domain that the power limit belongs to.
zes_power_domain_t domain; ///< [out] domain that the power limit belongs to.
zes_power_limit_ext_desc_t* defaultLimit; ///< [out] the factory default limit of the part.

} zes_power_ext_properties_t;
Expand Down
2 changes: 1 addition & 1 deletion include/zes_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zes_ddi.h
* @version v1.4-r1.4.1
* @version v1.4-r1.4.8
*
*/
#ifndef _ZES_DDI_H
Expand Down
2 changes: 1 addition & 1 deletion include/zet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT
@file zet.py
@version v1.4-r1.4.1
@version v1.4-r1.4.8
"""
import platform
Expand Down
2 changes: 1 addition & 1 deletion include/zet_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zet_api.h
* @version v1.4-r1.4.1
* @version v1.4-r1.4.8
*
*/
#ifndef _ZET_API_H
Expand Down
2 changes: 1 addition & 1 deletion include/zet_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zet_ddi.h
* @version v1.4-r1.4.1
* @version v1.4-r1.4.8
*
*/
#ifndef _ZET_DDI_H
Expand Down

0 comments on commit 45148fc

Please sign in to comment.