mc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __NVKM_MC_H__
  2. #define __NVKM_MC_H__
  3. #include <core/subdev.h>
  4. struct nvkm_mc {
  5. const struct nvkm_mc_func *func;
  6. struct nvkm_subdev subdev;
  7. };
  8. void nvkm_mc_enable(struct nvkm_device *, enum nvkm_devidx);
  9. void nvkm_mc_disable(struct nvkm_device *, enum nvkm_devidx);
  10. bool nvkm_mc_enabled(struct nvkm_device *, enum nvkm_devidx);
  11. void nvkm_mc_reset(struct nvkm_device *, enum nvkm_devidx);
  12. void nvkm_mc_intr(struct nvkm_device *, bool *handled);
  13. void nvkm_mc_intr_unarm(struct nvkm_device *);
  14. void nvkm_mc_intr_rearm(struct nvkm_device *);
  15. void nvkm_mc_intr_mask(struct nvkm_device *, enum nvkm_devidx, bool enable);
  16. void nvkm_mc_unk260(struct nvkm_device *, u32 data);
  17. int nv04_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  18. int nv11_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  19. int nv17_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  20. int nv44_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  21. int nv50_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  22. int g84_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  23. int g98_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  24. int gt215_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  25. int gf100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  26. int gk104_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  27. int gk20a_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  28. int gp100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  29. int gp10b_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
  30. #endif