mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

These are some dodgy "convenience" macros for the DRM driver to peek into NVKM state. They're still used in a few places, but don't belong in nvif/device.h in any case. Move them to nouveau_drv.h, and modify callers to pass a nouveau_drm instead of an nvif_device. v2: - use drm->nvkm pointer for nvxx_*() macros, removing some void* v3: - add some explanation of the nvxx_*() macros Signed-off-by: Ben Skeggs <bskeggs@nvidia.com> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-28-bskeggs@nvidia.com
25 lines
570 B
C
25 lines
570 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_DEVICE_H__
|
|
#define __NVIF_DEVICE_H__
|
|
|
|
#include <nvif/object.h>
|
|
#include <nvif/cl0080.h>
|
|
#include <nvif/user.h>
|
|
|
|
struct nvif_device {
|
|
struct nvif_object object;
|
|
struct nv_device_info_v0 info;
|
|
|
|
struct nvif_fifo_runlist {
|
|
u64 engines;
|
|
} *runlist;
|
|
int runlists;
|
|
|
|
struct nvif_user user;
|
|
};
|
|
|
|
int nvif_device_ctor(struct nvif_client *, const char *name, struct nvif_device *);
|
|
void nvif_device_dtor(struct nvif_device *);
|
|
int nvif_device_map(struct nvif_device *);
|
|
u64 nvif_device_time(struct nvif_device *);
|
|
#endif
|