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
48f2173c
Commit
48f2173c
authored
May 10, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sparc: Use dma_addr_t and size_t in sparc32 DMA function args.
parent
fc83829c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
arch/sparc/kernel/ioport.c
arch/sparc/kernel/ioport.c
+3
-3
include/asm-sparc/sbus.h
include/asm-sparc/sbus.h
+3
-3
No files found.
arch/sparc/kernel/ioport.c
View file @
48f2173c
...
...
@@ -351,7 +351,7 @@ void sbus_free_consistent(struct sbus_dev *sdev, long n, void *p, u32 ba)
* CPU view of this memory may be inconsistent with
* a device view and explicit flushing is necessary.
*/
u32
sbus_map_single
(
struct
sbus_dev
*
sdev
,
void
*
va
,
long
len
,
int
direction
)
dma_addr_t
sbus_map_single
(
struct
sbus_dev
*
sdev
,
void
*
va
,
size_t
len
,
int
direction
)
{
#if 0 /* This is the version that abuses consistent space */
unsigned long len_total = (len + PAGE_SIZE-1) & PAGE_MASK;
...
...
@@ -398,7 +398,7 @@ u32 sbus_map_single(struct sbus_dev *sdev, void *va, long len, int direction)
#endif
}
void
sbus_unmap_single
(
struct
sbus_dev
*
sdev
,
u32
ba
,
long
n
,
int
direction
)
void
sbus_unmap_single
(
struct
sbus_dev
*
sdev
,
dma_addr_t
ba
,
size_t
n
,
int
direction
)
{
#if 0 /* This is the version that abuses consistent space */
struct resource *res;
...
...
@@ -445,7 +445,7 @@ void sbus_unmap_sg(struct sbus_dev *sdev, struct scatterlist *sg, int n, int dir
/*
*/
void
sbus_dma_sync_single
(
struct
sbus_dev
*
sdev
,
u32
ba
,
long
size
,
int
direction
)
void
sbus_dma_sync_single
(
struct
sbus_dev
*
sdev
,
dma_addr_t
ba
,
size_t
size
,
int
direction
)
{
#if 0
unsigned long va;
...
...
include/asm-sparc/sbus.h
View file @
48f2173c
...
...
@@ -112,13 +112,13 @@ extern void sbus_free_consistent(struct sbus_dev *, long, void *, u32);
#define SBUS_DMA_NONE 3
/* All the rest use streaming mode mappings. */
extern
u32
sbus_map_single
(
struct
sbus_dev
*
,
void
*
,
long
,
int
);
extern
void
sbus_unmap_single
(
struct
sbus_dev
*
,
u32
,
long
,
int
);
extern
dma_addr_t
sbus_map_single
(
struct
sbus_dev
*
,
void
*
,
size_t
,
int
);
extern
void
sbus_unmap_single
(
struct
sbus_dev
*
,
dma_addr_t
,
size_t
,
int
);
extern
int
sbus_map_sg
(
struct
sbus_dev
*
,
struct
scatterlist
*
,
int
,
int
);
extern
void
sbus_unmap_sg
(
struct
sbus_dev
*
,
struct
scatterlist
*
,
int
,
int
);
/* Finally, allow explicit synchronization of streamable mappings. */
extern
void
sbus_dma_sync_single
(
struct
sbus_dev
*
,
u32
,
long
,
int
);
extern
void
sbus_dma_sync_single
(
struct
sbus_dev
*
,
dma_addr_t
,
size_t
,
int
);
extern
void
sbus_dma_sync_sg
(
struct
sbus_dev
*
,
struct
scatterlist
*
,
int
,
int
);
#endif
/* !(_SPARC_SBUS_H) */
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