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
5383825c
Commit
5383825c
authored
Sep 13, 2012
by
Ben Hutchings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: const-qualify source pointers for MMIO write functions
Signed-off-by:
Ben Hutchings
<
bhutchings@solarflare.com
>
parent
abc71bb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
drivers/net/ethernet/sfc/io.h
drivers/net/ethernet/sfc/io.h
+10
-8
No files found.
drivers/net/ethernet/sfc/io.h
View file @
5383825c
...
...
@@ -83,7 +83,7 @@ static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg)
}
/* Write a normal 128-bit CSR, locking as appropriate. */
static
inline
void
efx_writeo
(
struct
efx_nic
*
efx
,
efx_oword_t
*
value
,
static
inline
void
efx_writeo
(
struct
efx_nic
*
efx
,
const
efx_oword_t
*
value
,
unsigned
int
reg
)
{
unsigned
long
flags
__attribute__
((
unused
));
...
...
@@ -108,7 +108,7 @@ static inline void efx_writeo(struct efx_nic *efx, efx_oword_t *value,
/* Write 64-bit SRAM through the supplied mapping, locking as appropriate. */
static
inline
void
efx_sram_writeq
(
struct
efx_nic
*
efx
,
void
__iomem
*
membase
,
efx_qword_t
*
value
,
unsigned
int
index
)
const
efx_qword_t
*
value
,
unsigned
int
index
)
{
unsigned
int
addr
=
index
*
sizeof
(
*
value
);
unsigned
long
flags
__attribute__
((
unused
));
...
...
@@ -129,7 +129,7 @@ static inline void efx_sram_writeq(struct efx_nic *efx, void __iomem *membase,
}
/* Write a 32-bit CSR or the last dword of a special 128-bit CSR */
static
inline
void
efx_writed
(
struct
efx_nic
*
efx
,
efx_dword_t
*
value
,
static
inline
void
efx_writed
(
struct
efx_nic
*
efx
,
const
efx_dword_t
*
value
,
unsigned
int
reg
)
{
netif_vdbg
(
efx
,
hw
,
efx
->
net_dev
,
...
...
@@ -190,7 +190,8 @@ static inline void efx_readd(struct efx_nic *efx, efx_dword_t *value,
}
/* Write a 128-bit CSR forming part of a table */
static
inline
void
efx_writeo_table
(
struct
efx_nic
*
efx
,
efx_oword_t
*
value
,
static
inline
void
efx_writeo_table
(
struct
efx_nic
*
efx
,
const
efx_oword_t
*
value
,
unsigned
int
reg
,
unsigned
int
index
)
{
efx_writeo
(
efx
,
value
,
reg
+
index
*
sizeof
(
efx_oword_t
));
...
...
@@ -239,7 +240,8 @@ static inline void _efx_writeo_page(struct efx_nic *efx, efx_oword_t *value,
/* Write a page-mapped 32-bit CSR (EVQ_RPTR or the high bits of
* RX_DESC_UPD or TX_DESC_UPD)
*/
static
inline
void
_efx_writed_page
(
struct
efx_nic
*
efx
,
efx_dword_t
*
value
,
static
inline
void
_efx_writed_page
(
struct
efx_nic
*
efx
,
const
efx_dword_t
*
value
,
unsigned
int
reg
,
unsigned
int
page
)
{
efx_writed
(
efx
,
value
,
EFX_PAGED_REG
(
page
,
reg
));
...
...
@@ -256,7 +258,7 @@ static inline void _efx_writed_page(struct efx_nic *efx, efx_dword_t *value,
* collector register.
*/
static
inline
void
_efx_writed_page_locked
(
struct
efx_nic
*
efx
,
efx_dword_t
*
value
,
const
efx_dword_t
*
value
,
unsigned
int
reg
,
unsigned
int
page
)
{
...
...
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