aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-28 22:42:10 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-29 19:46:26 -0500
commit674979d33566ab7e524e25fdc227923e27a3fb78 (patch)
tree5f4dbf65b4153c90145d6feb0f23894c3ea0d587 /drivers/net/sfc
parent39e60212087a36a53daca3904563012ccaf6e92d (diff)
sfc: Remove duplicate hardware structure definitions
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/falcon.c6
-rw-r--r--drivers/net/sfc/regs.h12
2 files changed, 3 insertions, 15 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index b7e9238aaec4..08f540f072b8 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -1463,8 +1463,8 @@ static irqreturn_t falcon_legacy_interrupt_a1(int irq, void *dev_id)
1463 /* Determine interrupting queues, clear interrupt status 1463 /* Determine interrupting queues, clear interrupt status
1464 * register and acknowledge the device interrupt. 1464 * register and acknowledge the device interrupt.
1465 */ 1465 */
1466 BUILD_BUG_ON(INT_EVQS_WIDTH > EFX_MAX_CHANNELS); 1466 BUILD_BUG_ON(FSF_AZ_NET_IVEC_INT_Q_WIDTH > EFX_MAX_CHANNELS);
1467 queues = EFX_OWORD_FIELD(*int_ker, INT_EVQS); 1467 queues = EFX_OWORD_FIELD(*int_ker, FSF_AZ_NET_IVEC_INT_Q);
1468 EFX_ZERO_OWORD(*int_ker); 1468 EFX_ZERO_OWORD(*int_ker);
1469 wmb(); /* Ensure the vector is cleared before interrupt ack */ 1469 wmb(); /* Ensure the vector is cleared before interrupt ack */
1470 falcon_irq_ack_a1(efx); 1470 falcon_irq_ack_a1(efx);
@@ -1500,7 +1500,7 @@ static irqreturn_t falcon_msi_interrupt(int irq, void *dev_id)
1500 irq, raw_smp_processor_id(), EFX_OWORD_VAL(*int_ker)); 1500 irq, raw_smp_processor_id(), EFX_OWORD_VAL(*int_ker));
1501 1501
1502 /* Check to see if we have a serious error condition */ 1502 /* Check to see if we have a serious error condition */
1503 syserr = EFX_OWORD_FIELD(*int_ker, FATAL_INT); 1503 syserr = EFX_OWORD_FIELD(*int_ker, FSF_AZ_NET_IVEC_FATAL_INT);
1504 if (unlikely(syserr)) 1504 if (unlikely(syserr))
1505 return falcon_fatal_interrupt(efx); 1505 return falcon_fatal_interrupt(efx);
1506 1506
diff --git a/drivers/net/sfc/regs.h b/drivers/net/sfc/regs.h
index f336d83d5fa0..89d606fe9248 100644
--- a/drivers/net/sfc/regs.h
+++ b/drivers/net/sfc/regs.h
@@ -3106,18 +3106,6 @@
3106#define FALCON_STATS_NOT_DONE 0x00000000 3106#define FALCON_STATS_NOT_DONE 0x00000000
3107#define FALCON_STATS_DONE 0xffffffff 3107#define FALCON_STATS_DONE 0xffffffff
3108 3108
3109/* Interrupt status register bits */
3110#define FATAL_INT_LBN 64
3111#define FATAL_INT_WIDTH 1
3112#define INT_EVQS_LBN 40
3113#define INT_EVQS_WIDTH 4
3114#define INT_FLAG_LBN 32
3115#define INT_FLAG_WIDTH 1
3116#define EVQ_FIFO_HF_LBN 1
3117#define EVQ_FIFO_HF_WIDTH 1
3118#define EVQ_FIFO_AF_LBN 0
3119#define EVQ_FIFO_AF_WIDTH 1
3120
3121/************************************************************************** 3109/**************************************************************************
3122 * 3110 *
3123 * Falcon non-volatile configuration 3111 * Falcon non-volatile configuration