diff options
author | raghavendra.koushik@neterion.com <raghavendra.koushik@neterion.com> | 2005-08-03 15:36:55 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-11 00:10:45 -0400 |
commit | 541ae68f6ddf1c27aa6879935ce541f110484202 (patch) | |
tree | f85387531b0e3f5888c296dfab185409ba4c1265 /drivers/net/s2io.h | |
parent | be3a6b02eb68a4d47397b771b6e4aa1f7f0f7ffb (diff) |
[PATCH] S2io: Support for Xframe II NIC
Hi,
This patch provides basic support for the Xframe II adapter.
Includes the following changes:
1. New values to program XAUI interface.
2. Print the PCI/PCI-X mode(bus frequency, width).
3. Remove EOI from reset during intialization.
4. Enable all 8 PCCs if Xframe II adapter.
5. Programs the RLDRAM size depending on the device.
(Note: RLDRAM size on XFARME-I is 64Mb whereas on XFRAME-II it's 32 Mb).
6. Enable extended(64-bit) statistics counters.
7. Program timer interrupt duration based on PCI/PCI-X clock speed.
8. Not required to save/restore PCI config space before/after reset.
Signed-off-by: Ravinandan Arakali <ravinandan.arakali@neterion.com>
Signed-off-by: Raghavendra Koushik <raghavendra.koushik@neterion.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r-- | drivers/net/s2io.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index b924ef21814a..df8cfd0475be 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h | |||
@@ -201,6 +201,67 @@ typedef struct stat_block { | |||
201 | u32 rxf_wr_cnt; | 201 | u32 rxf_wr_cnt; |
202 | u32 txf_rd_cnt; | 202 | u32 txf_rd_cnt; |
203 | 203 | ||
204 | /* Tx MAC statistics overflow counters. */ | ||
205 | u32 tmac_data_octets_oflow; | ||
206 | u32 tmac_frms_oflow; | ||
207 | u32 tmac_bcst_frms_oflow; | ||
208 | u32 tmac_mcst_frms_oflow; | ||
209 | u32 tmac_ucst_frms_oflow; | ||
210 | u32 tmac_ttl_octets_oflow; | ||
211 | u32 tmac_any_err_frms_oflow; | ||
212 | u32 tmac_nucst_frms_oflow; | ||
213 | u64 tmac_vlan_frms; | ||
214 | u32 tmac_drop_ip_oflow; | ||
215 | u32 tmac_vld_ip_oflow; | ||
216 | u32 tmac_rst_tcp_oflow; | ||
217 | u32 tmac_icmp_oflow; | ||
218 | u32 tpa_unknown_protocol; | ||
219 | u32 tmac_udp_oflow; | ||
220 | u32 reserved_10; | ||
221 | u32 tpa_parse_failure; | ||
222 | |||
223 | /* Rx MAC Statistics overflow counters. */ | ||
224 | u32 rmac_data_octets_oflow; | ||
225 | u32 rmac_vld_frms_oflow; | ||
226 | u32 rmac_vld_bcst_frms_oflow; | ||
227 | u32 rmac_vld_mcst_frms_oflow; | ||
228 | u32 rmac_accepted_ucst_frms_oflow; | ||
229 | u32 rmac_ttl_octets_oflow; | ||
230 | u32 rmac_discarded_frms_oflow; | ||
231 | u32 rmac_accepted_nucst_frms_oflow; | ||
232 | u32 rmac_usized_frms_oflow; | ||
233 | u32 rmac_drop_events_oflow; | ||
234 | u32 rmac_frag_frms_oflow; | ||
235 | u32 rmac_osized_frms_oflow; | ||
236 | u32 rmac_ip_oflow; | ||
237 | u32 rmac_jabber_frms_oflow; | ||
238 | u32 rmac_icmp_oflow; | ||
239 | u32 rmac_drop_ip_oflow; | ||
240 | u32 rmac_err_drp_udp_oflow; | ||
241 | u32 rmac_udp_oflow; | ||
242 | u32 reserved_11; | ||
243 | u32 rmac_pause_cnt_oflow; | ||
244 | u64 rmac_ttl_1519_4095_frms; | ||
245 | u64 rmac_ttl_4096_8191_frms; | ||
246 | u64 rmac_ttl_8192_max_frms; | ||
247 | u64 rmac_ttl_gt_max_frms; | ||
248 | u64 rmac_osized_alt_frms; | ||
249 | u64 rmac_jabber_alt_frms; | ||
250 | u64 rmac_gt_max_alt_frms; | ||
251 | u64 rmac_vlan_frms; | ||
252 | u32 rmac_len_discard; | ||
253 | u32 rmac_fcs_discard; | ||
254 | u32 rmac_pf_discard; | ||
255 | u32 rmac_da_discard; | ||
256 | u32 rmac_red_discard; | ||
257 | u32 rmac_rts_discard; | ||
258 | u32 reserved_12; | ||
259 | u32 rmac_ingm_full_discard; | ||
260 | u32 reserved_13; | ||
261 | u32 rmac_accepted_ip_oflow; | ||
262 | u32 reserved_14; | ||
263 | u32 link_fault_cnt; | ||
264 | |||
204 | /* Software statistics maintained by driver */ | 265 | /* Software statistics maintained by driver */ |
205 | swStat_t sw_stat; | 266 | swStat_t sw_stat; |
206 | } StatInfo_t; | 267 | } StatInfo_t; |
@@ -690,6 +751,9 @@ struct s2io_nic { | |||
690 | atomic_t card_state; | 751 | atomic_t card_state; |
691 | volatile unsigned long link_state; | 752 | volatile unsigned long link_state; |
692 | struct vlan_group *vlgrp; | 753 | struct vlan_group *vlgrp; |
754 | #define XFRAME_I_DEVICE 1 | ||
755 | #define XFRAME_II_DEVICE 2 | ||
756 | u8 device_type; | ||
693 | 757 | ||
694 | spinlock_t rx_lock; | 758 | spinlock_t rx_lock; |
695 | atomic_t isr_cnt; | 759 | atomic_t isr_cnt; |