diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-03-19 01:24:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-20 07:59:27 +0100 |
commit | 785b6f977a89aaabc3dd3e3bfc87f36015cb8050 (patch) | |
tree | 8d73ee27ca093bcfab839b31a3e9990ada3570d9 /drivers/net/smsc911x.h | |
parent | rtnetlink: add new value for DHCP added routes (diff) | |
download | linux-785b6f977a89aaabc3dd3e3bfc87f36015cb8050.tar.xz linux-785b6f977a89aaabc3dd3e3bfc87f36015cb8050.zip |
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.h | 7 |
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 @@ #define RX_STATUS_FIFO 0x40 #define RX_STS_ES_ 0x00008000 +#define RX_STS_LENGTH_ERR_ 0x00001000 #define RX_STS_MCAST_ 0x00000400 +#define RX_STS_FRAME_TYPE_ 0x00000020 +#define RX_STS_CRC_ERR_ 0x00000002 #define RX_STATUS_FIFO_PEEK 0x44 #define TX_STATUS_FIFO 0x48 #define TX_STS_ES_ 0x00008000 +#define TX_STS_LOST_CARRIER_ 0x00000800 +#define TX_STS_NO_CARRIER_ 0x00000400 +#define TX_STS_LATE_COL_ 0x00000200 +#define TX_STS_EXCESS_COL_ 0x00000100 #define TX_STATUS_FIFO_PEEK 0x4C |