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
a7b43a56
Commit
a7b43a56
authored
May 15, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
574ad93f
4fd065e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
drivers/net/wan/cycx_drv.c
drivers/net/wan/cycx_drv.c
+2
-2
include/linux/cycx_drv.h
include/linux/cycx_drv.h
+0
-4
No files found.
drivers/net/wan/cycx_drv.c
View file @
a7b43a56
...
...
@@ -343,7 +343,7 @@ static int cycx_data_boot(u32 addr, u8 *code, u32 len)
for
(
i
=
0
;
i
<
len
;
i
+=
CFM_LOAD_BUFSZ
)
if
(
buffer_load
(
addr
,
code
+
i
,
MIN
(
CFM_LOAD_BUFSZ
,
(
len
-
i
)))
<
0
)
{
min_t
(
u32
,
CFM_LOAD_BUFSZ
,
(
len
-
i
)))
<
0
)
{
printk
(
KERN_ERR
"%s: Error !!
\n
"
,
modname
);
return
-
1
;
}
...
...
@@ -374,7 +374,7 @@ static int cycx_code_boot(u32 addr, u8 *code, u32 len)
for
(
i
=
0
;
i
<
len
;
i
+=
CFM_LOAD_BUFSZ
)
if
(
buffer_load
(
addr
,
code
+
i
,
MIN
(
CFM_LOAD_BUFSZ
,
(
len
-
i
))))
{
min_t
(
u32
,
CFM_LOAD_BUFSZ
,
(
len
-
i
))))
{
printk
(
KERN_ERR
"%s: Error !!
\n
"
,
modname
);
return
-
1
;
}
...
...
include/linux/cycx_drv.h
View file @
a7b43a56
...
...
@@ -37,10 +37,6 @@
#define DATA_OFFSET 0x0100
/* For code and data files load */
#define START_OFFSET 0x3ff0
/* 80186 starts here */
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
/**
* struct cycx_hw - Adapter hardware configuration
* @fwid - firmware ID
...
...
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