xref: /linux/drivers/gpu/drm/nouveau/include/nvif/device.h (revision de848da12f752170c2ebe114804a985314fd5a6a)
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVIF_DEVICE_H__
3 #define __NVIF_DEVICE_H__
4 
5 #include <nvif/object.h>
6 #include <nvif/cl0080.h>
7 #include <nvif/user.h>
8 
9 struct nvif_device {
10 	struct nvif_object object;
11 	struct nv_device_info_v0 info;
12 
13 	struct nvif_fifo_runlist {
14 		u64 engines;
15 	} *runlist;
16 	int runlists;
17 
18 	struct nvif_user user;
19 };
20 
21 int  nvif_device_ctor(struct nvif_client *, const char *name, struct nvif_device *);
22 void nvif_device_dtor(struct nvif_device *);
23 int  nvif_device_map(struct nvif_device *);
24 u64  nvif_device_time(struct nvif_device *);
25 #endif
26