mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 03:33:58 +08:00
e2ca4e7d6e
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
28 lines
530 B
C
28 lines
530 B
C
#ifndef __NVKM_PMU_PRIV_H__
|
|
#define __NVKM_PMU_PRIV_H__
|
|
#define nvkm_pmu(p) container_of((p), struct nvkm_pmu, subdev)
|
|
#include <subdev/pmu.h>
|
|
#include <subdev/pmu/fuc/os.h>
|
|
|
|
int nvkm_pmu_new_(const struct nvkm_pmu_func *, struct nvkm_device *,
|
|
int index, struct nvkm_pmu **);
|
|
|
|
struct nvkm_pmu_func {
|
|
void (*reset)(struct nvkm_pmu *);
|
|
|
|
struct {
|
|
u32 *data;
|
|
u32 size;
|
|
} code;
|
|
|
|
struct {
|
|
u32 *data;
|
|
u32 size;
|
|
} data;
|
|
|
|
void (*pgob)(struct nvkm_pmu *, bool);
|
|
};
|
|
|
|
void gk110_pmu_pgob(struct nvkm_pmu *, bool);
|
|
#endif
|