Commit 3b9e93f7 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/top: expose parsed device info more directly

This is easier to deal with in some situations than the existing accessor
functions.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent 5e0d3dbc
......@@ -9,6 +9,19 @@ struct nvkm_top {
struct list_head device;
};
struct nvkm_top_device {
enum nvkm_subdev_type type;
int inst;
enum nvkm_devidx index;
u32 addr;
int fault;
int engine;
int runlist;
int reset;
int intr;
struct list_head head;
};
u32 nvkm_top_addr(struct nvkm_device *, enum nvkm_devidx);
u32 nvkm_top_reset(struct nvkm_device *, enum nvkm_devidx);
u32 nvkm_top_intr(struct nvkm_device *, u32 intr, u64 *subdevs);
......
......@@ -11,18 +11,5 @@ struct nvkm_top_func {
int nvkm_top_new_(const struct nvkm_top_func *, struct nvkm_device *,
int, struct nvkm_top **);
struct nvkm_top_device {
enum nvkm_subdev_type type;
int inst;
enum nvkm_devidx index;
u32 addr;
int fault;
int engine;
int runlist;
int reset;
int intr;
struct list_head head;
};
struct nvkm_top_device *nvkm_top_device_new(struct nvkm_top *);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment