diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h index 537409a8..6feacff7 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | |||
@@ -273,6 +273,16 @@ int nvgpu_mem_create_from_mem(struct gk20a *g, | |||
273 | int start_page, int nr_pages); | 273 | int start_page, int nr_pages); |
274 | 274 | ||
275 | /* | 275 | /* |
276 | * Really free a vidmem buffer. There's a fair amount of work involved in | ||
277 | * freeing vidmem buffers in the DMA API. This handles none of that - it only | ||
278 | * frees the underlying vidmem specific structures used in vidmem buffers. | ||
279 | * | ||
280 | * This is implemented in the OS specific code. If it's not necessary it can | ||
281 | * be a noop. But the symbol must at least be present. | ||
282 | */ | ||
283 | void __nvgpu_mem_free_vidmem_alloc(struct gk20a *g, struct nvgpu_mem *vidmem); | ||
284 | |||
285 | /* | ||
276 | * Buffer accessors - wrap between begin() and end() if there is no permanent | 286 | * Buffer accessors - wrap between begin() and end() if there is no permanent |
277 | * kernel mapping for this buffer. | 287 | * kernel mapping for this buffer. |
278 | */ | 288 | */ |