aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/cphy.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/chelsio/cphy.h')
-rw-r--r--drivers/net/chelsio/cphy.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/chelsio/cphy.h b/drivers/net/chelsio/cphy.h
index cf9143499882..79d855e267e0 100644
--- a/drivers/net/chelsio/cphy.h
+++ b/drivers/net/chelsio/cphy.h
@@ -100,7 +100,7 @@ struct cphy {
100 100
101 u32 elmer_gpo; 101 u32 elmer_gpo;
102 102
103 struct cphy_ops *ops; /* PHY operations */ 103 const struct cphy_ops *ops; /* PHY operations */
104 int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr, 104 int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr,
105 int reg_addr, unsigned int *val); 105 int reg_addr, unsigned int *val);
106 int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr, 106 int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr,
@@ -136,7 +136,7 @@ static inline int simple_mdio_write(struct cphy *cphy, int reg,
136/* Convenience initializer */ 136/* Convenience initializer */
137static inline void cphy_init(struct cphy *phy, adapter_t *adapter, 137static inline void cphy_init(struct cphy *phy, adapter_t *adapter,
138 int phy_addr, struct cphy_ops *phy_ops, 138 int phy_addr, struct cphy_ops *phy_ops,
139 struct mdio_ops *mdio_ops) 139 const struct mdio_ops *mdio_ops)
140{ 140{
141 phy->adapter = adapter; 141 phy->adapter = adapter;
142 phy->addr = phy_addr; 142 phy->addr = phy_addr;
@@ -151,7 +151,7 @@ static inline void cphy_init(struct cphy *phy, adapter_t *adapter,
151struct gphy { 151struct gphy {
152 /* Construct a PHY instance with the given PHY address */ 152 /* Construct a PHY instance with the given PHY address */
153 struct cphy *(*create)(adapter_t *adapter, int phy_addr, 153 struct cphy *(*create)(adapter_t *adapter, int phy_addr,
154 struct mdio_ops *mdio_ops); 154 const struct mdio_ops *mdio_ops);
155 155
156 /* 156 /*
157 * Reset the PHY chip. This resets the whole PHY chip, not individual 157 * Reset the PHY chip. This resets the whole PHY chip, not individual
@@ -160,11 +160,9 @@ struct gphy {
160 int (*reset)(adapter_t *adapter); 160 int (*reset)(adapter_t *adapter);
161}; 161};
162 162
163extern struct gphy t1_my3126_ops; 163extern const struct gphy t1_my3126_ops;
164extern struct gphy t1_mv88e1xxx_ops; 164extern const struct gphy t1_mv88e1xxx_ops;
165extern struct gphy t1_vsc8244_ops; 165extern const struct gphy t1_vsc8244_ops;
166extern struct gphy t1_xpak_ops; 166extern const struct gphy t1_mv88x201x_ops;
167extern struct gphy t1_mv88x201x_ops;
168extern struct gphy t1_dummy_phy_ops;
169 167
170#endif /* _CXGB_CPHY_H_ */ 168#endif /* _CXGB_CPHY_H_ */