168 * compatible mode. We don't want to report repeated link up/down
169 * cycles, so we wait until we think it's stable.]
170 *
171 * BGE_SERDES_STABLE_TIME is the analogous value for the SerDes
172 * interface. It's much shorter, 'cos the SerDes doesn't show
173 * these effects as much as the copper PHY.
174 *
175 * BGE_LINK_SETTLE_TIME is the period during which we regard link
176 * up/down cycles as an normal event after resetting/reprogramming
177 * the PHY. During this time, link up/down messages are sent to
178 * the log only, not the console. At any other time, link change
179 * events are regarded as unexpected and sent to both console & log.
180 *
181 * These latter two values have no theoretical justification, but
182 * are derived from observations and heuristics - the values below
183 * just seem to work quite well.
184 */
185
186 #define BGE_HALFTICK 268435456LL /* 2**28 ns! */
187 #define BGE_CYCLIC_PERIOD (4*BGE_HALFTICK) /* ~1.0s */
188 #define BGE_CYCLIC_TIMEOUT (drv_usectohz(1000000)) /* ~1.0s */
189 #define BGE_SERDES_STABLE_TIME (3*BGE_HALFTICK) /* ~0.8s */
190 #define BGE_PHY_STABLE_TIME (11*BGE_HALFTICK) /* ~3.0s */
191 #define BGE_LINK_SETTLE_TIME (111*BGE_HALFTICK) /* ~30.0s */
192
193 /*
194 * Indices used to identify the different buffer rings internally
195 */
196 #define BGE_STD_BUFF_RING 0
197 #define BGE_JUMBO_BUFF_RING 1
198 #define BGE_MINI_BUFF_RING 2
199
200 /*
201 * Current implementation limits
202 */
203 #define BGE_BUFF_RINGS_USED 2 /* std & jumbo ring */
204 /* for now */
205 #define BGE_RECV_RINGS_USED 16 /* up to 16 rtn rings */
206 /* for now */
207 #define BGE_SEND_RINGS_USED 4 /* up to 4 tx rings */
208 /* for now */
|
168 * compatible mode. We don't want to report repeated link up/down
169 * cycles, so we wait until we think it's stable.]
170 *
171 * BGE_SERDES_STABLE_TIME is the analogous value for the SerDes
172 * interface. It's much shorter, 'cos the SerDes doesn't show
173 * these effects as much as the copper PHY.
174 *
175 * BGE_LINK_SETTLE_TIME is the period during which we regard link
176 * up/down cycles as an normal event after resetting/reprogramming
177 * the PHY. During this time, link up/down messages are sent to
178 * the log only, not the console. At any other time, link change
179 * events are regarded as unexpected and sent to both console & log.
180 *
181 * These latter two values have no theoretical justification, but
182 * are derived from observations and heuristics - the values below
183 * just seem to work quite well.
184 */
185
186 #define BGE_HALFTICK 268435456LL /* 2**28 ns! */
187 #define BGE_CYCLIC_PERIOD (4*BGE_HALFTICK) /* ~1.0s */
188 #define BGE_CYCLIC_TIMEOUT drv_sectohz(1) /* ~1.0s */
189 #define BGE_SERDES_STABLE_TIME (3*BGE_HALFTICK) /* ~0.8s */
190 #define BGE_PHY_STABLE_TIME (11*BGE_HALFTICK) /* ~3.0s */
191 #define BGE_LINK_SETTLE_TIME (111*BGE_HALFTICK) /* ~30.0s */
192
193 /*
194 * Indices used to identify the different buffer rings internally
195 */
196 #define BGE_STD_BUFF_RING 0
197 #define BGE_JUMBO_BUFF_RING 1
198 #define BGE_MINI_BUFF_RING 2
199
200 /*
201 * Current implementation limits
202 */
203 #define BGE_BUFF_RINGS_USED 2 /* std & jumbo ring */
204 /* for now */
205 #define BGE_RECV_RINGS_USED 16 /* up to 16 rtn rings */
206 /* for now */
207 #define BGE_SEND_RINGS_USED 4 /* up to 4 tx rings */
208 /* for now */
|