diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/dma.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/dma.h b/drivers/gpu/nvgpu/include/nvgpu/dma.h index c0397b58..d83346a3 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/dma.h +++ b/drivers/gpu/nvgpu/include/nvgpu/dma.h | |||
@@ -167,6 +167,24 @@ int nvgpu_dma_alloc_vid(struct gk20a *g, size_t size, struct nvgpu_mem *mem); | |||
167 | int nvgpu_dma_alloc_flags_vid(struct gk20a *g, unsigned long flags, | 167 | int nvgpu_dma_alloc_flags_vid(struct gk20a *g, unsigned long flags, |
168 | size_t size, struct nvgpu_mem *mem); | 168 | size_t size, struct nvgpu_mem *mem); |
169 | 169 | ||
170 | |||
171 | /** | ||
172 | * nvgpu_dma_alloc_flags_vid_at - Allocate DMA memory | ||
173 | * | ||
174 | * @g - The GPU. | ||
175 | * @size - Size of the allocation in bytes. | ||
176 | * @mem - Struct for storing the allocation information. | ||
177 | * @at - A specific location to attempt to allocate memory from or 0 if the | ||
178 | * caller does not care what the address is. | ||
179 | * | ||
180 | * Allocate memory suitable for doing DMA. Store the allocation info in @mem. | ||
181 | * Returns 0 on success and a suitable error code when there's an error. This | ||
182 | * allocates memory specifically in VIDMEM. | ||
183 | * | ||
184 | */ | ||
185 | int nvgpu_dma_alloc_vid_at(struct gk20a *g, | ||
186 | size_t size, struct nvgpu_mem *mem, u64 at); | ||
187 | |||
170 | /** | 188 | /** |
171 | * nvgpu_dma_alloc_flags_vid_at - Allocate DMA memory | 189 | * nvgpu_dma_alloc_flags_vid_at - Allocate DMA memory |
172 | * | 190 | * |