priv.h 491 B

123456789101112131415161718
  1. #ifndef __NVKM_BUS_PRIV_H__
  2. #define __NVKM_BUS_PRIV_H__
  3. #define nvkm_bus(p) container_of((p), struct nvkm_bus, subdev)
  4. #include <subdev/bus.h>
  5. struct nvkm_bus_func {
  6. void (*init)(struct nvkm_bus *);
  7. void (*intr)(struct nvkm_bus *);
  8. int (*hwsq_exec)(struct nvkm_bus *, u32 *, u32);
  9. u32 hwsq_size;
  10. };
  11. int nvkm_bus_new_(const struct nvkm_bus_func *, struct nvkm_device *, int,
  12. struct nvkm_bus **);
  13. void nv50_bus_init(struct nvkm_bus *);
  14. void nv50_bus_intr(struct nvkm_bus *);
  15. #endif