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
2c733a16
Commit
2c733a16
authored
May 24, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cxgb3: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
afd636e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
drivers/net/cxgb3/common.h
drivers/net/cxgb3/common.h
+3
-2
drivers/net/cxgb3/t3_hw.c
drivers/net/cxgb3/t3_hw.c
+4
-3
No files found.
drivers/net/cxgb3/common.h
View file @
2c733a16
...
...
@@ -686,8 +686,9 @@ int t3_seeprom_write(struct adapter *adapter, u32 addr, __le32 data);
int
t3_seeprom_wp
(
struct
adapter
*
adapter
,
int
enable
);
int
t3_get_tp_version
(
struct
adapter
*
adapter
,
u32
*
vers
);
int
t3_check_tpsram_version
(
struct
adapter
*
adapter
,
int
*
must_load
);
int
t3_check_tpsram
(
struct
adapter
*
adapter
,
u8
*
tp_ram
,
unsigned
int
size
);
int
t3_set_proto_sram
(
struct
adapter
*
adap
,
u8
*
data
);
int
t3_check_tpsram
(
struct
adapter
*
adapter
,
const
u8
*
tp_ram
,
unsigned
int
size
);
int
t3_set_proto_sram
(
struct
adapter
*
adap
,
const
u8
*
data
);
int
t3_read_flash
(
struct
adapter
*
adapter
,
unsigned
int
addr
,
unsigned
int
nwords
,
u32
*
data
,
int
byte_oriented
);
int
t3_load_fw
(
struct
adapter
*
adapter
,
const
u8
*
fw_data
,
unsigned
int
size
);
...
...
drivers/net/cxgb3/t3_hw.c
View file @
2c733a16
...
...
@@ -923,7 +923,8 @@ int t3_check_tpsram_version(struct adapter *adapter, int *must_load)
* Checks if an adapter's tp sram is compatible with the driver.
* Returns 0 if the versions are compatible, a negative error otherwise.
*/
int
t3_check_tpsram
(
struct
adapter
*
adapter
,
u8
*
tp_sram
,
unsigned
int
size
)
int
t3_check_tpsram
(
struct
adapter
*
adapter
,
const
u8
*
tp_sram
,
unsigned
int
size
)
{
u32
csum
;
unsigned
int
i
;
...
...
@@ -2875,10 +2876,10 @@ static void ulp_config(struct adapter *adap, const struct tp_params *p)
*
* Write the contents of the protocol SRAM.
*/
int
t3_set_proto_sram
(
struct
adapter
*
adap
,
u8
*
data
)
int
t3_set_proto_sram
(
struct
adapter
*
adap
,
const
u8
*
data
)
{
int
i
;
__be32
*
buf
=
(
__be32
*
)
data
;
const
__be32
*
buf
=
(
const
__be32
*
)
data
;
for
(
i
=
0
;
i
<
PROTO_SRAM_LINES
;
i
++
)
{
t3_write_reg
(
adap
,
A_TP_EMBED_OP_FIELD5
,
be32_to_cpu
(
*
buf
++
));
...
...
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