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
a9dbae78
Commit
a9dbae78
authored
Mar 20, 2009
by
Joakim Tjernlund
Committed by
David S. Miller
Mar 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucc_geth: Convert to net_device_ops
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
b9d2fcee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
drivers/net/ucc_geth.c
drivers/net/ucc_geth.c
+15
-9
No files found.
drivers/net/ucc_geth.c
View file @
a9dbae78
...
...
@@ -3501,6 +3501,20 @@ static phy_interface_t to_phy_interface(const char *phy_connection_type)
return
PHY_INTERFACE_MODE_MII
;
}
static
const
struct
net_device_ops
ucc_geth_netdev_ops
=
{
.
ndo_open
=
ucc_geth_open
,
.
ndo_stop
=
ucc_geth_close
,
.
ndo_start_xmit
=
ucc_geth_start_xmit
,
.
ndo_validate_addr
=
eth_validate_addr
,
.
ndo_set_mac_address
=
eth_mac_addr
,
.
ndo_change_mtu
=
eth_change_mtu
,
.
ndo_set_multicast_list
=
ucc_geth_set_multi
,
.
ndo_tx_timeout
=
ucc_geth_timeout
,
#ifdef CONFIG_NET_POLL_CONTROLLER
.
ndo_poll_controller
=
ucc_netpoll
,
#endif
};
static
int
ucc_geth_probe
(
struct
of_device
*
ofdev
,
const
struct
of_device_id
*
match
)
{
struct
device
*
device
=
&
ofdev
->
dev
;
...
...
@@ -3716,19 +3730,11 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
/* Fill in the dev structure */
uec_set_ethtool_ops
(
dev
);
dev
->
open
=
ucc_geth_open
;
dev
->
hard_start_xmit
=
ucc_geth_start_xmit
;
dev
->
tx_timeout
=
ucc_geth_timeout
;
dev
->
netdev_ops
=
&
ucc_geth_netdev_ops
;
dev
->
watchdog_timeo
=
TX_TIMEOUT
;
INIT_WORK
(
&
ugeth
->
timeout_work
,
ucc_geth_timeout_work
);
netif_napi_add
(
dev
,
&
ugeth
->
napi
,
ucc_geth_poll
,
UCC_GETH_DEV_WEIGHT
);
#ifdef CONFIG_NET_POLL_CONTROLLER
dev
->
poll_controller
=
ucc_netpoll
;
#endif
dev
->
stop
=
ucc_geth_close
;
// dev->change_mtu = ucc_geth_change_mtu;
dev
->
mtu
=
1500
;
dev
->
set_multicast_list
=
ucc_geth_set_multi
;
ugeth
->
msg_enable
=
netif_msg_init
(
debug
.
msg_enable
,
UGETH_MSG_DEFAULT
);
ugeth
->
phy_interface
=
phy_interface
;
...
...
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