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
Kirill Smelkov
linux
Commits
428e1c17
Commit
428e1c17
authored
Aug 10, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Aug 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] bk-netdev-hp-plus-fix
Signed-off-by:
Andrew Morton
<
akpm@osdl.org
>
parent
26c019c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/hp-plus.c
drivers/net/hp-plus.c
+4
-4
No files found.
drivers/net/hp-plus.c
View file @
428e1c17
...
...
@@ -233,7 +233,7 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
}
/* Set the wrap registers for string I/O reads. */
outw
((
HP_START_PG
+
TX_
2X_PAGES
)
|
((
HP_STOP_PG
-
1
)
<<
8
),
ioaddr
+
14
);
outw
((
HP_START_PG
+
TX_
PAGES
/
2
)
|
((
HP_STOP_PG
-
1
)
<<
8
),
ioaddr
+
14
);
/* Set the base address to point to the NIC, not the "real" base! */
dev
->
base_addr
=
ioaddr
+
NIC_OFFSET
;
...
...
@@ -247,7 +247,7 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
ei_status
.
name
=
name
;
ei_status
.
word16
=
0
;
/* Agggghhhhh! Debug time: 2 days! */
ei_status
.
tx_start_page
=
HP_START_PG
;
ei_status
.
rx_start_page
=
HP_START_PG
+
TX_
2X_PAGES
;
ei_status
.
rx_start_page
=
HP_START_PG
+
TX_
PAGES
/
2
;
ei_status
.
stop_page
=
HP_STOP_PG
;
ei_status
.
reset_8390
=
&
hpp_reset_8390
;
...
...
@@ -261,7 +261,7 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
ei_status
.
block_output
=
&
hpp_mem_block_output
;
ei_status
.
get_8390_hdr
=
&
hpp_mem_get_8390_hdr
;
dev
->
mem_start
=
mem_start
;
ei_status
.
rmem_start
=
dev
->
mem_start
+
TX_
2X_PAGES
*
256
;
ei_status
.
rmem_start
=
dev
->
mem_start
+
TX_
PAGES
/
2
*
256
;
dev
->
mem_end
=
ei_status
.
rmem_end
=
dev
->
mem_start
+
(
HP_STOP_PG
-
HP_START_PG
)
*
256
;
}
...
...
@@ -297,7 +297,7 @@ hpp_open(struct net_device *dev)
/* Set the wrap registers for programmed-I/O operation. */
outw
(
HW_Page
,
ioaddr
+
HP_PAGING
);
outw
((
HP_START_PG
+
TX_
2X_PAGES
)
|
((
HP_STOP_PG
-
1
)
<<
8
),
ioaddr
+
14
);
outw
((
HP_START_PG
+
TX_
PAGES
/
2
)
|
((
HP_STOP_PG
-
1
)
<<
8
),
ioaddr
+
14
);
/* Select the operational page. */
outw
(
Perf_Page
,
ioaddr
+
HP_PAGING
);
...
...
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