Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d4a05de6
Commit
d4a05de6
authored
Aug 30, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Add capacitive coupling support.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
0749b406
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
drivers/net/tg3.c
drivers/net/tg3.c
+18
-2
drivers/net/tg3.h
drivers/net/tg3.h
+1
-0
No files found.
drivers/net/tg3.c
View file @
d4a05de6
...
...
@@ -1490,6 +1490,18 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
current_speed
=
SPEED_INVALID
;
current_duplex
=
DUPLEX_INVALID
;
if
(
tp
->
tg3_flags2
&
TG3_FLG2_CAPACITIVE_COUPLING
)
{
u32
val
;
tg3_writephy
(
tp
,
MII_TG3_AUX_CTRL
,
0x4007
);
tg3_readphy
(
tp
,
MII_TG3_AUX_CTRL
,
&
val
);
if
(
!
(
val
&
(
1
<<
10
)))
{
val
|=
(
1
<<
10
);
tg3_writephy
(
tp
,
MII_TG3_AUX_CTRL
,
val
);
goto
relink
;
}
}
bmsr
=
0
;
for
(
i
=
0
;
i
<
100
;
i
++
)
{
tg3_readphy
(
tp
,
MII_BMSR
,
&
bmsr
);
...
...
@@ -1569,7 +1581,7 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
tg3_setup_flow_control
(
tp
,
local_adv
,
remote_adv
);
}
}
relink:
if
(
current_link_up
==
0
)
{
u32
tmp
;
...
...
@@ -7052,7 +7064,7 @@ static int __devinit tg3_phy_probe(struct tg3 *tp)
tg3_read_mem
(
tp
,
NIC_SRAM_DATA_SIG
,
&
val
);
if
(
val
==
NIC_SRAM_DATA_SIG_MAGIC
)
{
u32
nic_cfg
,
led_cfg
;
u32
nic_phy_id
;
u32
nic_phy_id
,
cfg2
;
tg3_read_mem
(
tp
,
NIC_SRAM_DATA_CFG
,
&
nic_cfg
);
tp
->
nic_sram_data_cfg
=
nic_cfg
;
...
...
@@ -7134,6 +7146,10 @@ static int __devinit tg3_phy_probe(struct tg3 *tp)
}
if
(
nic_cfg
&
NIC_SRAM_DATA_CFG_FIBER_WOL
)
tp
->
tg3_flags
|=
TG3_FLAG_SERDES_WOL_CAP
;
tg3_read_mem
(
tp
,
NIC_SRAM_DATA_PHY_ID
,
&
cfg2
);
if
(
cfg2
&
(
1
<<
17
))
tp
->
tg3_flags2
|=
TG3_FLG2_CAPACITIVE_COUPLING
;
}
/* Reading the PHY ID register can conflict with ASF
...
...
drivers/net/tg3.h
View file @
d4a05de6
...
...
@@ -2092,6 +2092,7 @@ struct tg3 {
#define TG3_FLG2_HW_AUTONEG 0x00000800
#define TG3_FLG2_PHY_JUST_INITTED 0x00001000
#define TG3_FLG2_PHY_SERDES 0x00002000
#define TG3_FLG2_CAPACITIVE_COUPLING 0x00004000
u32
split_mode_max_reqs
;
#define SPLIT_MODE_5704_MAX_REQ 3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment