1 #ifndef __NVKM_MC_PRIV_H__
2 #define __NVKM_MC_PRIV_H__
3 #define nvkm_mc(p) container_of((p), struct nvkm_mc, subdev)
4 #include <subdev/mc.h>
5 
6 int nvkm_mc_new_(const struct nvkm_mc_func *, struct nvkm_device *,
7 		 int index, struct nvkm_mc **);
8 
9 struct nvkm_mc_intr {
10 	u32 stat;
11 	u32 unit;
12 };
13 
14 struct nvkm_mc_func {
15 	void (*init)(struct nvkm_mc *);
16 	const struct nvkm_mc_intr *intr;
17 	void (*msi_rearm)(struct nvkm_mc *);
18 	void (*unk260)(struct nvkm_mc *, u32);
19 };
20 
21 void nv04_mc_init(struct nvkm_mc *);
22 extern const struct nvkm_mc_intr nv04_mc_intr[];
23 
24 void nv40_mc_msi_rearm(struct nvkm_mc *);
25 
26 void nv44_mc_init(struct nvkm_mc *);
27 
28 void nv50_mc_init(struct nvkm_mc *);
29 extern const struct nvkm_mc_intr nv50_mc_intr[];
30 
31 extern const struct nvkm_mc_intr gf100_mc_intr[];
32 void gf100_mc_unk260(struct nvkm_mc *, u32);
33 #endif
34