diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index 22abe8579912..1305e2c94201 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h | |||
@@ -66,6 +66,15 @@ struct nouveau_grctx; | |||
66 | #define NV50_VM_BLOCK (512*1024*1024ULL) | 66 | #define NV50_VM_BLOCK (512*1024*1024ULL) |
67 | #define NV50_VM_VRAM_NR (NV50_VM_MAX_VRAM / NV50_VM_BLOCK) | 67 | #define NV50_VM_VRAM_NR (NV50_VM_MAX_VRAM / NV50_VM_BLOCK) |
68 | 68 | ||
69 | struct nouveau_vram { | ||
70 | struct drm_device *dev; | ||
71 | |||
72 | struct list_head regions; | ||
73 | u32 memtype; | ||
74 | u64 offset; | ||
75 | u64 size; | ||
76 | }; | ||
77 | |||
69 | struct nouveau_tile_reg { | 78 | struct nouveau_tile_reg { |
70 | bool used; | 79 | bool used; |
71 | uint32_t addr; | 80 | uint32_t addr; |
@@ -821,6 +830,7 @@ extern int nv50_mem_vm_bind_linear(struct drm_device *, uint64_t virt, | |||
821 | uint64_t phys); | 830 | uint64_t phys); |
822 | extern void nv50_mem_vm_unbind(struct drm_device *, uint64_t virt, | 831 | extern void nv50_mem_vm_unbind(struct drm_device *, uint64_t virt, |
823 | uint32_t size); | 832 | uint32_t size); |
833 | extern const struct ttm_mem_type_manager_func nouveau_vram_manager; | ||
824 | 834 | ||
825 | /* nouveau_notifier.c */ | 835 | /* nouveau_notifier.c */ |
826 | extern int nouveau_notifier_init_channel(struct nouveau_channel *); | 836 | extern int nouveau_notifier_init_channel(struct nouveau_channel *); |