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
nexedi
linux
Commits
73cc0944
Commit
73cc0944
authored
Sep 24, 2003
by
Matt Mackall
Committed by
Stephen Hemminger
Sep 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr tlan] netif_carrier_* support
parent
2f080004
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/net/tlan.c
drivers/net/tlan.c
+6
-1
No files found.
drivers/net/tlan.c
View file @
73cc0944
...
...
@@ -883,7 +883,9 @@ static int TLan_Init( struct net_device *dev )
err
);
}
dev
->
addr_len
=
6
;
netif_carrier_off
(
dev
);
/* Device methods */
dev
->
open
=
&
TLan_Open
;
dev
->
hard_start_xmit
=
&
TLan_StartTx
;
...
...
@@ -2205,6 +2207,8 @@ TLan_ResetAdapter( struct net_device *dev )
priv
->
tlanFullDuplex
=
FALSE
;
priv
->
phyOnline
=
0
;
netif_carrier_off
(
dev
);
/* 1. Assert reset bit. */
data
=
inl
(
dev
->
base_addr
+
TLAN_HOST_CMD
);
...
...
@@ -2368,6 +2372,7 @@ TLan_FinishReset( struct net_device *dev )
}
outl
(
priv
->
rxListDMA
,
dev
->
base_addr
+
TLAN_CH_PARM
);
outl
(
TLAN_HC_GO
|
TLAN_HC_RT
,
dev
->
base_addr
+
TLAN_HOST_CMD
);
netif_carrier_on
(
dev
);
}
else
{
printk
(
"TLAN: %s: Link inactive, will retry in 10 secs...
\n
"
,
dev
->
name
);
TLan_SetTimer
(
dev
,
(
10
*
HZ
),
TLAN_TIMER_FINISH_RESET
);
...
...
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