rte_pmd_ifpga.h(3)
πΈ rte_pmd_ifpga.h β section 3 of the Library Functions Manual π
okay bestie, sit down, hydrate, because this one is the ifpga PMD header and it's lowkey iconic. no cap.
π NAME
rte_pmd_ifpga.h β the header, the moment, the whole vibe π¦
β¨ SYNOPSIS β¨
#include <stdint.h>
π Data Structures
struct rte_pmd_ifpga_uuidstruct rte_pmd_ifpga_common_propstruct rte_pmd_ifpga_port_propstruct rte_pmd_ifpga_propstruct rte_pmd_ifpga_phy_info
like, five structs, all of them serving π
π Functions
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)
int rte_pmd_ifpga_set_rsu_status (uint16_t dev_id, uint32_t stat, uint32_t prog)
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_update_flash (uint16_t dev_id, const char *image, uint64_t *status)
int rte_pmd_ifpga_stop_update (uint16_t dev_id, int force)
int rte_pmd_ifpga_reboot_try (uint16_t dev_id)
int rte_pmd_ifpga_reload (uint16_t dev_id, int type, int page)
int rte_pmd_ifpga_partial_reconfigure (uint16_t dev_id, int port, const char *file)
void rte_pmd_ifpga_cleanup (void)
π Detailed Description
these are the ifpga PMD specific functions. that's the whole point of this header, fr fr.
β οΈ EXPERIMENTAL: this API may change, or be removed, without prior notice. so don't build your whole personality on it π
Definition in file rte_pmd_ifpga.h.
π§ Function Documentation
β int rte_pmd_ifpga_get_dev_id (const char * pci_addr, uint16_t * dev_id)
grab the raw device ID from a PCI address string formatted like 'Domain:Bus:Dev.Func' β yes bestie, that exact shape, don't freestyle it π
Parameters
pci_addrβ the PCI address of the specified Intel FPGA device.dev_idβ the buffer to output the device ID.
Returns
(0)if successful. slay π(-EINVAL)if bad parameter. π(-ENODEV)if the FPGA is not probed by the ifpga driver. π
β int rte_pmd_ifpga_get_rsu_status (uint16_t dev_id, uint32_t * stat, uint32_t * prog)
get the current RSU status of the specified Intel FPGA device β¨
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.statβ the buffer to output RSU status.progβ the buffer to output RSU progress.
Returns
(0)if successful. π(-ENODEV)ifdev_idis invalid.(-ENOMEM)if share data is not initialized.
β int rte_pmd_ifpga_set_rsu_status (uint16_t dev_id, uint32_t stat, uint32_t prog)
set the current RSU status of the specified Intel FPGA device β the glow-up version of the getter π¦
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.statβ the RSU status value to set.progβ the RSU progress value to set.
Returns
(0)if successful. πΈ(-ENODEV)ifdev_idis invalid.(-ENOMEM)if share data is not initialized.
β int rte_pmd_ifpga_get_property (uint16_t dev_id, rte_pmd_ifpga_prop * prop)
get the FPGA property of the specified Intel FPGA device π
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.propβ the data pointer of the FPGA property buffer.
Returns
(0)if successful. π(-ENODEV)ifdev_idis invalid.(-EBUSY)if the FPGA is rebooting. like give it a minute π(-EIO)if it failed to access hardware.
β int rte_pmd_ifpga_get_phy_info (uint16_t dev_id, rte_pmd_ifpga_phy_info * info)
get the PHY information of the specified Intel FPGA device π
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.infoβ the data pointer of the PHY information buffer.
Returns
(0)if successful. β¨(-ENODEV)ifdev_idis invalid.(-EBUSY)if the FPGA is rebooting. (again. it's going through something.)(-EIO)if it failed to access hardware.
β int rte_pmd_ifpga_update_flash (uint16_t dev_id, const char * image, uint64_t * status)
update the image flash of the specified Intel FPGA device π₯
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.imageβ the image file name string.statusβ the detailed update status, for debug purposes. iykyk.
Returns
(0)if successful. π(-ENODEV)ifdev_idis invalid.(-EINVAL)if bad parameter or the staging area is not initialized.(-EBUSY)if the FPGA is updating or rebooting.(-EIO)if it failed to open the image file.
β int rte_pmd_ifpga_stop_update (uint16_t dev_id, int force)
stop the flash update of the specified Intel FPGA device β not me pulling the plug bestie
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.forceβ abort the update process by writing register if set non-zero.
Returns
(0)if successful. π«Ά(-ENODEV)ifdev_idis invalid.(-EINVAL)if bad parameter.(-EAGAIN)if it failed with force. π
β int rte_pmd_ifpga_reboot_try (uint16_t dev_id)
check the current Intel FPGA status, and flip it over to reboot status if it's idle β a little vibe check before the chaos π
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.
Returns
(0)if the FPGA is ready to reboot. π₯(-ENODEV)ifdev_idis invalid.(-ENOMEM)if share data is not initialized.(-EBUSY)if the FPGA is updating or rebooting.
β int rte_pmd_ifpga_reload (uint16_t dev_id, int type, int page)
trigger a full reconfiguration of the specified Intel FPGA device π main character energy fr
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.typeβ select reconfiguration type.0β reconfigure FPGA only.1β reboot the whole card, including the FPGA.pageβ select which flash partition the image comes from.0β factory partition.1β user partition.
Returns
(0)if successful. π(-ENODEV)ifdev_idis invalid.(-EINVAL)if bad parameter.(-EBUSY)if it failed to access the BMC register.
β int rte_pmd_ifpga_partial_reconfigure (uint16_t dev_id, int port, const char * file)
perform PR, aka partial reconfiguration, on the specified Intel FPGA device π§ the partial is doing a lot of work here, respect it
Parameters
dev_idβ the raw device ID of the specified Intel FPGA device.portβ the port index of the partial reconfiguration area.fileβ the GBS (Green BitStream) image file name string. π
Returns
(0)if successful. β¨(-EINVAL)if bad parameter or the operation failed.(-ENOMEM)if it failed to allocate memory.
β void rte_pmd_ifpga_cleanup (void )
free the software resources allocated by the Intel FPGA PMD β the closing-the-tabs moment, we love a tidy queen π
π¦ Author
Generated automatically by Doxygen for DPDK from the source code. (not a human, not a bestie, just vibes and tooling, no cap)
and that's the whole page, bestie π this was rte_pmd_ifpga.h(3) from DPDK Version 25.11.3 β periodt. go forth and reconfigure responsibly. π
β¨
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms