26 lines · c
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 9struct 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 21int nvif_device_ctor(struct nvif_client *, const char *name, struct nvif_device *);22void nvif_device_dtor(struct nvif_device *);23int nvif_device_map(struct nvif_device *);24u64 nvif_device_time(struct nvif_device *);25#endif26