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
|
|
|
};
|
|
|
|
|
2015-08-20 14:54:22 +10:00
|
|
|
void nvkm_mc_intr(struct nvkm_mc *, bool *handled);
|
2015-08-20 14:54:22 +10:00
|
|
|
void nvkm_mc_intr_unarm(struct nvkm_mc *);
|
|
|
|
void nvkm_mc_intr_rearm(struct nvkm_mc *);
|
2016-04-08 17:24:40 +10:00
|
|
|
void nvkm_mc_reset(struct nvkm_mc *, enum nvkm_devidx);
|
2015-08-20 14:54:21 +10:00
|
|
|
void nvkm_mc_unk260(struct nvkm_mc *, 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 **);
|
|
|
|
int nv44_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
|
|
|
int nv50_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
|
|
|
int g98_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
|
|
|
|
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 **);
|
2012-07-11 15:58:56 +10:00
|
|
|
#endif
|