nouveau_ttm.h 807 B

12345678910111213141516171819202122232425
  1. #ifndef __NOUVEAU_TTM_H__
  2. #define __NOUVEAU_TTM_H__
  3. static inline struct nouveau_drm *
  4. nouveau_bdev(struct ttm_bo_device *bd)
  5. {
  6. return container_of(bd, struct nouveau_drm, ttm.bdev);
  7. }
  8. extern const struct ttm_mem_type_manager_func nouveau_vram_manager;
  9. extern const struct ttm_mem_type_manager_func nouveau_gart_manager;
  10. extern const struct ttm_mem_type_manager_func nv04_gart_manager;
  11. struct ttm_tt *nouveau_sgdma_create_ttm(struct ttm_bo_device *,
  12. unsigned long size, u32 page_flags,
  13. struct page *dummy_read_page);
  14. int nouveau_ttm_init(struct nouveau_drm *drm);
  15. void nouveau_ttm_fini(struct nouveau_drm *drm);
  16. int nouveau_ttm_mmap(struct file *, struct vm_area_struct *);
  17. int nouveau_ttm_global_init(struct nouveau_drm *);
  18. void nouveau_ttm_global_release(struct nouveau_drm *);
  19. #endif