DPDK 22.11.7
rte_pmd_ifpga.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2021 Intel Corporation
3 */
4
5#ifndef _RTE_PMD_IFPGA_H_
6#define _RTE_PMD_IFPGA_H_
7
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <stdint.h>
22
23#define IFPGA_MAX_PORT_NUM 4
24
28typedef struct {
29 uint8_t b[16];
31
35typedef struct {
36 uint32_t num_ports;
37 uint32_t boot_page;
38 uint64_t bitstream_id;
39 uint64_t bitstream_metadata;
41 uint32_t bmc_version;
42 uint32_t bmc_nios_version;
44
48typedef struct {
49 rte_pmd_ifpga_uuid afu_id;
50 uint32_t type; /* AFU memory access control type */
52
56typedef struct {
58 rte_pmd_ifpga_port_prop port[IFPGA_MAX_PORT_NUM];
60
64typedef struct {
65 uint32_t num_retimers;
66 uint32_t link_speed;
67 uint32_t link_status;
69
82int
83rte_pmd_ifpga_get_dev_id(const char *pci_addr, uint16_t *dev_id);
84
99int
100rte_pmd_ifpga_get_rsu_status(uint16_t dev_id, uint32_t *stat, uint32_t *prog);
101
116int
117rte_pmd_ifpga_set_rsu_status(uint16_t dev_id, uint32_t stat, uint32_t prog);
118
132int
134
148int
150
167int
168rte_pmd_ifpga_update_flash(uint16_t dev_id, const char *image,
169 uint64_t *status);
170
184int
185rte_pmd_ifpga_stop_update(uint16_t dev_id, int force);
186
198int
200
220int
221rte_pmd_ifpga_reload(uint16_t dev_id, int type, int page);
222
237int
238rte_pmd_ifpga_partial_reconfigure(uint16_t dev_id, int port, const char *file);
239
243void
245
246#ifdef __cplusplus
247}
248#endif
249
250#endif /* _RTE_PMD_IFPGA_H_ */
uint16_t link_status
Definition: rte_ethdev.h:3
uint32_t link_speed
Definition: rte_ethdev.h:0
int rte_pmd_ifpga_reload(uint16_t dev_id, int type, int page)
void rte_pmd_ifpga_cleanup(void)
int rte_pmd_ifpga_partial_reconfigure(uint16_t dev_id, int port, const char *file)
int rte_pmd_ifpga_stop_update(uint16_t dev_id, int force)
int rte_pmd_ifpga_update_flash(uint16_t dev_id, const char *image, uint64_t *status)
int rte_pmd_ifpga_set_rsu_status(uint16_t dev_id, uint32_t stat, uint32_t prog)
int rte_pmd_ifpga_reboot_try(uint16_t dev_id)
int rte_pmd_ifpga_get_property(uint16_t dev_id, rte_pmd_ifpga_prop *prop)
int rte_pmd_ifpga_get_phy_info(uint16_t dev_id, rte_pmd_ifpga_phy_info *info)
int rte_pmd_ifpga_get_dev_id(const char *pci_addr, uint16_t *dev_id)
int rte_pmd_ifpga_get_rsu_status(uint16_t dev_id, uint32_t *stat, uint32_t *prog)