DPDK  22.11.5
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_compat.h>
16 #include <rte_log.h>
17 #include <rte_power.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
33 };
34 
58 __rte_experimental
59 int
60 rte_power_ethdev_pmgmt_queue_enable(unsigned int lcore_id,
61  uint16_t port_id, uint16_t queue_id,
62  enum rte_power_pmd_mgmt_type mode);
63 
85 __rte_experimental
86 int
87 rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id,
88  uint16_t port_id, uint16_t queue_id);
89 
100 __rte_experimental
101 void
102 rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max);
103 
113 __rte_experimental
114 unsigned int
116 
131 __rte_experimental
132 int
133 rte_power_pmd_mgmt_set_pause_duration(unsigned int duration);
134 
144 __rte_experimental
145 unsigned int
147 
164 __rte_experimental
165 int
166 rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min);
167 
185 __rte_experimental
186 int
187 rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max);
188 
205 __rte_experimental
206 int
207 rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore);
208 
225 __rte_experimental
226 int
227 rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore);
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
233 #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)