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
a9866881
Commit
a9866881
authored
Sep 23, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5
parents
bf72e973
40502149
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/sb1000.c
drivers/net/sb1000.c
+4
-4
No files found.
drivers/net/sb1000.c
View file @
a9866881
...
...
@@ -275,7 +275,7 @@ sb1000_probe(struct net_device *dev)
* SB1000 hardware routines to be used during open/configuration phases
*/
const
int
TimeOutJiffies
=
(
int
)(
8
.
75
*
HZ
)
;
const
int
TimeOutJiffies
=
(
875
*
HZ
)
/
100
;
static
inline
void
nicedelay
(
unsigned
long
usecs
)
{
...
...
@@ -298,7 +298,7 @@ card_wait_for_busy_clear(const int ioaddr[], const char* name)
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule_timeout
(
0
);
a
=
inb
(
ioaddr
[
0
]
+
7
);
if
(
jiffies
>=
timeout
)
{
if
(
time_after_eq
(
jiffies
,
timeout
)
)
{
printk
(
KERN_WARNING
"%s: card_wait_for_busy_clear timeout
\n
"
,
name
);
return
-
ETIME
;
...
...
@@ -322,7 +322,7 @@ card_wait_for_ready(const int ioaddr[], const char* name, unsigned char in[])
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule_timeout
(
0
);
a
=
inb
(
ioaddr
[
1
]
+
6
);
if
(
jiffies
>=
timeout
)
{
if
(
time_after_eq
(
jiffies
,
timeout
)
)
{
printk
(
KERN_WARNING
"%s: card_wait_for_ready timeout
\n
"
,
name
);
return
-
ETIME
;
...
...
@@ -396,7 +396,7 @@ sb1000_wait_for_ready(const int ioaddr[], const char* name)
timeout
=
jiffies
+
Sb1000TimeOutJiffies
;
while
(
inb
(
ioaddr
[
1
]
+
6
)
&
0x80
)
{
if
(
jiffies
>=
timeout
)
{
if
(
time_after_eq
(
jiffies
,
timeout
)
)
{
printk
(
KERN_WARNING
"%s: sb1000_wait_for_ready timeout
\n
"
,
name
);
return
-
ETIME
;
...
...
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