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
Kirill Smelkov
linux
Commits
74bd7d09
Commit
74bd7d09
authored
Feb 28, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix parport_pc build.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5f1ef510
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
include/asm-sparc64/dma.h
include/asm-sparc64/dma.h
+0
-4
include/asm-sparc64/parport.h
include/asm-sparc64/parport.h
+22
-0
No files found.
include/asm-sparc64/dma.h
View file @
74bd7d09
...
...
@@ -205,10 +205,6 @@ do { u32 tmp = sbus_readl((__regs) + DMA_CSR); \
#define for_each_dvma(dma) \
for((dma) = dma_chain; (dma); (dma) = (dma)->next)
extern
int
get_dma_list
(
char
*
);
extern
int
request_dma
(
unsigned
int
,
__const__
char
*
);
extern
void
free_dma
(
unsigned
int
);
/* From PCI */
#ifdef CONFIG_PCI
...
...
include/asm-sparc64/parport.h
View file @
74bd7d09
...
...
@@ -23,8 +23,30 @@ static struct sparc_ebus_info {
struct
ebus_dma_info
info
;
unsigned
int
addr
;
unsigned
int
count
;
int
lock
;
}
sparc_ebus_dmas
[
PARPORT_PC_MAX_PORTS
];
static
__inline__
int
request_dma
(
unsigned
int
dmanr
,
const
char
*
device_id
)
{
if
(
dmanr
>=
PARPORT_PC_MAX_PORTS
)
return
-
EINVAL
;
if
(
xchg
(
&
sparc_ebus_dmas
[
dmanr
].
lock
,
1
)
!=
0
)
return
-
EBUSY
;
return
0
;
}
static
__inline__
void
free_dma
(
unsigned
int
dmanr
)
{
if
(
dmanr
>=
PARPORT_PC_MAX_PORTS
)
{
printk
(
KERN_WARNING
"Trying to free DMA%d
\n
"
,
dmanr
);
return
;
}
if
(
xchg
(
&
sparc_ebus_dmas
[
dmanr
].
lock
,
0
)
==
0
)
{
printk
(
KERN_WARNING
"Trying to free free DMA%d
\n
"
,
dmanr
);
return
;
}
}
static
__inline__
void
enable_dma
(
unsigned
int
dmanr
)
{
ebus_dma_enable
(
&
sparc_ebus_dmas
[
dmanr
].
info
,
1
);
...
...
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