Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2199b87a
Commit
2199b87a
authored
Mar 23, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunbmac: Convert to net_device_ops.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
adaa0db1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
drivers/net/sunbmac.c
drivers/net/sunbmac.c
+10
-9
No files found.
drivers/net/sunbmac.c
View file @
2199b87a
...
...
@@ -1074,6 +1074,15 @@ static const struct ethtool_ops bigmac_ethtool_ops = {
.
get_link
=
bigmac_get_link
,
};
static
const
struct
net_device_ops
bigmac_ops
=
{
.
ndo_open
=
bigmac_open
,
.
ndo_stop
=
bigmac_close
,
.
ndo_start_xmit
=
bigmac_start_xmit
,
.
ndo_get_stats
=
bigmac_get_stats
,
.
ndo_set_multicast_list
=
bigmac_set_multicast
,
.
ndo_tx_timeout
=
bigmac_tx_timeout
,
};
static
int
__devinit
bigmac_ether_init
(
struct
of_device
*
op
,
struct
of_device
*
qec_op
)
{
...
...
@@ -1187,16 +1196,8 @@ static int __devinit bigmac_ether_init(struct of_device *op,
bp
->
dev
=
dev
;
/* Set links to our BigMAC open and close routines. */
dev
->
open
=
&
bigmac_open
;
dev
->
stop
=
&
bigmac_close
;
dev
->
hard_start_xmit
=
&
bigmac_start_xmit
;
dev
->
ethtool_ops
=
&
bigmac_ethtool_ops
;
/* Set links to BigMAC statistic and multi-cast loading code. */
dev
->
get_stats
=
&
bigmac_get_stats
;
dev
->
set_multicast_list
=
&
bigmac_set_multicast
;
dev
->
tx_timeout
=
&
bigmac_tx_timeout
;
dev
->
netdev_ops
=
&
bigmac_ops
;
dev
->
watchdog_timeo
=
5
*
HZ
;
/* Finish net device registration. */
...
...
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