2015-01-14 05:08:21 +00:00
|
|
|
#ifndef __NVKM_MC_H__
|
|
|
|
#define __NVKM_MC_H__
|
2012-07-11 05:58:56 +00:00
|
|
|
#include <core/subdev.h>
|
|
|
|
|
2015-01-14 05:08:21 +00:00
|
|
|
struct nvkm_mc {
|
2015-08-20 04:54:21 +00:00
|
|
|
const struct nvkm_mc_func *func;
|
2015-08-20 04:54:07 +00:00
|
|
|
struct nvkm_subdev subdev;
|
2012-07-11 05:58:56 +00:00
|
|
|
};
|
|
|
|
|
2016-05-29 22:23:41 +00:00
|
|
|
void nvkm_mc_enable(struct nvkm_device *, enum nvkm_devidx);
|
|
|
|
void nvkm_mc_disable(struct nvkm_device *, enum nvkm_devidx);
|
|
|
|
void nvkm_mc_reset(struct nvkm_device *, enum nvkm_devidx);
|
2016-05-29 22:17:58 +00: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-29 22:39:27 +00:00
|
|
|
void nvkm_mc_intr_mask(struct nvkm_device *, enum nvkm_devidx, bool enable);
|
2016-05-29 22:17:58 +00:00
|
|
|
void nvkm_mc_unk260(struct nvkm_device *, u32 data);
|
2012-07-11 05:58:56 +00:00
|
|
|
|
2015-08-20 04:54:21 +00:00
|
|
|
int nv04_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 07:24:40 +00:00
|
|
|
int nv11_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 07:24:40 +00:00
|
|
|
int nv17_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 04:54:21 +00: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 07:24:40 +00:00
|
|
|
int g84_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 04:54:21 +00:00
|
|
|
int g98_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 07:24:40 +00:00
|
|
|
int gt215_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 04:54:21 +00:00
|
|
|
int gf100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-04-08 07:24:40 +00:00
|
|
|
int gk104_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2015-08-20 04:54:21 +00:00
|
|
|
int gk20a_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2016-07-09 00:41:01 +00:00
|
|
|
int gp100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
2012-07-11 05:58:56 +00:00
|
|
|
#endif
|