2019-06-19 20:13:43 -04:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2016-04-08 17:24:40 +10:00
|
|
|
#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>
|
2016-04-08 17:24:40 +10:00
|
|
|
|
|
|
|
struct nvkm_top_func {
|
2022-06-01 20:46:51 +10:00
|
|
|
int (*parse)(struct nvkm_top *);
|
2016-04-08 17:24:40 +10:00
|
|
|
};
|
|
|
|
|
2020-12-04 12:53:38 +10:00
|
|
|
int nvkm_top_new_(const struct nvkm_top_func *, struct nvkm_device *, enum nvkm_subdev_type, int,
|
|
|
|
struct nvkm_top **);
|
2016-04-08 17:24:40 +10:00
|
|
|
|
|
|
|
struct nvkm_top_device *nvkm_top_device_new(struct nvkm_top *);
|
2016-04-08 17:24:40 +10:00
|
|
|
#endif
|