priv.h 576 B

12345678910111213141516171819
  1. #ifndef __NVKM_BAR_PRIV_H__
  2. #define __NVKM_BAR_PRIV_H__
  3. #define nvkm_bar(p) container_of((p), struct nvkm_bar, subdev)
  4. #include <subdev/bar.h>
  5. void nvkm_bar_ctor(const struct nvkm_bar_func *, struct nvkm_device *,
  6. int, struct nvkm_bar *);
  7. struct nvkm_bar_func {
  8. void *(*dtor)(struct nvkm_bar *);
  9. int (*oneinit)(struct nvkm_bar *);
  10. int (*init)(struct nvkm_bar *);
  11. struct nvkm_vm *(*kmap)(struct nvkm_bar *);
  12. int (*umap)(struct nvkm_bar *, u64 size, int type, struct nvkm_vma *);
  13. void (*flush)(struct nvkm_bar *);
  14. };
  15. void g84_bar_flush(struct nvkm_bar *);
  16. #endif