diff options
author | Jiawen Wu <jiawenwu@trustnetic.com> | 2023-08-23 14:19:28 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-25 07:42:58 +0100 |
commit | d55595f04dcc8bd6f6ff33f451dda8de3f1232da (patch) | |
tree | 32509f212fcacc45da21a5675f7dc7deb74e39a2 /include/linux/pcs/pcs-xpcs.h | |
parent | 1355fe134a220a3bc6dd5ce63f3ef999f455dcbd (diff) |
net: pcs: xpcs: add specific vendor supoprt for Wangxun 10Gb NICs
Since Wangxun 10Gb NICs require some special configuration on the IP of
Synopsys Designware XPCS, introduce dev_flag for different vendors. Read
OUI from device identifier registers, to detect Wangxun devices.
And xpcs_soft_reset() is skipped to avoid the reset of device identifier
registers.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pcs/pcs-xpcs.h')
-rw-r--r-- | include/linux/pcs/pcs-xpcs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pcs/pcs-xpcs.h b/include/linux/pcs/pcs-xpcs.h index ff99cf7a5d0d..f37e8acfd351 100644 --- a/include/linux/pcs/pcs-xpcs.h +++ b/include/linux/pcs/pcs-xpcs.h @@ -20,12 +20,19 @@ #define DW_AN_C37_1000BASEX 4 #define DW_10GBASER 5 +/* device vendor OUI */ +#define DW_OUI_WX 0x0018fc80 + +/* dev_flag */ +#define DW_DEV_TXGBE BIT(0) + struct xpcs_id; struct dw_xpcs { struct mdio_device *mdiodev; const struct xpcs_id *id; struct phylink_pcs pcs; + int dev_flag; }; int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface); |