gf100.h 773 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __GF100_BAR_H__
  3. #define __GF100_BAR_H__
  4. #define gf100_bar(p) container_of((p), struct gf100_bar, base)
  5. #include "priv.h"
  6. struct gf100_barN {
  7. struct nvkm_memory *inst;
  8. struct nvkm_vmm *vmm;
  9. };
  10. struct gf100_bar {
  11. struct nvkm_bar base;
  12. bool bar2_halve;
  13. struct gf100_barN bar[2];
  14. };
  15. int gf100_bar_new_(const struct nvkm_bar_func *, struct nvkm_device *,
  16. int, struct nvkm_bar **);
  17. void *gf100_bar_dtor(struct nvkm_bar *);
  18. int gf100_bar_oneinit(struct nvkm_bar *);
  19. void gf100_bar_bar1_init(struct nvkm_bar *);
  20. void gf100_bar_bar1_wait(struct nvkm_bar *);
  21. struct nvkm_vmm *gf100_bar_bar1_vmm(struct nvkm_bar *);
  22. void gf100_bar_bar2_init(struct nvkm_bar *);
  23. struct nvkm_vmm *gf100_bar_bar2_vmm(struct nvkm_bar *);
  24. #endif