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
e96b44e0
Commit
e96b44e0
authored
May 20, 2003
by
Scott Feldman
Committed by
Jeff Garzik
May 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Add MDI/MDI-X status to ethtool reg dump
* Add MDI/MDI-X (crossover cable) status to ethtool reg dump.
parent
3ec4a3a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
drivers/net/e100/e100_main.c
drivers/net/e100/e100_main.c
+3
-0
No files found.
drivers/net/e100/e100_main.c
View file @
e96b44e0
...
...
@@ -3528,6 +3528,7 @@ e100_ethtool_gregs(struct net_device *dev, struct ifreq *ifr)
u32
regs_buff
[
E100_REGS_LEN
];
struct
ethtool_regs
regs
=
{
ETHTOOL_GREGS
};
void
*
addr
=
ifr
->
ifr_data
;
u16
mdi_reg
;
if
(
!
capable
(
CAP_NET_ADMIN
))
return
-
EPERM
;
...
...
@@ -3540,6 +3541,8 @@ e100_ethtool_gregs(struct net_device *dev, struct ifreq *ifr)
regs_buff
[
0
]
=
readb
(
&
(
bdp
->
scb
->
scb_cmd_hi
))
<<
24
|
readb
(
&
(
bdp
->
scb
->
scb_cmd_low
))
<<
16
|
readw
(
&
(
bdp
->
scb
->
scb_status
));
e100_mdi_read
(
bdp
,
MII_NCONFIG
,
bdp
->
phy_addr
,
&
mdi_reg
);
regs_buff
[
1
]
=
mdi_reg
;
if
(
copy_to_user
(
addr
,
&
regs
,
sizeof
(
regs
)))
return
-
EFAULT
;
...
...
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