diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-07-07 09:50:58 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-08 19:53:33 +0400 |
commit | 8e11680f5e1abc85298c12a99e2b741249eadc0c (patch) | |
tree | af9f39ed9b3607e2480776d40a0845b1da612d69 /drivers/net/sky2.h | |
parent | aa5ca96c8fffea769aedd795f48695112393dc89 (diff) | |
download | linux-8e11680f5e1abc85298c12a99e2b741249eadc0c.tar.xz |
sky2: use correct Inter Packet Gap at 10/100mbit
This is another fix picked out of the vendor driver. The IPG value
in the serial mode register is supposed to be programmed differently
at lower speeds.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index 030221f4ea83..530378a66021 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h @@ -1807,10 +1807,11 @@ enum { }; #define DATA_BLIND_VAL(x) (((x)<<11) & GM_SMOD_DATABL_MSK) -#define DATA_BLIND_DEF 0x04 - #define IPG_DATA_VAL(x) (x & GM_SMOD_IPG_MSK) -#define IPG_DATA_DEF 0x1e + +#define DATA_BLIND_DEF 0x04 +#define IPG_DATA_DEF_1000 0x1e +#define IPG_DATA_DEF_10_100 0x18 /* GM_SMI_CTRL 16 bit r/w SMI Control Register */ enum { |