gf100.h 603 B

1234567891011121314151617181920212223
  1. #ifndef __GF100_BAR_H__
  2. #define __GF100_BAR_H__
  3. #define gf100_bar(p) container_of((p), struct gf100_bar, base)
  4. #include "priv.h"
  5. struct gf100_bar_vm {
  6. struct nvkm_memory *mem;
  7. struct nvkm_gpuobj *pgd;
  8. struct nvkm_vm *vm;
  9. };
  10. struct gf100_bar {
  11. struct nvkm_bar base;
  12. struct gf100_bar_vm bar[2];
  13. };
  14. int gf100_bar_new_(const struct nvkm_bar_func *, struct nvkm_device *,
  15. int, struct nvkm_bar **);
  16. void *gf100_bar_dtor(struct nvkm_bar *);
  17. int gf100_bar_oneinit(struct nvkm_bar *);
  18. int gf100_bar_init(struct nvkm_bar *);
  19. int gf100_bar_umap(struct nvkm_bar *, u64, int, struct nvkm_vma *);
  20. #endif