diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/allocator.h | 3 |
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 | */ |
50 | struct nvgpu_allocator_ops { | 50 | struct 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 | */ |
244 | u64 nvgpu_alloc(struct nvgpu_allocator *allocator, u64 len); | 246 | u64 nvgpu_alloc(struct nvgpu_allocator *allocator, u64 len); |
247 | u64 nvgpu_alloc_pte(struct nvgpu_allocator *a, u64 len, u32 page_size); | ||
245 | void nvgpu_free(struct nvgpu_allocator *allocator, u64 addr); | 248 | void nvgpu_free(struct nvgpu_allocator *allocator, u64 addr); |
246 | 249 | ||
247 | u64 nvgpu_alloc_fixed(struct nvgpu_allocator *allocator, u64 base, u64 len, | 250 | u64 nvgpu_alloc_fixed(struct nvgpu_allocator *allocator, u64 base, u64 len, |