~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/pcs/pcs-xpcs.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/pcs/pcs-xpcs.h (Architecture mips) and /include/linux/pcs/pcs-xpcs.h (Architecture m68k)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * Copyright (c) 2020 Synopsys, Inc. and/or it      3  * Copyright (c) 2020 Synopsys, Inc. and/or its affiliates.
  4  * Synopsys DesignWare XPCS helpers                 4  * Synopsys DesignWare XPCS helpers
  5  */                                                 5  */
  6                                                     6 
  7 #ifndef __LINUX_PCS_XPCS_H                          7 #ifndef __LINUX_PCS_XPCS_H
  8 #define __LINUX_PCS_XPCS_H                          8 #define __LINUX_PCS_XPCS_H
  9                                                     9 
 10 #include <linux/clk.h>                             10 #include <linux/clk.h>
 11 #include <linux/fwnode.h>                          11 #include <linux/fwnode.h>
 12 #include <linux/mdio.h>                            12 #include <linux/mdio.h>
 13 #include <linux/phy.h>                             13 #include <linux/phy.h>
 14 #include <linux/phylink.h>                         14 #include <linux/phylink.h>
 15 #include <linux/types.h>                           15 #include <linux/types.h>
 16                                                    16 
 17 /* AN mode */                                      17 /* AN mode */
 18 #define DW_AN_C73                       1          18 #define DW_AN_C73                       1
 19 #define DW_AN_C37_SGMII                 2          19 #define DW_AN_C37_SGMII                 2
 20 #define DW_2500BASEX                    3          20 #define DW_2500BASEX                    3
 21 #define DW_AN_C37_1000BASEX             4          21 #define DW_AN_C37_1000BASEX             4
 22 #define DW_10GBASER                     5          22 #define DW_10GBASER                     5
 23                                                    23 
 24 struct dw_xpcs_desc;                               24 struct dw_xpcs_desc;
 25                                                    25 
 26 enum dw_xpcs_pcs_id {                              26 enum dw_xpcs_pcs_id {
 27         DW_XPCS_ID_NATIVE = 0,                     27         DW_XPCS_ID_NATIVE = 0,
 28         NXP_SJA1105_XPCS_ID = 0x00000010,          28         NXP_SJA1105_XPCS_ID = 0x00000010,
 29         NXP_SJA1110_XPCS_ID = 0x00000020,          29         NXP_SJA1110_XPCS_ID = 0x00000020,
 30         DW_XPCS_ID = 0x7996ced0,                   30         DW_XPCS_ID = 0x7996ced0,
 31         DW_XPCS_ID_MASK = 0xffffffff,              31         DW_XPCS_ID_MASK = 0xffffffff,
 32 };                                                 32 };
 33                                                    33 
 34 enum dw_xpcs_pma_id {                              34 enum dw_xpcs_pma_id {
 35         DW_XPCS_PMA_ID_NATIVE = 0,                 35         DW_XPCS_PMA_ID_NATIVE = 0,
 36         DW_XPCS_PMA_GEN1_3G_ID,                    36         DW_XPCS_PMA_GEN1_3G_ID,
 37         DW_XPCS_PMA_GEN2_3G_ID,                    37         DW_XPCS_PMA_GEN2_3G_ID,
 38         DW_XPCS_PMA_GEN2_6G_ID,                    38         DW_XPCS_PMA_GEN2_6G_ID,
 39         DW_XPCS_PMA_GEN4_3G_ID,                    39         DW_XPCS_PMA_GEN4_3G_ID,
 40         DW_XPCS_PMA_GEN4_6G_ID,                    40         DW_XPCS_PMA_GEN4_6G_ID,
 41         DW_XPCS_PMA_GEN5_10G_ID,                   41         DW_XPCS_PMA_GEN5_10G_ID,
 42         DW_XPCS_PMA_GEN5_12G_ID,                   42         DW_XPCS_PMA_GEN5_12G_ID,
 43         WX_TXGBE_XPCS_PMA_10G_ID = 0x0018fc80,     43         WX_TXGBE_XPCS_PMA_10G_ID = 0x0018fc80,
 44 };                                                 44 };
 45                                                    45 
 46 struct dw_xpcs_info {                              46 struct dw_xpcs_info {
 47         u32 pcs;                                   47         u32 pcs;
 48         u32 pma;                                   48         u32 pma;
 49 };                                                 49 };
 50                                                    50 
 51 enum dw_xpcs_clock {                               51 enum dw_xpcs_clock {
 52         DW_XPCS_CORE_CLK,                          52         DW_XPCS_CORE_CLK,
 53         DW_XPCS_PAD_CLK,                           53         DW_XPCS_PAD_CLK,
 54         DW_XPCS_NUM_CLKS,                          54         DW_XPCS_NUM_CLKS,
 55 };                                                 55 };
 56                                                    56 
 57 struct dw_xpcs {                                   57 struct dw_xpcs {
 58         struct dw_xpcs_info info;                  58         struct dw_xpcs_info info;
 59         const struct dw_xpcs_desc *desc;           59         const struct dw_xpcs_desc *desc;
 60         struct mdio_device *mdiodev;               60         struct mdio_device *mdiodev;
 61         struct clk_bulk_data clks[DW_XPCS_NUM_     61         struct clk_bulk_data clks[DW_XPCS_NUM_CLKS];
 62         struct phylink_pcs pcs;                    62         struct phylink_pcs pcs;
 63         phy_interface_t interface;                 63         phy_interface_t interface;
 64 };                                                 64 };
 65                                                    65 
 66 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy     66 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface);
 67 void xpcs_link_up(struct phylink_pcs *pcs, uns     67 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
 68                   phy_interface_t interface, i     68                   phy_interface_t interface, int speed, int duplex);
 69 int xpcs_do_config(struct dw_xpcs *xpcs, phy_i     69 int xpcs_do_config(struct dw_xpcs *xpcs, phy_interface_t interface,
 70                    const unsigned long *advert     70                    const unsigned long *advertising, unsigned int neg_mode);
 71 void xpcs_get_interfaces(struct dw_xpcs *xpcs,     71 void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces);
 72 int xpcs_config_eee(struct dw_xpcs *xpcs, int      72 int xpcs_config_eee(struct dw_xpcs *xpcs, int mult_fact_100ns,
 73                     int enable);                   73                     int enable);
 74 struct dw_xpcs *xpcs_create_mdiodev(struct mii     74 struct dw_xpcs *xpcs_create_mdiodev(struct mii_bus *bus, int addr,
 75                                     phy_interf     75                                     phy_interface_t interface);
 76 struct dw_xpcs *xpcs_create_fwnode(struct fwno     76 struct dw_xpcs *xpcs_create_fwnode(struct fwnode_handle *fwnode,
 77                                    phy_interfa     77                                    phy_interface_t interface);
 78 void xpcs_destroy(struct dw_xpcs *xpcs);           78 void xpcs_destroy(struct dw_xpcs *xpcs);
 79                                                    79 
 80 #endif /* __LINUX_PCS_XPCS_H */                    80 #endif /* __LINUX_PCS_XPCS_H */
 81                                                    81 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php