DPDK  22.07.0
rte_power_pmd_mgmt.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Intel Corporation
3  */
4 
5 #ifndef _RTE_POWER_PMD_MGMT_H
6 #define _RTE_POWER_PMD_MGMT_H
7 
13 #include <stdint.h>
14 
15 #include <rte_log.h>
16 #include <rte_power.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
32 };
33 
57 __rte_experimental
58 int
59 rte_power_ethdev_pmgmt_queue_enable(unsigned int lcore_id,
60  uint16_t port_id, uint16_t queue_id,
61  enum rte_power_pmd_mgmt_type mode);
62 
84 __rte_experimental
85 int
86 rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id,
87  uint16_t port_id, uint16_t queue_id);
88 
99 __rte_experimental
100 void
101 rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max);
102 
112 __rte_experimental
113 unsigned int
115 
130 __rte_experimental
131 int
132 rte_power_pmd_mgmt_set_pause_duration(unsigned int duration);
133 
143 __rte_experimental
144 unsigned int
146 
163 __rte_experimental
164 int
165 rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min);
166 
184 __rte_experimental
185 int
186 rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max);
187 
204 __rte_experimental
205 int
206 rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore);
207 
224 __rte_experimental
225 int
226 rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore);
227 
228 #ifdef __cplusplus
229 }
230 #endif
231 
232 #endif
__rte_experimental int rte_power_ethdev_pmgmt_queue_enable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id, enum rte_power_pmd_mgmt_type mode)
__rte_experimental int rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore)
__rte_experimental int rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min)
__rte_experimental void rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max)
__rte_experimental int rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)
rte_power_pmd_mgmt_type
__rte_experimental int rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore)
__rte_experimental unsigned int rte_power_pmd_mgmt_get_emptypoll_max(void)
__rte_experimental unsigned int rte_power_pmd_mgmt_get_pause_duration(void)
__rte_experimental int rte_power_pmd_mgmt_set_pause_duration(unsigned int duration)
__rte_experimental int rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max)