Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-seco-intel
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicola Sparnacci
linux-seco-intel
Commits
1a3372bc
Commit
1a3372bc
authored
10 years ago
by
Steven Miao
Browse files
Options
Downloads
Patches
Plain Diff
blackfin: io: define __raw_readx/writex with bfin_readx/writex
Signed-off-by:
Steven Miao
<
realmz6@gmail.com
>
parent
b3df664b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/blackfin/include/asm/io.h
+6
-21
6 additions, 21 deletions
arch/blackfin/include/asm/io.h
with
6 additions
and
21 deletions
arch/blackfin/include/asm/io.h
+
6
−
21
View file @
1a3372bc
...
@@ -11,27 +11,12 @@
...
@@ -11,27 +11,12 @@
#include
<linux/types.h>
#include
<linux/types.h>
#include
<asm/byteorder.h>
#include
<asm/byteorder.h>
#define DECLARE_BFIN_RAW_READX(size, type, asm, asm_sign) \
#define __raw_readb bfin_read8
static inline type __raw_read##size(const volatile void __iomem *addr) \
#define __raw_readw bfin_read16
{ \
#define __raw_readl bfin_read32
unsigned int val; \
#define __raw_writeb(val, addr) bfin_write8(addr, val)
int tmp; \
#define __raw_writew(val, addr) bfin_write16(addr, val)
__asm__ __volatile__ ( \
#define __raw_writel(val, addr) bfin_write32(addr, val)
"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
extern
void
outsb
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
);
extern
void
outsb
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
);
extern
void
outsw
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
);
extern
void
outsw
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment