aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smsc911x.h
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2009-03-18 20:24:44 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-20 02:59:27 -0400
commit785b6f977a89aaabc3dd3e3bfc87f36015cb8050 (patch)
tree8d73ee27ca093bcfab839b31a3e9990ada3570d9 /drivers/net/smsc911x.h
parent2e1ab634bf013792d8803ec57c7a428a76f50028 (diff)
smsc911x: define status word positions as constants
The vast majority of bit constants in this driver are defined in the header file, but TX and RX status word bits are not. This patch (which should make no functional change) defines these, to make the driver slightly more readable. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/smsc911x.h')
-rw-r--r--drivers/net/smsc911x.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/smsc911x.h b/drivers/net/smsc911x.h
index 2b76654bb958..b5716bd8a597 100644
--- a/drivers/net/smsc911x.h
+++ b/drivers/net/smsc911x.h
@@ -81,12 +81,19 @@
81 81
82#define RX_STATUS_FIFO 0x40 82#define RX_STATUS_FIFO 0x40
83#define RX_STS_ES_ 0x00008000 83#define RX_STS_ES_ 0x00008000
84#define RX_STS_LENGTH_ERR_ 0x00001000
84#define RX_STS_MCAST_ 0x00000400 85#define RX_STS_MCAST_ 0x00000400
86#define RX_STS_FRAME_TYPE_ 0x00000020
87#define RX_STS_CRC_ERR_ 0x00000002
85 88
86#define RX_STATUS_FIFO_PEEK 0x44 89#define RX_STATUS_FIFO_PEEK 0x44
87 90
88#define TX_STATUS_FIFO 0x48 91#define TX_STATUS_FIFO 0x48
89#define TX_STS_ES_ 0x00008000 92#define TX_STS_ES_ 0x00008000
93#define TX_STS_LOST_CARRIER_ 0x00000800
94#define TX_STS_NO_CARRIER_ 0x00000400
95#define TX_STS_LATE_COL_ 0x00000200
96#define TX_STS_EXCESS_COL_ 0x00000100
90 97
91#define TX_STATUS_FIFO_PEEK 0x4C 98#define TX_STATUS_FIFO_PEEK 0x4C
92 99