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
e448918c
Commit
e448918c
authored
Jan 10, 2004
by
Andi Kleen
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] netpoll for eepro100
netpoll for eepro100 This was in Ingo's old original netconsole patches.
parent
abce996a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
drivers/net/eepro100.c
drivers/net/eepro100.c
+21
-0
No files found.
drivers/net/eepro100.c
View file @
e448918c
...
...
@@ -542,6 +542,7 @@ static int speedo_start_xmit(struct sk_buff *skb, struct net_device *dev);
static
void
speedo_refill_rx_buffers
(
struct
net_device
*
dev
,
int
force
);
static
int
speedo_rx
(
struct
net_device
*
dev
);
static
void
speedo_tx_buffer_gc
(
struct
net_device
*
dev
);
static
void
poll_speedo
(
struct
net_device
*
dev
);
static
irqreturn_t
speedo_interrupt
(
int
irq
,
void
*
dev_instance
,
struct
pt_regs
*
regs
);
static
int
speedo_close
(
struct
net_device
*
dev
);
static
struct
net_device_stats
*
speedo_get_stats
(
struct
net_device
*
dev
);
...
...
@@ -885,6 +886,9 @@ static int __devinit speedo_found1(struct pci_dev *pdev,
dev
->
get_stats
=
&
speedo_get_stats
;
dev
->
set_multicast_list
=
&
set_rx_mode
;
dev
->
do_ioctl
=
&
speedo_ioctl
;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev
->
poll_controller
=
&
poll_speedo
;
#endif
if
(
register_netdevice
(
dev
))
goto
err_free_unlock
;
...
...
@@ -1675,6 +1679,23 @@ static irqreturn_t speedo_interrupt(int irq, void *dev_instance, struct pt_regs
return
IRQ_RETVAL
(
handled
);
}
#ifdef CONFIG_NET_POLL_CONTROLLER
/*
* Polling 'interrupt' - used by things like netconsole to send skbs
* without having to re-enable interrupts. It's not called while
* the interrupt routine is executing.
*/
static
void
poll_speedo
(
struct
net_device
*
dev
)
{
/* disable_irq is not very nice, but with the funny lockless design
we have no other choice. */
disable_irq
(
dev
->
irq
);
speedo_interrupt
(
dev
->
irq
,
dev
,
NULL
);
enable_irq
(
dev
->
irq
);
}
#endif
static
inline
struct
RxFD
*
speedo_rx_alloc
(
struct
net_device
*
dev
,
int
entry
)
{
struct
speedo_private
*
sp
=
(
struct
speedo_private
*
)
dev
->
priv
;
...
...
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