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
c75b4c2a
Commit
c75b4c2a
authored
Feb 19, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Do similar macro casting for {in,out}{b,w,l}() as we do for {read,write}{b,w,l,q}().
parent
deba3240
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
include/asm-sparc64/io.h
include/asm-sparc64/io.h
+19
-12
No files found.
include/asm-sparc64/io.h
View file @
c75b4c2a
...
...
@@ -31,7 +31,7 @@ extern unsigned long pci_memspace_mask;
#define bus_dvma_to_mem(__vaddr) ((__vaddr) & pci_memspace_mask)
static
__inline__
u8
inb
(
unsigned
long
addr
)
static
__inline__
u8
_
inb
(
unsigned
long
addr
)
{
u8
ret
;
...
...
@@ -42,7 +42,7 @@ static __inline__ u8 inb(unsigned long addr)
return
ret
;
}
static
__inline__
u16
inw
(
unsigned
long
addr
)
static
__inline__
u16
_
inw
(
unsigned
long
addr
)
{
u16
ret
;
...
...
@@ -53,7 +53,7 @@ static __inline__ u16 inw(unsigned long addr)
return
ret
;
}
static
__inline__
u32
inl
(
unsigned
long
addr
)
static
__inline__
u32
_
inl
(
unsigned
long
addr
)
{
u32
ret
;
...
...
@@ -64,33 +64,40 @@ static __inline__ u32 inl(unsigned long addr)
return
ret
;
}
static
__inline__
void
outb
(
u8
b
,
unsigned
long
addr
)
static
__inline__
void
_
outb
(
u8
b
,
unsigned
long
addr
)
{
__asm__
__volatile__
(
"stba
\t
%r0, [%1] %2
\t
/* pci_outb */"
:
/* no outputs */
:
"Jr"
(
b
),
"r"
(
addr
),
"i"
(
ASI_PHYS_BYPASS_EC_E_L
));
}
static
__inline__
void
outw
(
u16
w
,
unsigned
long
addr
)
static
__inline__
void
_
outw
(
u16
w
,
unsigned
long
addr
)
{
__asm__
__volatile__
(
"stha
\t
%r0, [%1] %2
\t
/* pci_outw */"
:
/* no outputs */
:
"Jr"
(
w
),
"r"
(
addr
),
"i"
(
ASI_PHYS_BYPASS_EC_E_L
));
}
static
__inline__
void
outl
(
u32
l
,
unsigned
long
addr
)
static
__inline__
void
_
outl
(
u32
l
,
unsigned
long
addr
)
{
__asm__
__volatile__
(
"stwa
\t
%r0, [%1] %2
\t
/* pci_outl */"
:
/* no outputs */
:
"Jr"
(
l
),
"r"
(
addr
),
"i"
(
ASI_PHYS_BYPASS_EC_E_L
));
}
#define inb_p inb
#define outb_p outb
#define inw_p inw
#define outw_p outw
#define inl_p inl
#define outl_p outl
#define inb(__addr) (_inb((unsigned long)(__addr)))
#define inw(__addr) (_inw((unsigned long)(__addr)))
#define inl(__addr) (_inl((unsigned long)(__addr)))
#define outb(__b, __addr) (_outb((u8)(__b), (unsigned long)(__addr)))
#define outw(__w, __addr) (_outw((u16)(__w), (unsigned long)(__addr)))
#define outl(__l, __addr) (_outl((u32)(__l), (unsigned long)(__addr)))
#define inb_p(__addr) inb(__addr)
#define outb_p(__b, __addr) outb(__b, __addr)
#define inw_p(__addr) inw(__addr)
#define outw_p(__w, __addr) outw(__w, __addr)
#define inl_p(__addr) inl(__addr)
#define outl_p(__l, __addr) outl(__l, __addr)
extern
void
outsb
(
unsigned
long
addr
,
const
void
*
src
,
unsigned
long
count
);
extern
void
outsw
(
unsigned
long
addr
,
const
void
*
src
,
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