diff options
author | David Howells <dhowells@redhat.com> | 2006-01-08 04:01:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:13:36 -0500 |
commit | 402344012ebe696d9353bbf056889ddaaec83079 (patch) | |
tree | 4a4072bdfe80be4c565d01a9188ef5da3a31e19a /arch/frv/mb93090-mb00 | |
parent | 8369ce4cfe18decc3ea0afcf91e67c665479c78e (diff) |
[PATCH] frv: implement and export various things required by modules
Export a number of features required to build all the modules. It also
implements the following simple features:
(*) csum_partial_copy_from_user() for MMU as well as no-MMU.
(*) __ucmpdi2().
so that they can be exported too.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/frv/mb93090-mb00')
-rw-r--r-- | arch/frv/mb93090-mb00/pci-dma-nommu.c | 8 | ||||
-rw-r--r-- | arch/frv/mb93090-mb00/pci-dma.c | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/frv/mb93090-mb00/pci-dma-nommu.c b/arch/frv/mb93090-mb00/pci-dma-nommu.c index 2082a9647f4f..4985466b1a7c 100644 --- a/arch/frv/mb93090-mb00/pci-dma-nommu.c +++ b/arch/frv/mb93090-mb00/pci-dma-nommu.c | |||
@@ -83,6 +83,8 @@ void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_hand | |||
83 | return NULL; | 83 | return NULL; |
84 | } | 84 | } |
85 | 85 | ||
86 | EXPORT_SYMBOL(dma_alloc_coherent); | ||
87 | |||
86 | void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) | 88 | void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) |
87 | { | 89 | { |
88 | struct dma_alloc_record *rec; | 90 | struct dma_alloc_record *rec; |
@@ -102,6 +104,8 @@ void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_ | |||
102 | BUG(); | 104 | BUG(); |
103 | } | 105 | } |
104 | 106 | ||
107 | EXPORT_SYMBOL(dma_free_coherent); | ||
108 | |||
105 | /* | 109 | /* |
106 | * Map a single buffer of the indicated size for DMA in streaming mode. | 110 | * Map a single buffer of the indicated size for DMA in streaming mode. |
107 | * The 32-bit bus address to use is returned. | 111 | * The 32-bit bus address to use is returned. |
@@ -120,6 +124,8 @@ dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, | |||
120 | return virt_to_bus(ptr); | 124 | return virt_to_bus(ptr); |
121 | } | 125 | } |
122 | 126 | ||
127 | EXPORT_SYMBOL(dma_map_single); | ||
128 | |||
123 | /* | 129 | /* |
124 | * Map a set of buffers described by scatterlist in streaming | 130 | * Map a set of buffers described by scatterlist in streaming |
125 | * mode for DMA. This is the scather-gather version of the | 131 | * mode for DMA. This is the scather-gather version of the |
@@ -150,3 +156,5 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
150 | 156 | ||
151 | return nents; | 157 | return nents; |
152 | } | 158 | } |
159 | |||
160 | EXPORT_SYMBOL(dma_map_sg); | ||
diff --git a/arch/frv/mb93090-mb00/pci-dma.c b/arch/frv/mb93090-mb00/pci-dma.c index 86fbdadc51b6..671ce1e8434f 100644 --- a/arch/frv/mb93090-mb00/pci-dma.c +++ b/arch/frv/mb93090-mb00/pci-dma.c | |||
@@ -28,11 +28,15 @@ void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_hand | |||
28 | return ret; | 28 | return ret; |
29 | } | 29 | } |
30 | 30 | ||
31 | EXPORT_SYMBOL(dma_alloc_coherent); | ||
32 | |||
31 | void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) | 33 | void dma_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) |
32 | { | 34 | { |
33 | consistent_free(vaddr); | 35 | consistent_free(vaddr); |
34 | } | 36 | } |
35 | 37 | ||
38 | EXPORT_SYMBOL(dma_free_coherent); | ||
39 | |||
36 | /* | 40 | /* |
37 | * Map a single buffer of the indicated size for DMA in streaming mode. | 41 | * Map a single buffer of the indicated size for DMA in streaming mode. |
38 | * The 32-bit bus address to use is returned. | 42 | * The 32-bit bus address to use is returned. |
@@ -51,6 +55,8 @@ dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, | |||
51 | return virt_to_bus(ptr); | 55 | return virt_to_bus(ptr); |
52 | } | 56 | } |
53 | 57 | ||
58 | EXPORT_SYMBOL(dma_map_single); | ||
59 | |||
54 | /* | 60 | /* |
55 | * Map a set of buffers described by scatterlist in streaming | 61 | * Map a set of buffers described by scatterlist in streaming |
56 | * mode for DMA. This is the scather-gather version of the | 62 | * mode for DMA. This is the scather-gather version of the |
@@ -96,6 +102,8 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
96 | return nents; | 102 | return nents; |
97 | } | 103 | } |
98 | 104 | ||
105 | EXPORT_SYMBOL(dma_map_sg); | ||
106 | |||
99 | dma_addr_t dma_map_page(struct device *dev, struct page *page, unsigned long offset, | 107 | dma_addr_t dma_map_page(struct device *dev, struct page *page, unsigned long offset, |
100 | size_t size, enum dma_data_direction direction) | 108 | size_t size, enum dma_data_direction direction) |
101 | { | 109 | { |
@@ -103,3 +111,5 @@ dma_addr_t dma_map_page(struct device *dev, struct page *page, unsigned long off | |||
103 | flush_dcache_page(page); | 111 | flush_dcache_page(page); |
104 | return (dma_addr_t) page_to_phys(page) + offset; | 112 | return (dma_addr_t) page_to_phys(page) + offset; |
105 | } | 113 | } |
114 | |||
115 | EXPORT_SYMBOL(dma_map_page); | ||