1 /* SPDX-License-Identifier: BSD-3-Clause
12 #define PHYID_MAX_VAL 32
14 /* PFE DPDK driver supports two interfaces.
16 #define PFE_CDEV_ETH_COUNT 2
18 /* PFE DPDK driver needs a kernel module named "pfe.ko", This module
19 * is required for PHY initialisation and creates a character device
20 * "pfe_us_cdev" for IOCTL support. PFE DPDK driver uses this character
21 * device for link status.
23 #define PFE_CDEV_PATH "/dev/pfe_us_cdev"
24 #define PFE_CDEV_INVALID_FD -1
25 #define PFE_NAME_PMD net_pfe
27 /* used when 'read' call is issued, returning PFE_CDEV_ETH_COUNT number of
28 * pfe_shared_info as array.
30 struct pfe_shared_info {
31 uint32_t phy_id; /* Link phy ID */
32 uint8_t state; /* Has either 0 or 1 */
36 struct pfe_eth_priv_s *eth_priv[PFE_CDEV_ETH_COUNT];
40 uint64_t ddr_phys_baseaddr;
46 int mdio_muxval[PHYID_MAX_VAL];
53 #define PFE_CDEV_ETH0_STATE_GET _IOR('R', 0, int)
54 #define PFE_CDEV_ETH1_STATE_GET _IOR('R', 1, int)
55 #define PFE_CDEV_HIF_INTR_EN _IOWR('R', 2, int)
56 #endif /* _PFE_MOD_H */