summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/allocator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/allocator.h b/drivers/gpu/nvgpu/include/nvgpu/allocator.h
index 698aafb3..2d9b3d32 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/allocator.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/allocator.h
@@ -49,6 +49,8 @@ struct gk20a;
49 */ 49 */
50struct nvgpu_allocator_ops { 50struct nvgpu_allocator_ops {
51 u64 (*alloc)(struct nvgpu_allocator *allocator, u64 len); 51 u64 (*alloc)(struct nvgpu_allocator *allocator, u64 len);
52 u64 (*alloc_pte)(struct nvgpu_allocator *allocator, u64 len,
53 u32 page_size);
52 void (*free)(struct nvgpu_allocator *allocator, u64 addr); 54 void (*free)(struct nvgpu_allocator *allocator, u64 addr);
53 55
54 /* 56 /*
@@ -242,6 +244,7 @@ int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *na,
242 * Allocator APIs. 244 * Allocator APIs.
243 */ 245 */
244u64 nvgpu_alloc(struct nvgpu_allocator *allocator, u64 len); 246u64 nvgpu_alloc(struct nvgpu_allocator *allocator, u64 len);
247u64 nvgpu_alloc_pte(struct nvgpu_allocator *a, u64 len, u32 page_size);
245void nvgpu_free(struct nvgpu_allocator *allocator, u64 addr); 248void nvgpu_free(struct nvgpu_allocator *allocator, u64 addr);
246 249
247u64 nvgpu_alloc_fixed(struct nvgpu_allocator *allocator, u64 base, u64 len, 250u64 nvgpu_alloc_fixed(struct nvgpu_allocator *allocator, u64 base, u64 len,