priv.h 530 B

12345678910111213141516171819202122232425
  1. #ifndef __NVKM_TOP_PRIV_H__
  2. #define __NVKM_TOP_PRIV_H__
  3. #define nvkm_top(p) container_of((p), struct nvkm_top, subdev)
  4. #include <subdev/top.h>
  5. struct nvkm_top_func {
  6. int (*oneinit)(struct nvkm_top *);
  7. };
  8. int nvkm_top_new_(const struct nvkm_top_func *, struct nvkm_device *,
  9. int, struct nvkm_top **);
  10. struct nvkm_top_device {
  11. enum nvkm_devidx index;
  12. u32 addr;
  13. int fault;
  14. int engine;
  15. int runlist;
  16. int reset;
  17. int intr;
  18. struct list_head head;
  19. };
  20. struct nvkm_top_device *nvkm_top_device_new(struct nvkm_top *);
  21. #endif