1 #ifndef __NOUVEAU_MC_H__
2 #define __NOUVEAU_MC_H__
4 #include <core/subdev.h>
5 #include <core/device.h>
7 struct nouveau_mc_intr
{
13 struct nouveau_subdev base
;
18 static inline struct nouveau_mc
*
21 return (void *)nv_device(obj
)->subdev
[NVDEV_SUBDEV_MC
];
24 #define nouveau_mc_create(p,e,o,d) \
25 nouveau_mc_create_((p), (e), (o), sizeof(**d), (void **)d)
26 #define nouveau_mc_destroy(p) ({ \
27 struct nouveau_mc *pmc = (p); _nouveau_mc_dtor(nv_object(pmc)); \
29 #define nouveau_mc_init(p) ({ \
30 struct nouveau_mc *pmc = (p); _nouveau_mc_init(nv_object(pmc)); \
32 #define nouveau_mc_fini(p,s) ({ \
33 struct nouveau_mc *pmc = (p); _nouveau_mc_fini(nv_object(pmc), (s)); \
36 int nouveau_mc_create_(struct nouveau_object
*, struct nouveau_object
*,
37 struct nouveau_oclass
*, int, void **);
38 void _nouveau_mc_dtor(struct nouveau_object
*);
39 int _nouveau_mc_init(struct nouveau_object
*);
40 int _nouveau_mc_fini(struct nouveau_object
*, bool);
42 struct nouveau_mc_oclass
{
43 struct nouveau_oclass base
;
44 const struct nouveau_mc_intr
*intr
;
45 void (*msi_rearm
)(struct nouveau_mc
*);
48 extern struct nouveau_oclass
*nv04_mc_oclass
;
49 extern struct nouveau_oclass
*nv40_mc_oclass
;
50 extern struct nouveau_oclass
*nv44_mc_oclass
;
51 extern struct nouveau_oclass
*nv4c_mc_oclass
;
52 extern struct nouveau_oclass
*nv50_mc_oclass
;
53 extern struct nouveau_oclass
*nv94_mc_oclass
;
54 extern struct nouveau_oclass
*nv98_mc_oclass
;
55 extern struct nouveau_oclass
*nvc0_mc_oclass
;
56 extern struct nouveau_oclass
*nvc3_mc_oclass
;
This page took 0.034673 seconds and 5 git commands to generate.