2019-06-19 20:13:43 -04:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2015-01-14 15:08:21 +10:00
|
|
|
#ifndef __NVKM_MC_H__
|
|
|
|
#define __NVKM_MC_H__
|
2012-07-11 15:58:56 +10:00
|
|
|
#include <core/subdev.h>
|
|
|
|
|
2015-01-14 15:08:21 +10:00
|
|
|
struct nvkm_mc {
|
2015-08-20 14:54:21 +10:00
|
|
|
const struct nvkm_mc_func *func;
|
2015-08-20 14:54:07 +10:00
|
|
|
struct nvkm_subdev subdev;
|
2012-07-11 15:58:56 +10:00
|
|
|
};
|
|
|
|
|
2016-05-30 08:23:41 +10:00
|
|
|
void nvkm_mc_enable(struct nvkm_device *, enum nvkm_devidx);
|
|
|
|
void nvkm_mc_disable(struct nvkm_device *, enum nvkm_devidx);
|
2016-12-13 17:11:18 +09:00
|
|
|
bool nvkm_mc_enabled(struct nvkm_device *, enum nvkm_devidx);
|
2016-05-30 08:23:41 +10:00
|
|
|
void nvkm_mc_reset(struct nvkm_device *, enum nvkm_devidx);
|
2016-05-30 08:17:58 +10:00
|
|
|
void nvkm_mc_intr(struct nvkm_device *, bool *handled);
|
|
|
|
void nvkm_mc_intr_unarm(struct nvkm_device *);
|
|
|
|
void nvkm_mc_intr_rearm(struct nvkm_device *);
|
2016-05-30 08:39:27 +10:00
|
|
|
void nvkm_mc_intr_mask(struct nvkm_device *, enum nvkm_devidx, bool enable);
|
2016-05-30 08:17:58 +10:00
|
|
|
void nvkm_mc_unk260(struct nvkm_device *, u32 data);
|
2012-07-11 15:58:56 +10:00
|
|
|
|
2015-08-20 14:54:21 +10:00
|
|
|
int nv04_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 17:24:40 +10:00
|
|
|
int nv11_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 17:24:40 +10:00
|
|
|
int nv17_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 14:54:21 +10:00
|
|
|
int nv44_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
|
|
|
int nv50_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 17:24:40 +10:00
|
|
|
int g84_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 14:54:21 +10:00
|
|
|
int g98_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 17:24:40 +10:00
|
|
|
int gt215_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 14:54:21 +10:00
|
|
|
int gf100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 17:24:40 +10:00
|
|
|
int gk104_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 14:54:21 +10:00
|
|
|
int gk20a_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-07-09 10:41:01 +10:00
|
|
|
int gp100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2017-03-29 18:31:18 +09:00
|
|
|
int gp10b_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2019-01-17 11:46:39 +10:00
|
|
|
int tu102_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2012-07-11 15:58:56 +10:00
|
|
|
#endif
|