aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-10-23 04:32:04 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-24 07:27:14 -0400
commit0484e0db7c4293d6202cff730ee359d8a7a6b085 (patch)
treed9eb02ef14b821323dc2548e303a8360aaf7357d /drivers/net/sfc/net_driver.h
parent59cf09cc2fdbb651193e95d7c3335e751b8f748d (diff)
sfc: Move shared members of struct falcon_nic_data into struct efx_nic
These will also be used with Siena NICs. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r--drivers/net/sfc/net_driver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h
index 8e7b854c11aa..25b793327c1b 100644
--- a/drivers/net/sfc/net_driver.h
+++ b/drivers/net/sfc/net_driver.h
@@ -688,10 +688,13 @@ union efx_multicast_hash {
688 * @tx_queue: TX DMA queues 688 * @tx_queue: TX DMA queues
689 * @rx_queue: RX DMA queues 689 * @rx_queue: RX DMA queues
690 * @channel: Channels 690 * @channel: Channels
691 * @next_buffer_table: First available buffer table id
691 * @n_rx_queues: Number of RX queues 692 * @n_rx_queues: Number of RX queues
692 * @n_channels: Number of channels in use 693 * @n_channels: Number of channels in use
693 * @rx_buffer_len: RX buffer length 694 * @rx_buffer_len: RX buffer length
694 * @rx_buffer_order: Order (log2) of number of pages for each RX buffer 695 * @rx_buffer_order: Order (log2) of number of pages for each RX buffer
696 * @int_error_count: Number of internal errors seen recently
697 * @int_error_expire: Time at which error count will be expired
695 * @irq_status: Interrupt status buffer 698 * @irq_status: Interrupt status buffer
696 * @last_irq_cpu: Last CPU to handle interrupt. 699 * @last_irq_cpu: Last CPU to handle interrupt.
697 * This register is written with the SMP processor ID whenever an 700 * This register is written with the SMP processor ID whenever an
@@ -775,11 +778,15 @@ struct efx_nic {
775 struct efx_rx_queue rx_queue[EFX_MAX_RX_QUEUES]; 778 struct efx_rx_queue rx_queue[EFX_MAX_RX_QUEUES];
776 struct efx_channel channel[EFX_MAX_CHANNELS]; 779 struct efx_channel channel[EFX_MAX_CHANNELS];
777 780
781 unsigned next_buffer_table;
778 int n_rx_queues; 782 int n_rx_queues;
779 int n_channels; 783 int n_channels;
780 unsigned int rx_buffer_len; 784 unsigned int rx_buffer_len;
781 unsigned int rx_buffer_order; 785 unsigned int rx_buffer_order;
782 786
787 unsigned int_error_count;
788 unsigned long int_error_expire;
789
783 struct efx_buffer irq_status; 790 struct efx_buffer irq_status;
784 volatile signed int last_irq_cpu; 791 volatile signed int last_irq_cpu;
785 792