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/pci-dma-nommu.c | |
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/pci-dma-nommu.c')
-rw-r--r-- | arch/frv/mb93090-mb00/pci-dma-nommu.c | 8 |
1 files changed, 8 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); | ||