0001
0002 #ifndef __NVKM_BUS_PRIV_H__
0003 #define __NVKM_BUS_PRIV_H__
0004 #define nvkm_bus(p) container_of((p), struct nvkm_bus, subdev)
0005 #include <subdev/bus.h>
0006
0007 struct nvkm_bus_func {
0008 void (*init)(struct nvkm_bus *);
0009 void (*intr)(struct nvkm_bus *);
0010 int (*hwsq_exec)(struct nvkm_bus *, u32 *, u32);
0011 u32 hwsq_size;
0012 };
0013
0014 int nvkm_bus_new_(const struct nvkm_bus_func *, struct nvkm_device *, enum nvkm_subdev_type, int,
0015 struct nvkm_bus **);
0016
0017 void nv50_bus_init(struct nvkm_bus *);
0018 void nv50_bus_intr(struct nvkm_bus *);
0019 #endif