diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-12-01 19:36:16 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 00:24:49 -0500 |
commit | f1d3d38af75789f1b82969b83b69cab540609789 (patch) | |
tree | 47d31e8a55fb65cf33797197b92a332630cfc3ef /drivers/net/chelsio/cphy.h | |
parent | 415294ecbb32ddbd0a7a2b7bae0b60fedfa09cc4 (diff) |
[PATCH] chelsio: add support for other 10G boards
Add support for other versions of the 10G Chelsio boards.
This is basically a port of the vendor driver with the
TOE features removed.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/chelsio/cphy.h')
-rw-r--r-- | drivers/net/chelsio/cphy.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/drivers/net/chelsio/cphy.h b/drivers/net/chelsio/cphy.h index 3412342f7345..60901f25014e 100644 --- a/drivers/net/chelsio/cphy.h +++ b/drivers/net/chelsio/cphy.h | |||
@@ -52,7 +52,14 @@ struct mdio_ops { | |||
52 | /* PHY interrupt types */ | 52 | /* PHY interrupt types */ |
53 | enum { | 53 | enum { |
54 | cphy_cause_link_change = 0x1, | 54 | cphy_cause_link_change = 0x1, |
55 | cphy_cause_error = 0x2 | 55 | cphy_cause_error = 0x2, |
56 | cphy_cause_fifo_error = 0x3 | ||
57 | }; | ||
58 | |||
59 | enum { | ||
60 | PHY_LINK_UP = 0x1, | ||
61 | PHY_AUTONEG_RDY = 0x2, | ||
62 | PHY_AUTONEG_EN = 0x4 | ||
56 | }; | 63 | }; |
57 | 64 | ||
58 | struct cphy; | 65 | struct cphy; |
@@ -81,7 +88,18 @@ struct cphy_ops { | |||
81 | /* A PHY instance */ | 88 | /* A PHY instance */ |
82 | struct cphy { | 89 | struct cphy { |
83 | int addr; /* PHY address */ | 90 | int addr; /* PHY address */ |
91 | int state; /* Link status state machine */ | ||
84 | adapter_t *adapter; /* associated adapter */ | 92 | adapter_t *adapter; /* associated adapter */ |
93 | |||
94 | struct work_struct phy_update; | ||
95 | |||
96 | u16 bmsr; | ||
97 | int count; | ||
98 | int act_count; | ||
99 | int act_on; | ||
100 | |||
101 | u32 elmer_gpo; | ||
102 | |||
85 | struct cphy_ops *ops; /* PHY operations */ | 103 | struct cphy_ops *ops; /* PHY operations */ |
86 | 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, |
87 | int reg_addr, unsigned int *val); | 105 | int reg_addr, unsigned int *val); |
@@ -142,6 +160,10 @@ struct gphy { | |||
142 | int (*reset)(adapter_t *adapter); | 160 | int (*reset)(adapter_t *adapter); |
143 | }; | 161 | }; |
144 | 162 | ||
163 | extern struct gphy t1_my3126_ops; | ||
164 | extern struct gphy t1_mv88e1xxx_ops; | ||
165 | extern struct gphy t1_vsc8244_ops; | ||
166 | extern struct gphy t1_xpak_ops; | ||
145 | extern struct gphy t1_mv88x201x_ops; | 167 | extern struct gphy t1_mv88x201x_ops; |
146 | extern struct gphy t1_dummy_phy_ops; | 168 | extern struct gphy t1_dummy_phy_ops; |
147 | 169 | ||