aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/7990.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-09-13 13:24:59 -0400
committerJeff Garzik <jeff@garzik.org>2006-09-13 13:24:59 -0400
commit6aa20a2235535605db6d6d2bd850298b2fe7f31e (patch)
treedf0b855043407b831d57f2f2c271f8aab48444f4 /drivers/net/7990.h
parent7a291083225af6e22ffaa46b3d91cfc1a1ccaab4 (diff)
drivers/net: Trim trailing whitespace
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/7990.h')
-rw-r--r--drivers/net/7990.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/7990.h b/drivers/net/7990.h
index 31ae5099738d..b1212b5ed92f 100644
--- a/drivers/net/7990.h
+++ b/drivers/net/7990.h
@@ -1,9 +1,9 @@
1/* 1/*
2 * 7990.h -- LANCE ethernet IC generic routines. 2 * 7990.h -- LANCE ethernet IC generic routines.
3 * This is an attempt to separate out the bits of various ethernet 3 * This is an attempt to separate out the bits of various ethernet
4 * drivers that are common because they all use the AMD 7990 LANCE 4 * drivers that are common because they all use the AMD 7990 LANCE
5 * (Local Area Network Controller for Ethernet) chip. 5 * (Local Area Network Controller for Ethernet) chip.
6 * 6 *
7 * Copyright (C) 05/1998 Peter Maydell <pmaydell@chiark.greenend.org.uk> 7 * Copyright (C) 05/1998 Peter Maydell <pmaydell@chiark.greenend.org.uk>
8 * 8 *
9 * Most of this stuff was obtained by looking at other LANCE drivers, 9 * Most of this stuff was obtained by looking at other LANCE drivers,
@@ -55,7 +55,7 @@ struct lance_rx_desc {
55 */ 55 */
56 volatile unsigned short mblength; /* Actual number of bytes received */ 56 volatile unsigned short mblength; /* Actual number of bytes received */
57}; 57};
58 58
59/* Ditto for TMD: */ 59/* Ditto for TMD: */
60struct lance_tx_desc { 60struct lance_tx_desc {
61 volatile unsigned short tmd0; /* low address of packet */ 61 volatile unsigned short tmd0; /* low address of packet */
@@ -80,8 +80,8 @@ struct lance_init_block {
80 volatile unsigned short rx_len; /* receive len and high addr */ 80 volatile unsigned short rx_len; /* receive len and high addr */
81 volatile unsigned short tx_ptr; /* transmit descriptor addr */ 81 volatile unsigned short tx_ptr; /* transmit descriptor addr */
82 volatile unsigned short tx_len; /* transmit len and high addr */ 82 volatile unsigned short tx_len; /* transmit len and high addr */
83 83
84 /* The Tx and Rx ring entries must be aligned on 8-byte boundaries. 84 /* The Tx and Rx ring entries must be aligned on 8-byte boundaries.
85 * This will be true if this whole struct is 8-byte aligned. 85 * This will be true if this whole struct is 8-byte aligned.
86 */ 86 */
87 volatile struct lance_tx_desc btx_ring[TX_RING_SIZE]; 87 volatile struct lance_tx_desc btx_ring[TX_RING_SIZE];
@@ -104,21 +104,21 @@ struct lance_private
104 unsigned long base; 104 unsigned long base;
105 volatile struct lance_init_block *init_block; /* CPU address of RAM */ 105 volatile struct lance_init_block *init_block; /* CPU address of RAM */
106 volatile struct lance_init_block *lance_init_block; /* LANCE address of RAM */ 106 volatile struct lance_init_block *lance_init_block; /* LANCE address of RAM */
107 107
108 int rx_new, tx_new; 108 int rx_new, tx_new;
109 int rx_old, tx_old; 109 int rx_old, tx_old;
110 110
111 int lance_log_rx_bufs, lance_log_tx_bufs; 111 int lance_log_rx_bufs, lance_log_tx_bufs;
112 int rx_ring_mod_mask, tx_ring_mod_mask; 112 int rx_ring_mod_mask, tx_ring_mod_mask;
113 113
114 struct net_device_stats stats; 114 struct net_device_stats stats;
115 int tpe; /* TPE is selected */ 115 int tpe; /* TPE is selected */
116 int auto_select; /* cable-selection is by carrier */ 116 int auto_select; /* cable-selection is by carrier */
117 unsigned short busmaster_regval; 117 unsigned short busmaster_regval;
118 118
119 unsigned int irq; /* IRQ to register */ 119 unsigned int irq; /* IRQ to register */
120 120
121 /* This is because the HP LANCE is disgusting and you have to check 121 /* This is because the HP LANCE is disgusting and you have to check
122 * a DIO-specific register every time you read/write the LANCE regs :-< 122 * a DIO-specific register every time you read/write the LANCE regs :-<
123 * [could we get away with making these some sort of macro?] 123 * [could we get away with making these some sort of macro?]
124 */ 124 */
@@ -148,7 +148,7 @@ struct lance_private
148#define LE_C0_RINT 0x0400 /* Receive Interrupt */ 148#define LE_C0_RINT 0x0400 /* Receive Interrupt */
149#define LE_C0_TINT 0x0200 /* Transmit Interrupt */ 149#define LE_C0_TINT 0x0200 /* Transmit Interrupt */
150#define LE_C0_IDON 0x0100 /* Initialization Done */ 150#define LE_C0_IDON 0x0100 /* Initialization Done */
151#define LE_C0_INTR 0x0080 /* Interrupt Flag 151#define LE_C0_INTR 0x0080 /* Interrupt Flag
152 = BABL | MISS | MERR | RINT | TINT | IDON */ 152 = BABL | MISS | MERR | RINT | TINT | IDON */
153#define LE_C0_INEA 0x0040 /* Interrupt Enable */ 153#define LE_C0_INEA 0x0040 /* Interrupt Enable */
154#define LE_C0_RXON 0x0020 /* Receive On */ 154#define LE_C0_RXON 0x0020 /* Receive On */
@@ -185,7 +185,7 @@ struct lance_private
185#define LE_MO_PSEL1 0x0100 /* port selection bit1 */ 185#define LE_MO_PSEL1 0x0100 /* port selection bit1 */
186#define LE_MO_PSEL0 0x0080 /* port selection bit0 */ 186#define LE_MO_PSEL0 0x0080 /* port selection bit0 */
187/* and this one is from the C-LANCE data sheet... */ 187/* and this one is from the C-LANCE data sheet... */
188#define LE_MO_EMBA 0x0080 /* Enable Modified Backoff Algorithm 188#define LE_MO_EMBA 0x0080 /* Enable Modified Backoff Algorithm
189 (C-LANCE, not original LANCE) */ 189 (C-LANCE, not original LANCE) */
190#define LE_MO_INTL 0x0040 /* Internal Loopback */ 190#define LE_MO_INTL 0x0040 /* Internal Loopback */
191#define LE_MO_DRTY 0x0020 /* Disable Retry */ 191#define LE_MO_DRTY 0x0020 /* Disable Retry */