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
2b27a196
Commit
2b27a196
authored
Mar 23, 2004
by
Andrew Morton
Committed by
David Mosberger
Mar 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: add dma_mapping_error() support
parent
723ec813
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
0 deletions
+31
-0
arch/ia64/hp/common/sba_iommu.c
arch/ia64/hp/common/sba_iommu.c
+7
-0
arch/ia64/lib/swiotlb.c
arch/ia64/lib/swiotlb.c
+7
-0
arch/ia64/sn/io/machvec/pci_dma.c
arch/ia64/sn/io/machvec/pci_dma.c
+7
-0
include/asm-ia64/machvec.h
include/asm-ia64/machvec.h
+8
-0
include/asm-ia64/machvec_sn2.h
include/asm-ia64/machvec_sn2.h
+2
-0
No files found.
arch/ia64/hp/common/sba_iommu.c
View file @
2b27a196
...
...
@@ -1979,6 +1979,12 @@ sba_dma_supported (struct device *dev, u64 mask)
return
((
mask
&
0xFFFFFFFFUL
)
==
0xFFFFFFFFUL
);
}
int
sba_dma_mapping_error
(
dma_addr_t
dma_addr
)
{
return
0
;
}
__setup
(
"nosbagart"
,
nosbagart
);
static
int
__init
...
...
@@ -2004,6 +2010,7 @@ sba_page_override(char *str)
__setup
(
"sbapagesize="
,
sba_page_override
);
EXPORT_SYMBOL
(
sba_dma_mapping_error
);
EXPORT_SYMBOL
(
sba_map_single
);
EXPORT_SYMBOL
(
sba_unmap_single
);
EXPORT_SYMBOL
(
sba_map_sg
);
...
...
arch/ia64/lib/swiotlb.c
View file @
2b27a196
...
...
@@ -498,6 +498,12 @@ swiotlb_sync_sg_for_device (struct device *hwdev, struct scatterlist *sg, int ne
sync_single
(
hwdev
,
(
void
*
)
sg
->
dma_address
,
sg
->
dma_length
,
dir
);
}
int
swiotlb_dma_mapping_error
(
dma_addr_t
dma_addr
)
{
return
0
;
}
/*
* Return whether the given PCI device DMA address mask can be supported properly. For
* example, if your device can only drive the low 24-bits during PCI bus mastering, then
...
...
@@ -518,6 +524,7 @@ EXPORT_SYMBOL(swiotlb_sync_single_for_cpu);
EXPORT_SYMBOL
(
swiotlb_sync_single_for_device
);
EXPORT_SYMBOL
(
swiotlb_sync_sg_for_cpu
);
EXPORT_SYMBOL
(
swiotlb_sync_sg_for_device
);
EXPORT_SYMBOL
(
swiotlb_dma_mapping_error
);
EXPORT_SYMBOL
(
swiotlb_alloc_coherent
);
EXPORT_SYMBOL
(
swiotlb_free_coherent
);
EXPORT_SYMBOL
(
swiotlb_dma_supported
);
arch/ia64/sn/io/machvec/pci_dma.c
View file @
2b27a196
...
...
@@ -652,6 +652,13 @@ sn_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems
}
EXPORT_SYMBOL
(
sn_dma_sync_sg_for_device
);
int
sn_dma_mapping_error
(
dma_addr_t
dma_addr
)
{
return
0
;
}
EXPORT_SYMBOL
(
sn_dma_mapping_error
);
EXPORT_SYMBOL
(
sn_pci_unmap_single
);
EXPORT_SYMBOL
(
sn_pci_map_single
);
EXPORT_SYMBOL
(
sn_pci_dma_sync_single_for_cpu
);
...
...
include/asm-ia64/machvec.h
View file @
2b27a196
...
...
@@ -42,6 +42,7 @@ typedef void ia64_mv_dma_sync_single_for_cpu (struct device *, dma_addr_t, size_
typedef
void
ia64_mv_dma_sync_sg_for_cpu
(
struct
device
*
,
struct
scatterlist
*
,
int
,
int
);
typedef
void
ia64_mv_dma_sync_single_for_device
(
struct
device
*
,
dma_addr_t
,
size_t
,
int
);
typedef
void
ia64_mv_dma_sync_sg_for_device
(
struct
device
*
,
struct
scatterlist
*
,
int
,
int
);
typedef
int
ia64_mv_dma_mapping_error
(
dma_addr_t
dma_addr
);
typedef
int
ia64_mv_dma_supported
(
struct
device
*
,
u64
);
/*
...
...
@@ -105,6 +106,7 @@ extern void machvec_dma_sync_sg (struct device *, struct scatterlist *, int, int
# define platform_dma_sync_sg_for_cpu ia64_mv.dma_sync_sg_for_cpu
# define platform_dma_sync_single_for_device ia64_mv.dma_sync_single_for_device
# define platform_dma_sync_sg_for_device ia64_mv.dma_sync_sg_for_device
# define platform_dma_mapping_error ia64_mv.dma_mapping_error
# define platform_dma_supported ia64_mv.dma_supported
# define platform_irq_desc ia64_mv.irq_desc
# define platform_irq_to_vector ia64_mv.irq_to_vector
...
...
@@ -149,6 +151,7 @@ struct ia64_machine_vector {
ia64_mv_dma_sync_sg_for_cpu
*
dma_sync_sg_for_cpu
;
ia64_mv_dma_sync_single_for_device
*
dma_sync_single_for_device
;
ia64_mv_dma_sync_sg_for_device
*
dma_sync_sg_for_device
;
ia64_mv_dma_mapping_error
*
dma_mapping_error
;
ia64_mv_dma_supported
*
dma_supported
;
ia64_mv_irq_desc
*
irq_desc
;
ia64_mv_irq_to_vector
*
irq_to_vector
;
...
...
@@ -189,6 +192,7 @@ struct ia64_machine_vector {
platform_dma_sync_sg_for_cpu, \
platform_dma_sync_single_for_device, \
platform_dma_sync_sg_for_device, \
platform_dma_mapping_error, \
platform_dma_supported, \
platform_irq_desc, \
platform_irq_to_vector, \
...
...
@@ -230,6 +234,7 @@ extern ia64_mv_dma_sync_single_for_cpu swiotlb_sync_single_for_cpu;
extern
ia64_mv_dma_sync_sg_for_cpu
swiotlb_sync_sg_for_cpu
;
extern
ia64_mv_dma_sync_single_for_device
swiotlb_sync_single_for_device
;
extern
ia64_mv_dma_sync_sg_for_device
swiotlb_sync_sg_for_device
;
extern
ia64_mv_dma_mapping_error
swiotlb_dma_mapping_error
;
extern
ia64_mv_dma_supported
swiotlb_dma_supported
;
/*
...
...
@@ -288,6 +293,9 @@ extern ia64_mv_dma_supported swiotlb_dma_supported;
#ifndef platform_dma_sync_sg_for_device
# define platform_dma_sync_sg_for_device swiotlb_sync_sg_for_device
#endif
#ifndef platform_dma_mapping_error
# define platform_dma_mapping_error swiotlb_dma_mapping_error
#endif
#ifndef platform_dma_supported
# define platform_dma_supported swiotlb_dma_supported
#endif
...
...
include/asm-ia64/machvec_sn2.h
View file @
2b27a196
...
...
@@ -66,6 +66,7 @@ extern ia64_mv_dma_sync_single_for_cpu sn_dma_sync_single_for_cpu;
extern
ia64_mv_dma_sync_sg_for_cpu
sn_dma_sync_sg_for_cpu
;
extern
ia64_mv_dma_sync_single_for_device
sn_dma_sync_single_for_device
;
extern
ia64_mv_dma_sync_sg_for_device
sn_dma_sync_sg_for_device
;
extern
ia64_mv_dma_mapping_error
sn_dma_mapping_error
;
extern
ia64_mv_dma_supported
sn_dma_supported
;
/*
...
...
@@ -111,6 +112,7 @@ extern ia64_mv_dma_supported sn_dma_supported;
#define platform_dma_sync_sg_for_cpu sn_dma_sync_sg_for_cpu
#define platform_dma_sync_single_for_device sn_dma_sync_single_for_device
#define platform_dma_sync_sg_for_device sn_dma_sync_sg_for_device
#define platform_dma_mapping_error sn_dma_mapping_error
#define platform_dma_supported sn_dma_supported
#include <asm/sn/sn2/io.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