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
cb60724e
Commit
cb60724e
authored
Aug 17, 2003
by
Randy Dunlap
Committed by
Jeff Garzik
Aug 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr hydra] janitor cleanups
parent
e68c43c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
drivers/net/hydra.c
drivers/net/hydra.c
+3
-21
No files found.
drivers/net/hydra.c
View file @
cb60724e
...
@@ -33,20 +33,8 @@
...
@@ -33,20 +33,8 @@
#include "8390.h"
#include "8390.h"
#define NE_BASE (dev->base_addr)
#define NE_CMD (0x00*2)
#define NE_EN0_ISR (0x07*2)
#define NE_EN0_DCFG (0x0e*2)
#define NE_EN0_DCFG (0x0e*2)
#define NE_EN0_RSARLO (0x08*2)
#define NE_EN0_RSARHI (0x09*2)
#define NE_EN0_RCNTLO (0x0a*2)
#define NE_EN0_RXCR (0x0c*2)
#define NE_EN0_TXCR (0x0d*2)
#define NE_EN0_RCNTHI (0x0b*2)
#define NE_EN0_IMR (0x0f*2)
#define NESM_START_PG 0x0
/* First page of TX buffer */
#define NESM_START_PG 0x0
/* First page of TX buffer */
#define NESM_STOP_PG 0x40
/* Last page +1 of RX ring */
#define NESM_STOP_PG 0x40
/* Last page +1 of RX ring */
...
@@ -56,12 +44,10 @@
...
@@ -56,12 +44,10 @@
#define WORDSWAP(a) ((((a)>>8)&0xff) | ((a)<<8))
#define WORDSWAP(a) ((((a)>>8)&0xff) | ((a)<<8))
#ifdef MODULE
static
struct
net_device
*
root_hydra_dev
;
static
struct
net_device
*
root_hydra_dev
;
#endif
static
int
__init
hydra_probe
(
void
);
static
int
__init
hydra_probe
(
void
);
static
int
hydra_init
(
unsigned
long
board
);
static
int
__init
hydra_init
(
unsigned
long
board
);
static
int
hydra_open
(
struct
net_device
*
dev
);
static
int
hydra_open
(
struct
net_device
*
dev
);
static
int
hydra_close
(
struct
net_device
*
dev
);
static
int
hydra_close
(
struct
net_device
*
dev
);
static
void
hydra_reset_8390
(
struct
net_device
*
dev
);
static
void
hydra_reset_8390
(
struct
net_device
*
dev
);
...
@@ -96,11 +82,11 @@ static int __init hydra_probe(void)
...
@@ -96,11 +82,11 @@ static int __init hydra_probe(void)
return
err
;
return
err
;
}
}
int
__init
hydra_init
(
unsigned
long
board
)
static
int
__init
hydra_init
(
unsigned
long
board
)
{
{
struct
net_device
*
dev
;
struct
net_device
*
dev
;
unsigned
long
ioaddr
=
board
+
HYDRA_NIC_BASE
;
unsigned
long
ioaddr
=
board
+
HYDRA_NIC_BASE
;
const
char
*
name
=
NULL
;
const
char
name
[]
=
"NE2000"
;
int
start_page
,
stop_page
;
int
start_page
,
stop_page
;
int
j
;
int
j
;
...
@@ -136,8 +122,6 @@ int __init hydra_init(unsigned long board)
...
@@ -136,8 +122,6 @@ int __init hydra_init(unsigned long board)
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
name
=
"NE2000"
;
printk
(
"%s: hydra at 0x%08lx, address %02x:%02x:%02x:%02x:%02x:%02x (hydra.c "
HYDRA_VERSION
")
\n
"
,
dev
->
name
,
ZTWO_PADDR
(
board
),
printk
(
"%s: hydra at 0x%08lx, address %02x:%02x:%02x:%02x:%02x:%02x (hydra.c "
HYDRA_VERSION
")
\n
"
,
dev
->
name
,
ZTWO_PADDR
(
board
),
dev
->
dev_addr
[
0
],
dev
->
dev_addr
[
1
],
dev
->
dev_addr
[
2
],
dev
->
dev_addr
[
0
],
dev
->
dev_addr
[
1
],
dev
->
dev_addr
[
2
],
dev
->
dev_addr
[
3
],
dev
->
dev_addr
[
4
],
dev
->
dev_addr
[
5
]);
dev
->
dev_addr
[
3
],
dev
->
dev_addr
[
4
],
dev
->
dev_addr
[
5
]);
...
@@ -235,7 +219,6 @@ static void hydra_block_output(struct net_device *dev, int count,
...
@@ -235,7 +219,6 @@ static void hydra_block_output(struct net_device *dev, int count,
static
void
__exit
hydra_cleanup
(
void
)
static
void
__exit
hydra_cleanup
(
void
)
{
{
#ifdef MODULE
struct
net_device
*
dev
,
*
next
;
struct
net_device
*
dev
,
*
next
;
while
((
dev
=
root_hydra_dev
))
{
while
((
dev
=
root_hydra_dev
))
{
...
@@ -246,7 +229,6 @@ static void __exit hydra_cleanup(void)
...
@@ -246,7 +229,6 @@ static void __exit hydra_cleanup(void)
kfree
(
dev
);
kfree
(
dev
);
root_hydra_dev
=
next
;
root_hydra_dev
=
next
;
}
}
#endif
}
}
module_init
(
hydra_probe
);
module_init
(
hydra_probe
);
...
...
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