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
a38a7b6c
Commit
a38a7b6c
authored
Jul 28, 2004
by
Kalev Lember
Committed by
Linus Torvalds
Jul 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] natsemi netpoll support
parent
628505a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/net/natsemi.c
drivers/net/natsemi.c
+15
-0
No files found.
drivers/net/natsemi.c
View file @
a38a7b6c
...
@@ -750,6 +750,9 @@ static void netdev_error(struct net_device *dev, int intr_status);
...
@@ -750,6 +750,9 @@ static void netdev_error(struct net_device *dev, int intr_status);
static
void
netdev_rx
(
struct
net_device
*
dev
);
static
void
netdev_rx
(
struct
net_device
*
dev
);
static
void
netdev_tx_done
(
struct
net_device
*
dev
);
static
void
netdev_tx_done
(
struct
net_device
*
dev
);
static
int
natsemi_change_mtu
(
struct
net_device
*
dev
,
int
new_mtu
);
static
int
natsemi_change_mtu
(
struct
net_device
*
dev
,
int
new_mtu
);
#ifdef CONFIG_NET_POLL_CONTROLLER
static
void
natsemi_poll_controller
(
struct
net_device
*
dev
);
#endif
static
void
__set_rx_mode
(
struct
net_device
*
dev
);
static
void
__set_rx_mode
(
struct
net_device
*
dev
);
static
void
set_rx_mode
(
struct
net_device
*
dev
);
static
void
set_rx_mode
(
struct
net_device
*
dev
);
static
void
__get_stats
(
struct
net_device
*
dev
);
static
void
__get_stats
(
struct
net_device
*
dev
);
...
@@ -920,6 +923,9 @@ static int __devinit natsemi_probe1 (struct pci_dev *pdev,
...
@@ -920,6 +923,9 @@ static int __devinit natsemi_probe1 (struct pci_dev *pdev,
dev
->
do_ioctl
=
&
netdev_ioctl
;
dev
->
do_ioctl
=
&
netdev_ioctl
;
dev
->
tx_timeout
=
&
tx_timeout
;
dev
->
tx_timeout
=
&
tx_timeout
;
dev
->
watchdog_timeo
=
TX_TIMEOUT
;
dev
->
watchdog_timeo
=
TX_TIMEOUT
;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev
->
poll_controller
=
&
natsemi_poll_controller
;
#endif
if
(
mtu
)
if
(
mtu
)
dev
->
mtu
=
mtu
;
dev
->
mtu
=
mtu
;
...
@@ -2364,6 +2370,15 @@ static struct net_device_stats *get_stats(struct net_device *dev)
...
@@ -2364,6 +2370,15 @@ static struct net_device_stats *get_stats(struct net_device *dev)
return
&
np
->
stats
;
return
&
np
->
stats
;
}
}
#ifdef CONFIG_NET_POLL_CONTROLLER
static
void
natsemi_poll_controller
(
struct
net_device
*
dev
)
{
disable_irq
(
dev
->
irq
);
intr_handler
(
dev
->
irq
,
dev
,
NULL
);
enable_irq
(
dev
->
irq
);
}
#endif
#define HASH_TABLE 0x200
#define HASH_TABLE 0x200
static
void
__set_rx_mode
(
struct
net_device
*
dev
)
static
void
__set_rx_mode
(
struct
net_device
*
dev
)
{
{
...
...
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