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 
6 struct nvkm_bus_func {
7 	void (*init)(struct nvkm_bus *);
8 	void (*intr)(struct nvkm_bus *);
9 	int (*hwsq_exec)(struct nvkm_bus *, u32 *, u32);
10 	u32 hwsq_size;
11 };
12 
13 int nvkm_bus_new_(const struct nvkm_bus_func *, struct nvkm_device *, int,
14 		  struct nvkm_bus **);
15 
16 void nv50_bus_init(struct nvkm_bus *);
17 void nv50_bus_intr(struct nvkm_bus *);
18 #endif
19