|
1 | 1 | # |
2 | | -# Copyright (C) 2021-2022 Intel Corporation |
| 2 | +# Copyright (C) 2021-2026 Intel Corporation |
3 | 3 | # |
4 | 4 | # SPDX-License-Identifier: MIT |
5 | 5 | # |
@@ -123,3 +123,40 @@ returns: |
123 | 123 | - "User does not have permissions to make these modifications." |
124 | 124 | - $X_RESULT_ERROR_NOT_AVAILABLE: |
125 | 125 | - "The device is in use, meaning that the GPU is under Over clocking, applying power limits under overclocking is not supported." |
| 126 | +--- #-------------------------------------------------------------------------- |
| 127 | +type: function |
| 128 | +desc: "Get power limits" |
| 129 | +version: "1.16" |
| 130 | +class: $sPower |
| 131 | +name: GetLimitsExt2 |
| 132 | +details: |
| 133 | + - "The application may call this function from simultaneous threads." |
| 134 | + - "The implementation of this function should be lock-free." |
| 135 | + - "This function returns the power limit associated with the power domain of the handle." |
| 136 | +params: |
| 137 | + - type: $s_pwr_handle_t |
| 138 | + name: hPower |
| 139 | + desc: "[in] Power domain handle instance." |
| 140 | + - type: uint32_t* |
| 141 | + name: pLimit |
| 142 | + desc: "[out] Returns limit value in milliwatts for given power domain." |
| 143 | +--- #-------------------------------------------------------------------------- |
| 144 | +type: function |
| 145 | +desc: "Set power limits" |
| 146 | +version: "1.16" |
| 147 | +class: $sPower |
| 148 | +name: SetLimitsExt2 |
| 149 | +details: |
| 150 | + - "The application may call this function from simultaneous threads." |
| 151 | + - "The implementation of this function should be lock-free." |
| 152 | + - "This function sets the power limit associated with the power domain of the handle." |
| 153 | +params: |
| 154 | + - type: $s_pwr_handle_t |
| 155 | + name: hPower |
| 156 | + desc: "[in] Power domain handle instance." |
| 157 | + - type: "const uint32_t" |
| 158 | + name: limit |
| 159 | + desc: "[in] Limit value in milliwatts to be set for given power domain." |
| 160 | +returns: |
| 161 | + - $X_RESULT_ERROR_INSUFFICIENT_PERMISSIONS: |
| 162 | + - "User does not have permissions to make these modifications." |
0 commit comments