aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-02-16 02:59:44 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:59:44 -0500
commitcbd347adfee2ba52a8ef85f92a46933d5840cc39 (patch)
tree6fe593287cc6486e78201da9419255530046fac1 /drivers/net/igb/igb.h
parentbc1cbd3493c7a6b44fa6a1e6040ae3d9640d47c4 (diff)
igb: remove unused defines
This patch removes all of the unused defines from the .h files contained in igb. For some defines there was a use and so I plugged them into the correct locations. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index bb8c35cec1ab..1f09e042a5f2 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -40,17 +40,9 @@
40 40
41struct igb_adapter; 41struct igb_adapter;
42 42
43/* Interrupt defines */
44#define IGB_MIN_DYN_ITR 3000
45#define IGB_MAX_DYN_ITR 96000
46
47/* ((1000000000ns / (6000ints/s * 1024ns)) << 2 = 648 */ 43/* ((1000000000ns / (6000ints/s * 1024ns)) << 2 = 648 */
48#define IGB_START_ITR 648 44#define IGB_START_ITR 648
49 45
50#define IGB_DYN_ITR_PACKET_THRESHOLD 2
51#define IGB_DYN_ITR_LENGTH_LOW 200
52#define IGB_DYN_ITR_LENGTH_HIGH 1000
53
54/* TX/RX descriptor defines */ 46/* TX/RX descriptor defines */
55#define IGB_DEFAULT_TXD 256 47#define IGB_DEFAULT_TXD 256
56#define IGB_MIN_TXD 80 48#define IGB_MIN_TXD 80
@@ -92,8 +84,6 @@ struct igb_adapter;
92#define IGB_RXBUFFER_512 512 84#define IGB_RXBUFFER_512 512
93#define IGB_RXBUFFER_1024 1024 85#define IGB_RXBUFFER_1024 1024
94#define IGB_RXBUFFER_2048 2048 86#define IGB_RXBUFFER_2048 2048
95#define IGB_RXBUFFER_4096 4096
96#define IGB_RXBUFFER_8192 8192
97#define IGB_RXBUFFER_16384 16384 87#define IGB_RXBUFFER_16384 16384
98 88
99/* Packet Buffer allocations */ 89/* Packet Buffer allocations */
@@ -286,10 +276,9 @@ struct igb_adapter {
286}; 276};
287 277
288#define IGB_FLAG_HAS_MSI (1 << 0) 278#define IGB_FLAG_HAS_MSI (1 << 0)
289#define IGB_FLAG_MSI_ENABLE (1 << 1) 279#define IGB_FLAG_DCA_ENABLED (1 << 1)
290#define IGB_FLAG_DCA_ENABLED (1 << 2) 280#define IGB_FLAG_QUAD_PORT_A (1 << 2)
291#define IGB_FLAG_QUAD_PORT_A (1 << 3) 281#define IGB_FLAG_NEED_CTX_IDX (1 << 3)
292#define IGB_FLAG_NEED_CTX_IDX (1 << 4)
293 282
294enum e1000_state_t { 283enum e1000_state_t {
295 __IGB_TESTING, 284 __IGB_TESTING,