1 #ifndef __NVKM_MC_PRIV_H__
2 #define __NVKM_MC_PRIV_H__
5 #define nvkm_mc_create(p,e,o,d) \
6 nvkm_mc_create_((p), (e), (o), sizeof(**d), (void **)d)
7 #define nvkm_mc_destroy(p) ({ \
8 struct nvkm_mc *pmc = (p); _nvkm_mc_dtor(nv_object(pmc)); \
10 #define nvkm_mc_init(p) ({ \
11 struct nvkm_mc *pmc = (p); _nvkm_mc_init(nv_object(pmc)); \
13 #define nvkm_mc_fini(p,s) ({ \
14 struct nvkm_mc *pmc = (p); _nvkm_mc_fini(nv_object(pmc), (s)); \
17 int nvkm_mc_create_(struct nvkm_object
*, struct nvkm_object
*,
18 struct nvkm_oclass
*, int, void **);
19 void _nvkm_mc_dtor(struct nvkm_object
*);
20 int _nvkm_mc_init(struct nvkm_object
*);
21 int _nvkm_mc_fini(struct nvkm_object
*, bool);
28 struct nvkm_mc_oclass
{
29 struct nvkm_oclass base
;
30 const struct nvkm_mc_intr
*intr
;
31 void (*msi_rearm
)(struct nvkm_mc
*);
32 void (*unk260
)(struct nvkm_mc
*, u32
);
35 void gf100_mc_unk260(struct nvkm_mc
*, u32
);