|
DPDK 26.11.0-rc1
|
#include <stdint.h>#include <rte_common.h>#include <rte_dev.h>#include <rte_malloc.h>#include <rte_memcpy.h>#include <rte_rawdev.h>Go to the source code of this file.
Typedefs | |
| typedef void(* | cnxk_bphy_intr_handler_t) (int irq_num, void *isr_data) |
Functions | |
| static __rte_always_inline int | rte_pmd_bphy_intr_init (uint16_t dev_id) |
| static __rte_always_inline int | rte_pmd_bphy_intr_fini (uint16_t dev_id) |
| static __rte_always_inline int | rte_pmd_bphy_intr_register (uint16_t dev_id, int irq_num, cnxk_bphy_intr_handler_t handler, void *data, int cpu) |
| static __rte_always_inline int | rte_pmd_bphy_intr_unregister (uint16_t dev_id, int irq_num) |
| static __rte_always_inline int | rte_pmd_bphy_intr_mem_get (uint16_t dev_id, struct cnxk_bphy_mem *mem) |
| static __rte_always_inline int | rte_pmd_bphy_npa_pf_func_get (uint16_t dev_id, uint16_t *pf_func) |
| static __rte_always_inline int | rte_pmd_bphy_sso_pf_func_get (uint16_t dev_id, uint16_t *pf_func) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_get_link_info (uint16_t dev_id, uint16_t lmac, struct cnxk_bphy_cgx_msg_link_info *info) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_intlbk_disable (uint16_t dev_id, uint16_t lmac) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_intlbk_enable (uint16_t dev_id, uint16_t lmac) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_ptp_rx_disable (uint16_t dev_id, uint16_t lmac) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_ptp_rx_enable (uint16_t dev_id, uint16_t lmac) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_set_link_mode (uint16_t dev_id, uint16_t lmac, struct cnxk_bphy_cgx_msg_link_mode *mode) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_set_link_state (uint16_t dev_id, uint16_t lmac, struct cnxk_bphy_cgx_msg_set_link_state *state) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_start_rxtx (uint16_t dev_id, uint16_t lmac) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_stop_rxtx (uint16_t dev_id, uint16_t lmac) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_get_supported_fec (uint16_t dev_id, uint16_t lmac, enum cnxk_bphy_cgx_eth_link_fec *fec) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_set_fec (uint16_t dev_id, uint16_t lmac, enum cnxk_bphy_cgx_eth_link_fec fec) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_cpri_mode_change (uint16_t dev_id, uint16_t lmac, struct cnxk_bphy_cgx_msg_cpri_mode_change *mode) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_cpri_tx_control (uint16_t dev_id, uint16_t lmac, struct cnxk_bphy_cgx_msg_cpri_mode_tx_ctrl *mode) |
| static __rte_always_inline int | rte_pmd_bphy_cgx_cpri_mode_misc (uint16_t dev_id, uint16_t lmac, struct cnxk_bphy_cgx_msg_cpri_mode_misc *mode) |
| int | rte_pmd_bphy_npa_pf_func_get_rmt (uint16_t *pf_func) |
| int | rte_pmd_bphy_sso_pf_func_get_rmt (uint16_t *pf_func) |
Marvell CGX and BPHY PMD specific structures and interface
This API allows applications to manage BPHY memory in user space along with installing interrupt handlers for low latency signal processing.
Definition in file rte_pmd_bphy.h.
| typedef void(* cnxk_bphy_intr_handler_t) (int irq_num, void *isr_data) |
BPHY interrupt handler
| irq_num | Zero-based interrupt number |
| isr_data | Cookie passed to interrupt handler |
Definition at line 299 of file rte_pmd_bphy.h.
Available message types
Definition at line 36 of file rte_pmd_bphy.h.
Available link speeds
Definition at line 68 of file rte_pmd_bphy.h.
Available FEC modes
| Enumerator | |
|---|---|
| CNXK_BPHY_CGX_ETH_LINK_FEC_NONE | Disable FEC |
| CNXK_BPHY_CGX_ETH_LINK_FEC_BASE_R | Base FEC (IEEE 802.3 CLause 74) |
| CNXK_BPHY_CGX_ETH_LINK_FEC_RS | Reed-Solomon FEC |
Definition at line 86 of file rte_pmd_bphy.h.
Available link modes
Definition at line 97 of file rte_pmd_bphy.h.
Available CPRI modes
Definition at line 178 of file rte_pmd_bphy.h.
Available mode groups
| Enumerator | |
|---|---|
| CNXK_BPHY_CGX_MODE_GROUP_ETH | ETH group |
| CNXK_BPHY_CGX_MODE_GROUP_CPRI | CPRI group |
Definition at line 196 of file rte_pmd_bphy.h.
Available IRQ configuration commands
Definition at line 309 of file rte_pmd_bphy.h.
|
static |
Initialize BPHY subsystem
| dev_id | The identifier of the device |
Definition at line 392 of file rte_pmd_bphy.h.
|
static |
Deinitialize BPHY subsystem
| dev_id | The identifier of the device |
Definition at line 412 of file rte_pmd_bphy.h.
|
static |
Register BPHY interrupt handler
| dev_id | The identifier of the device |
| irq_num | Zero-based interrupt number |
| handler | Interrupt handler to be executed |
| data | Data to be passed to interrupt handler |
| cpu | CPU number which will be handling interrupt |
Definition at line 440 of file rte_pmd_bphy.h.
|
static |
Unregister BPHY interrupt handler
| dev_id | The identifier of the device |
| irq_num | Zero-based interrupt number used during registration |
Definition at line 471 of file rte_pmd_bphy.h.
|
static |
Obtain BPHY memory
| dev_id | The identifier of the device |
| mem | Memory structure which will be filled for memory access |
Definition at line 497 of file rte_pmd_bphy.h.
|
static |
Obtain NPA PF func
| dev_id | The identifier of the device |
| pf_func | NPA PF function to obtain |
Definition at line 519 of file rte_pmd_bphy.h.
|
static |
Obtain SSO PF func
| dev_id | The identifier of the device |
| pf_func | SSO PF function to obtain |
Definition at line 541 of file rte_pmd_bphy.h.
|
static |
Obtain link information
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| info | Link information structure |
Definition at line 565 of file rte_pmd_bphy.h.
|
static |
Disable loopback mode for an interface
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
Definition at line 587 of file rte_pmd_bphy.h.
|
static |
Enable loopback mode for an interface
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
Definition at line 608 of file rte_pmd_bphy.h.
|
static |
Disable PTP on RX path
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
Definition at line 629 of file rte_pmd_bphy.h.
|
static |
Enable PTP on RX path
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
Definition at line 650 of file rte_pmd_bphy.h.
|
static |
Set link mode for a CGX
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| mode | Link mode to set |
Definition at line 673 of file rte_pmd_bphy.h.
|
static |
Set link state for a CGX
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| state | Link state to set |
Definition at line 698 of file rte_pmd_bphy.h.
|
static |
Start CGX
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
Definition at line 721 of file rte_pmd_bphy.h.
|
static |
Stop CGX
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
Definition at line 742 of file rte_pmd_bphy.h.
|
static |
Get supported list FEC mode
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| fec | FEC structure which holds information |
Definition at line 765 of file rte_pmd_bphy.h.
|
static |
Set FEC mode for a device
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| fec | FEC structure which holds information to set |
Definition at line 789 of file rte_pmd_bphy.h.
|
static |
Switch from eCPRI to CPRI and change
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| mode | CPRI structure which holds configuration data |
Definition at line 814 of file rte_pmd_bphy.h.
|
static |
Enable TX for SERDES configured in CPRI mode
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| mode | CPRI TX control structure holding control data |
Definition at line 839 of file rte_pmd_bphy.h.
|
static |
CPRI misc settings
| dev_id | The identifier of the device |
| lmac | LMAC number for operation |
| mode | CPRI settings holding misc control data |
Definition at line 864 of file rte_pmd_bphy.h.
| int rte_pmd_bphy_npa_pf_func_get_rmt | ( | uint16_t * | pf_func | ) |
Obtain NPA PF func
| pf_func | Address of an NPA PF and function for NPA free pointer requests to obtain |
| int rte_pmd_bphy_sso_pf_func_get_rmt | ( | uint16_t * | pf_func | ) |
Obtain SSO PF func
| pf_func | Address SSO PF and function for SSO add-work requests to obtain |