xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bus/priv.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: priv.h,v 1.3 2021/12/18 23:45:38 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 #ifndef __NVKM_BUS_PRIV_H__
5 #define __NVKM_BUS_PRIV_H__
6 #define nvkm_bus(p) container_of((p), struct nvkm_bus, subdev)
7 #include <subdev/bus.h>
8 
9 struct nvkm_bus_func {
10 	void (*init)(struct nvkm_bus *);
11 	void (*intr)(struct nvkm_bus *);
12 	int (*hwsq_exec)(struct nvkm_bus *, u32 *, u32);
13 	u32 hwsq_size;
14 };
15 
16 int nvkm_bus_new_(const struct nvkm_bus_func *, struct nvkm_device *, int,
17 		  struct nvkm_bus **);
18 
19 void nv50_bus_init(struct nvkm_bus *);
20 void nv50_bus_intr(struct nvkm_bus *);
21 #endif
22