DPDK 21.11.9
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | rte_pmd_ifpga_uuid |
struct | rte_pmd_ifpga_common_prop |
struct | rte_pmd_ifpga_port_prop |
struct | rte_pmd_ifpga_prop |
struct | rte_pmd_ifpga_phy_info |
Functions | |
__rte_experimental int | rte_pmd_ifpga_get_dev_id (const char *pci_addr, uint16_t *dev_id) |
__rte_experimental int | rte_pmd_ifpga_get_rsu_status (uint16_t dev_id, uint32_t *stat, uint32_t *prog) |
__rte_experimental int | rte_pmd_ifpga_set_rsu_status (uint16_t dev_id, uint32_t stat, uint32_t prog) |
__rte_experimental int | rte_pmd_ifpga_get_property (uint16_t dev_id, rte_pmd_ifpga_prop *prop) |
__rte_experimental int | rte_pmd_ifpga_get_phy_info (uint16_t dev_id, rte_pmd_ifpga_phy_info *info) |
__rte_experimental int | rte_pmd_ifpga_update_flash (uint16_t dev_id, const char *image, uint64_t *status) |
__rte_experimental int | rte_pmd_ifpga_stop_update (uint16_t dev_id, int force) |
__rte_experimental int | rte_pmd_ifpga_reboot_try (uint16_t dev_id) |
__rte_experimental int | rte_pmd_ifpga_reload (uint16_t dev_id, int type, int page) |
__rte_experimental const struct rte_pci_bus * | rte_pmd_ifpga_get_pci_bus (void) |
__rte_experimental int | rte_pmd_ifpga_partial_reconfigure (uint16_t dev_id, int port, const char *file) |
__rte_experimental void | rte_pmd_ifpga_cleanup (void) |
ifpga PMD specific functions.
EXPERIMENTAL: this API may change, or be removed, without prior notice
Definition in file rte_pmd_ifpga.h.
__rte_experimental int rte_pmd_ifpga_get_dev_id | ( | const char * | pci_addr, |
uint16_t * | dev_id | ||
) |
Get raw device ID from PCI address string like 'Domain:Bus:Dev.Func'
pci_addr | The PCI address of specified Intel FPGA device. |
dev_id | The buffer to output device ID. |
__rte_experimental int rte_pmd_ifpga_get_rsu_status | ( | uint16_t | dev_id, |
uint32_t * | stat, | ||
uint32_t * | prog | ||
) |
Get current RSU status of the specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
stat | The buffer to output RSU status. |
prog | The buffer to output RSU progress. |
__rte_experimental int rte_pmd_ifpga_set_rsu_status | ( | uint16_t | dev_id, |
uint32_t | stat, | ||
uint32_t | prog | ||
) |
Set current RSU status of the specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
stat | The RSU status value to set. |
prog | The RSU progress value to set. |
__rte_experimental int rte_pmd_ifpga_get_property | ( | uint16_t | dev_id, |
rte_pmd_ifpga_prop * | prop | ||
) |
Get FPGA property of specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
prop | The data pointer of FPGA property buffer. |
__rte_experimental int rte_pmd_ifpga_get_phy_info | ( | uint16_t | dev_id, |
rte_pmd_ifpga_phy_info * | info | ||
) |
Get PHY information of specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
info | The data pointer of PHY information buffer. |
__rte_experimental int rte_pmd_ifpga_update_flash | ( | uint16_t | dev_id, |
const char * | image, | ||
uint64_t * | status | ||
) |
Update image flash of specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
image | The image file name string. |
status | The detailed update status for debug. |
__rte_experimental int rte_pmd_ifpga_stop_update | ( | uint16_t | dev_id, |
int | force | ||
) |
Stop flash update of specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
force | Abort the update process by writing register if set non-zero. |
__rte_experimental int rte_pmd_ifpga_reboot_try | ( | uint16_t | dev_id | ) |
Check current Intel FPGA status and change it to reboot status if it is idle
dev_id | The raw device ID of specified Intel FPGA device. |
__rte_experimental int rte_pmd_ifpga_reload | ( | uint16_t | dev_id, |
int | type, | ||
int | page | ||
) |
Trigger full reconfiguration of specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
type | Select reconfiguration type. 0 - reconfigure FPGA only. 1 - reboot the whole card including FPGA. |
page | Select image from which flash partition. 0 - factory partition. 1 - user partition. |
__rte_experimental const struct rte_pci_bus * rte_pmd_ifpga_get_pci_bus | ( | void | ) |
Get PCI bus the Intel FPGA driver register to
__rte_experimental int rte_pmd_ifpga_partial_reconfigure | ( | uint16_t | dev_id, |
int | port, | ||
const char * | file | ||
) |
Perform PR (partial reconfiguration) on specified Intel FPGA device
dev_id | The raw device ID of specified Intel FPGA device. |
port | The port index of the partial reconfiguration area. |
file | The GBS (Green BitStream) image file name string. |
__rte_experimental void rte_pmd_ifpga_cleanup | ( | void | ) |
Free software resources allocated by Intel FPGA PMD