Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
27350afd
Commit
27350afd
authored
Mar 03, 2007
by
Russell King
Committed by
Russell King
Apr 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] EBSA110: Add readsw/readsl/writesw/writesl
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
7ab3f8d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
arch/arm/mach-ebsa110/io.c
arch/arm/mach-ebsa110/io.c
+40
-0
include/asm-arm/arch-ebsa110/io.h
include/asm-arm/arch-ebsa110/io.h
+8
-0
No files found.
arch/arm/mach-ebsa110/io.c
View file @
27350afd
...
...
@@ -102,6 +102,26 @@ EXPORT_SYMBOL(__readb);
EXPORT_SYMBOL
(
__readw
);
EXPORT_SYMBOL
(
__readl
);
void
readsw
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
1
);
__raw_readsw
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
readsw
);
void
readsl
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
3
);
__raw_readsl
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
readsl
);
void
__writeb
(
u8
val
,
void
__iomem
*
addr
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
...
...
@@ -137,6 +157,26 @@ EXPORT_SYMBOL(__writeb);
EXPORT_SYMBOL
(
__writew
);
EXPORT_SYMBOL
(
__writel
);
void
writesw
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
1
);
__raw_writesw
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
writesw
);
void
writesl
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
3
);
__raw_writesl
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
writesl
);
#define SUPERIO_PORT(p) \
(((p) >> 3) == (0x3f8 >> 3) || \
((p) >> 3) == (0x2f8 >> 3) || \
...
...
include/asm-arm/arch-ebsa110/io.h
View file @
27350afd
...
...
@@ -81,4 +81,12 @@ extern void outsb(unsigned int port, const void *buf, int sz);
extern
void
outsw
(
unsigned
int
port
,
const
void
*
buf
,
int
sz
);
extern
void
outsl
(
unsigned
int
port
,
const
void
*
buf
,
int
sz
);
/* can't support writesb atm */
extern
void
writesw
(
void
__iomem
*
addr
,
const
void
*
data
,
int
wordlen
);
extern
void
writesl
(
void
__iomem
*
addr
,
const
void
*
data
,
int
longlen
);
/* can't support readsb atm */
extern
void
readsw
(
const
void
__iomem
*
addr
,
void
*
data
,
int
wordlen
);
extern
void
readsl
(
const
void
__iomem
*
addr
,
void
*
data
,
int
longlen
);
#endif
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