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