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
d5a91659
Commit
d5a91659
authored
Jan 10, 2004
by
Pavel Machek
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr via-rhine] add netpoll support
parent
4f5644e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
drivers/net/via-rhine.c
drivers/net/via-rhine.c
+12
-0
No files found.
drivers/net/via-rhine.c
View file @
d5a91659
...
...
@@ -615,6 +615,15 @@ static void __devinit reload_eeprom(long ioaddr)
break
;
}
#ifdef CONFIG_NET_POLL_CONTROLLER
static
void
via_rhine_poll
(
struct
net_device
*
dev
)
{
disable_irq
(
dev
->
irq
);
via_rhine_interrupt
(
dev
->
irq
,
(
void
*
)
dev
,
NULL
);
enable_irq
(
dev
->
irq
);
}
#endif
static
int
__devinit
via_rhine_init_one
(
struct
pci_dev
*
pdev
,
const
struct
pci_device_id
*
ent
)
{
...
...
@@ -784,6 +793,9 @@ static int __devinit via_rhine_init_one (struct pci_dev *pdev,
dev
->
ethtool_ops
=
&
netdev_ethtool_ops
;
dev
->
tx_timeout
=
via_rhine_tx_timeout
;
dev
->
watchdog_timeo
=
TX_TIMEOUT
;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev
->
poll_controller
=
via_rhine_poll
;
#endif
if
(
np
->
drv_flags
&
ReqTxAlign
)
dev
->
features
|=
NETIF_F_SG
|
NETIF_F_HW_CSUM
;
...
...
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