summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-07-07 05:50:58 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-08 08:53:33 -0700
commit8e11680f5e1abc85298c12a99e2b741249eadc0c (patch)
treeaf9f39ed9b3607e2480776d40a0845b1da612d69 /drivers/net/sky2.h
parentaa5ca96c8fffea769aedd795f48695112393dc89 (diff)
downloadop-kernel-dev-8e11680f5e1abc85298c12a99e2b741249eadc0c.zip
op-kernel-dev-8e11680f5e1abc85298c12a99e2b741249eadc0c.tar.gz
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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index 030221f..530378a 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 {
OpenPOWER on IntegriCloud