DPDK  24.03.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 
54 int
55 rte_power_ethdev_pmgmt_queue_enable(unsigned int lcore_id,
56  uint16_t port_id, uint16_t queue_id,
57  enum rte_power_pmd_mgmt_type mode);
58 
77 int
78 rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id,
79  uint16_t port_id, uint16_t queue_id);
80 
88 void
89 rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max);
90 
97 unsigned int
99 
111 int
112 rte_power_pmd_mgmt_set_pause_duration(unsigned int duration);
113 
120 unsigned int
122 
136 int
137 rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min);
138 
153 int
154 rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max);
155 
169 int
170 rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore);
171 
185 int
186 rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore);
187 
188 #ifdef __cplusplus
189 }
190 #endif
191 
192 #endif
unsigned int rte_power_pmd_mgmt_get_pause_duration(void)
unsigned int rte_power_pmd_mgmt_get_emptypoll_max(void)
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)
int rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore)
int rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)
rte_power_pmd_mgmt_type
int rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min)
int rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore)
int rte_power_pmd_mgmt_set_pause_duration(unsigned int duration)
int rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max)
void rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max)