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
1a3372bc
Commit
1a3372bc
authored
Jan 20, 2015
by
Steven Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blackfin: io: define __raw_readx/writex with bfin_readx/writex
Signed-off-by:
Steven Miao
<
realmz6@gmail.com
>
parent
b3df664b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
+6
-21
arch/blackfin/include/asm/io.h
arch/blackfin/include/asm/io.h
+6
-21
No files found.
arch/blackfin/include/asm/io.h
View file @
1a3372bc
...
...
@@ -11,27 +11,12 @@
#include <linux/types.h>
#include <asm/byteorder.h>
#define DECLARE_BFIN_RAW_READX(size, type, asm, asm_sign) \
static inline type __raw_read##size(const volatile void __iomem *addr) \
{ \
unsigned int val; \
int tmp; \
__asm__ __volatile__ ( \
"cli %1;" \
"NOP; NOP; SSYNC;" \
"%0 = "#asm" [%2] "#asm_sign";" \
"sti %1;" \
: "=d"(val), "=d"(tmp) \
: "a"(addr) \
); \
return (type) val; \
}
DECLARE_BFIN_RAW_READX
(
b
,
u8
,
b
,
(
z
))
#define __raw_readb __raw_readb
DECLARE_BFIN_RAW_READX
(
w
,
u16
,
w
,
(
z
))
#define __raw_readw __raw_readw
DECLARE_BFIN_RAW_READX
(
l
,
u32
,
,
)
#define __raw_readl __raw_readl
#define __raw_readb bfin_read8
#define __raw_readw bfin_read16
#define __raw_readl bfin_read32
#define __raw_writeb(val, addr) bfin_write8(addr, val)
#define __raw_writew(val, addr) bfin_write16(addr, val)
#define __raw_writel(val, addr) bfin_write32(addr, val)
extern
void
outsb
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
);
extern
void
outsw
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
);
...
...
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