diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-07 22:21:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-07 22:21:56 -0500 |
commit | 7677ced48e2bbbb8d847d34f37e5d96d2b0e41e4 (patch) | |
tree | 0a859f403c02eb854d9ffa11bd17f77056891d07 /drivers/net/spider_net.h | |
parent | 21d37bbc65e39a26856de6b14be371ff24e0d03f (diff) | |
parent | ac38dfc39e7684f55174742e5f0d6c5a0093bbf6 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (116 commits)
sk98lin: planned removal
AT91: MACB support
sky2: version 1.12
sky2: add new chip ids
sky2: Yukon Extreme support
sky2: safer transmit timeout
sky2: TSO support for EC_U
sky2: use dev_err for error reports
sky2: add Wake On Lan support
fix unaligned exception in /drivers/net/wireless/orinoco.c
Remove unused kernel config option DLCI_COUNT
z85230: spinlock logic
mips: declance: Driver model for the PMAD-A
Spidernet: Rework RX linked list
NET: turn local_save_flags() + local_irq_disable() into local_irq_save()
NET-3c59x: turn local_save_flags() + local_irq_disable() into local_irq_save()
hp100: convert pci_module_init() to pci_register_driver()
NetXen: Added ethtool support for user level tools.
NetXen: Firmware crb init changes.
maintainers: add atl1 maintainers
...
Diffstat (limited to 'drivers/net/spider_net.h')
-rw-r--r-- | drivers/net/spider_net.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/net/spider_net.h b/drivers/net/spider_net.h index 3e196df29790..2fec5cf76926 100644 --- a/drivers/net/spider_net.h +++ b/drivers/net/spider_net.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #ifndef _SPIDER_NET_H | 24 | #ifndef _SPIDER_NET_H |
25 | #define _SPIDER_NET_H | 25 | #define _SPIDER_NET_H |
26 | 26 | ||
27 | #define VERSION "1.6 A" | 27 | #define VERSION "1.6 B" |
28 | 28 | ||
29 | #include "sungem_phy.h" | 29 | #include "sungem_phy.h" |
30 | 30 | ||
@@ -378,6 +378,9 @@ struct spider_net_descr_chain { | |||
378 | spinlock_t lock; | 378 | spinlock_t lock; |
379 | struct spider_net_descr *head; | 379 | struct spider_net_descr *head; |
380 | struct spider_net_descr *tail; | 380 | struct spider_net_descr *tail; |
381 | struct spider_net_descr *ring; | ||
382 | int num_desc; | ||
383 | dma_addr_t dma_addr; | ||
381 | }; | 384 | }; |
382 | 385 | ||
383 | /* descriptor data_status bits */ | 386 | /* descriptor data_status bits */ |
@@ -397,8 +400,6 @@ struct spider_net_descr_chain { | |||
397 | * 701b8000 would be correct, but every packets gets that flag */ | 400 | * 701b8000 would be correct, but every packets gets that flag */ |
398 | #define SPIDER_NET_DESTROY_RX_FLAGS 0x700b8000 | 401 | #define SPIDER_NET_DESTROY_RX_FLAGS 0x700b8000 |
399 | 402 | ||
400 | #define SPIDER_NET_DESCR_SIZE 32 | ||
401 | |||
402 | /* this will be bigger some time */ | 403 | /* this will be bigger some time */ |
403 | struct spider_net_options { | 404 | struct spider_net_options { |
404 | int rx_csum; /* for rx: if 0 ip_summed=NONE, | 405 | int rx_csum; /* for rx: if 0 ip_summed=NONE, |
@@ -441,25 +442,16 @@ struct spider_net_card { | |||
441 | struct spider_net_descr_chain rx_chain; | 442 | struct spider_net_descr_chain rx_chain; |
442 | struct spider_net_descr *low_watermark; | 443 | struct spider_net_descr *low_watermark; |
443 | 444 | ||
444 | struct net_device_stats netdev_stats; | ||
445 | |||
446 | struct spider_net_options options; | ||
447 | |||
448 | spinlock_t intmask_lock; | ||
449 | struct tasklet_struct rxram_full_tl; | ||
450 | struct timer_list tx_timer; | 445 | struct timer_list tx_timer; |
451 | |||
452 | struct work_struct tx_timeout_task; | 446 | struct work_struct tx_timeout_task; |
453 | atomic_t tx_timeout_task_counter; | 447 | atomic_t tx_timeout_task_counter; |
454 | wait_queue_head_t waitq; | 448 | wait_queue_head_t waitq; |
455 | 449 | ||
456 | /* for ethtool */ | 450 | /* for ethtool */ |
457 | int msg_enable; | 451 | int msg_enable; |
458 | int num_rx_desc; | 452 | struct net_device_stats netdev_stats; |
459 | int num_tx_desc; | ||
460 | struct spider_net_extra_stats spider_stats; | 453 | struct spider_net_extra_stats spider_stats; |
461 | 454 | struct spider_net_options options; | |
462 | struct spider_net_descr descr[0]; | ||
463 | }; | 455 | }; |
464 | 456 | ||
465 | #define pr_err(fmt,arg...) \ | 457 | #define pr_err(fmt,arg...) \ |