ARM: pmu: add support for interrupt-affinity property
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / subdev / mc / priv.h
blobd2cad07afd1a50d13e96e5ab1d1c85e4ebf755b5
1 #ifndef __NVKM_MC_PRIV_H__
2 #define __NVKM_MC_PRIV_H__
3 #include <subdev/mc.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)); \
9 })
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);
23 struct nvkm_mc_intr {
24 u32 stat;
25 u32 unit;
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);
36 #endif