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
5b85b180
Commit
5b85b180
authored
Apr 09, 2004
by
Andrew Morton
Committed by
David S. Miller
Apr 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: Fix printk warnings in ambassador driver.
parent
9f58dd03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/atm/ambassador.c
drivers/atm/ambassador.c
+4
-4
No files found.
drivers/atm/ambassador.c
View file @
5b85b180
...
...
@@ -329,7 +329,7 @@ static const unsigned long onegigmask = -1 << 30;
/********** access to adapter **********/
static
inline
void
wr_plain
(
const
amb_dev
*
dev
,
size_t
addr
,
u32
data
)
{
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"wr: %08x <- %08x"
,
addr
,
data
);
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"wr: %08
z
x <- %08x"
,
addr
,
data
);
#ifdef AMB_MMIO
dev
->
membase
[
addr
/
sizeof
(
u32
)]
=
data
;
#else
...
...
@@ -343,13 +343,13 @@ static inline u32 rd_plain (const amb_dev * dev, size_t addr) {
#else
u32
data
=
inl
(
dev
->
iobase
+
addr
);
#endif
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"rd: %08x -> %08x"
,
addr
,
data
);
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"rd: %08
z
x -> %08x"
,
addr
,
data
);
return
data
;
}
static
inline
void
wr_mem
(
const
amb_dev
*
dev
,
size_t
addr
,
u32
data
)
{
u32
be
=
cpu_to_be32
(
data
);
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"wr: %08x <- %08x b[%08x]"
,
addr
,
data
,
be
);
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"wr: %08
z
x <- %08x b[%08x]"
,
addr
,
data
,
be
);
#ifdef AMB_MMIO
dev
->
membase
[
addr
/
sizeof
(
u32
)]
=
be
;
#else
...
...
@@ -364,7 +364,7 @@ static inline u32 rd_mem (const amb_dev * dev, size_t addr) {
u32
be
=
inl
(
dev
->
iobase
+
addr
);
#endif
u32
data
=
be32_to_cpu
(
be
);
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"rd: %08x -> %08x b[%08x]"
,
addr
,
data
,
be
);
PRINTD
(
DBG_FLOW
|
DBG_REGS
,
"rd: %08
z
x -> %08x b[%08x]"
,
addr
,
data
,
be
);
return
data
;
}
...
...
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