Staging: et131x: Kill unused error defines
[safe/jmp/linux-2.6] / drivers / staging / et131x / et131x_adapter.h
index 283d08a..6f7bb2d 100644 (file)
  */
 #define NUM_TRAFFIC_CLASSES          1
 
-/*
- * There are three ways of counting errors - if there are more than X errors
- * in Y packets (represented by the "SAMPLE" macros), if there are more than
- * N errors in a S mSec time period (the "PERIOD" macros), or if there are
- * consecutive packets with errors (CONSEC_ERRORED_THRESH).  This last covers
- * for "Bursty" errors, and the errored packets may well not be contiguous,
- * but several errors where the packet counter has changed by less than a
- * small amount will cause this count to increment.
- */
-#define TX_PACKETS_IN_SAMPLE        10000
-#define TX_MAX_ERRORS_IN_SAMPLE     50
-
 #define TX_ERROR_PERIOD             1000
-#define TX_MAX_ERRORS_IN_PERIOD     10
-
-#define LINK_DETECTION_TIMER        5000
-
-#define TX_CONSEC_RANGE             5
-#define TX_CONSEC_ERRORED_THRESH    10
 
 #define LO_MARK_PERCENT_FOR_PSR     15
 #define LO_MARK_PERCENT_FOR_RX      15
 
-/* Macros specific to the private adapter structure */
-#define MP_TCB_RESOURCES_AVAILABLE(_M) ((_M)->tx_ring.nBusySend < NUM_TCB)
-#define MP_TCB_RESOURCES_NOT_AVAILABLE(_M) ((_M)->tx_ring.nBusySend >= NUM_TCB)
-
-#define MP_SHOULD_FAIL_SEND(_M)   ((_M)->Flags & fMP_ADAPTER_FAIL_SEND_MASK)
-
-/* Counters for error rate monitoring */
-typedef struct _MP_ERR_COUNTERS {
-       u32 PktCountTxPackets;
-       u32 PktCountTxErrors;
-       u32 TimerBasedTxErrors;
-       u32 PktCountLastError;
-       u32 ErredConsecPackets;
-} MP_ERR_COUNTERS, *PMP_ERR_COUNTERS;
-
 /* RFD (Receive Frame Descriptor) */
 typedef struct _MP_RFD {
        struct list_head list_node;
@@ -168,7 +135,7 @@ typedef struct _ce_stats_t {
        u32 tx_deferred;
 
        /* Rx Statistics. */
-       u32 rx_ov_flow; /* Rx Over Flow */
+       u32 rx_ov_flow; /* Rx Overflow */
 
        u32 length_err;
        u32 alignment_err;
@@ -203,7 +170,6 @@ struct et131x_adapter {
        spinlock_t TCBSendQLock;
        spinlock_t TCBReadyQLock;
        spinlock_t SendHWLock;
-       spinlock_t SendWaitLock;
 
        spinlock_t RcvLock;
        spinlock_t RcvPendLock;
@@ -220,9 +186,6 @@ struct et131x_adapter {
        u32 MCAddressCount;
        u8 MCList[NIC_MAX_MCAST_LIST][ETH_ALEN];
 
-       /* MAC test */
-       TXMAC_TXTEST_t TxMacTest;
-
        /* Pointer to the device's PCI register space */
        ADDRESS_MAP_t __iomem *regs;
 
@@ -258,7 +221,7 @@ struct et131x_adapter {
        struct tx_ring tx_ring;
 
        /* Rx Memory Variables */
-       RX_RING_t RxRing;
+       struct rx_ring rx_ring;
 
        /* Loopback specifics */
        u8 ReplicaPhyLoopbk;    /* Replica Enable */