]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / top.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
eaebfcc3
BS
2#ifndef __NVKM_TOP_H__
3#define __NVKM_TOP_H__
4#include <core/subdev.h>
5
6struct nvkm_top {
5f76f294 7 const struct nvkm_top_func *func;
eaebfcc3 8 struct nvkm_subdev subdev;
5f76f294 9 struct list_head device;
eaebfcc3 10};
5f76f294 11
952eb819
BS
12u32 nvkm_top_reset(struct nvkm_device *, enum nvkm_devidx);
13u32 nvkm_top_intr(struct nvkm_device *, u32 intr, u64 *subdevs);
3560e170 14u32 nvkm_top_intr_mask(struct nvkm_device *, enum nvkm_devidx);
13416077 15int nvkm_top_fault_id(struct nvkm_device *, enum nvkm_devidx);
952eb819
BS
16enum nvkm_devidx nvkm_top_fault(struct nvkm_device *, int fault);
17enum nvkm_devidx nvkm_top_engine(struct nvkm_device *, int, int *runl, int *engn);
fb3e9c61
BS
18
19int gk104_top_new(struct nvkm_device *, int, struct nvkm_top **);
eaebfcc3 20#endif