3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-01 07:42:18 +00:00
Brooklyn/drivers/gpu/drm/nouveau/nvkm/subdev/top/priv.h

27 lines
565 B
C
Raw Normal View History

2021-05-26 19:09:36 +00:00
/* SPDX-License-Identifier: MIT */
#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 *);
};
2021-09-23 16:59:15 +00:00
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;
};
2021-05-26 19:09:36 +00:00
struct nvkm_top_device *nvkm_top_device_new(struct nvkm_top *);
#endif