1 #ifndef __NVKM_TOP_PRIV_H__
2 #define __NVKM_TOP_PRIV_H__
3 #define nvkm_top(p) container_of((p), struct nvkm_top, subdev)
4 #include <subdev/top.h>
5 
6 struct nvkm_top_func {
7 	int (*oneinit)(struct nvkm_top *);
8 };
9 
10 int nvkm_top_new_(const struct nvkm_top_func *, struct nvkm_device *,
11 		  int, struct nvkm_top **);
12 
13 struct nvkm_top_device {
14 	enum nvkm_devidx index;
15 	u32 addr;
16 	int fault;
17 	int engine;
18 	int runlist;
19 	int reset;
20 	int intr;
21 	struct list_head head;
22 };
23 
24 struct nvkm_top_device *nvkm_top_device_new(struct nvkm_top *);
25 #endif
26