ARM: pmu: add support for interrupt-affinity property
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / subdev / bar / priv.h
blobaa85f61b48c25e66f3eb67fd0afebdbfdddeb5c1
1 #ifndef __NVKM_BAR_PRIV_H__
2 #define __NVKM_BAR_PRIV_H__
3 #include <subdev/bar.h>
5 #define nvkm_bar_create(p,e,o,d) \
6 nvkm_bar_create_((p), (e), (o), sizeof(**d), (void **)d)
7 #define nvkm_bar_init(p) \
8 nvkm_subdev_init(&(p)->base)
9 #define nvkm_bar_fini(p,s) \
10 nvkm_subdev_fini(&(p)->base, (s))
12 int nvkm_bar_create_(struct nvkm_object *, struct nvkm_object *,
13 struct nvkm_oclass *, int, void **);
14 void nvkm_bar_destroy(struct nvkm_bar *);
16 void _nvkm_bar_dtor(struct nvkm_object *);
17 #define _nvkm_bar_init _nvkm_subdev_init
18 #define _nvkm_bar_fini _nvkm_subdev_fini
20 int nvkm_bar_alloc(struct nvkm_bar *, struct nvkm_object *,
21 struct nvkm_mem *, struct nvkm_object **);
23 void g84_bar_flush(struct nvkm_bar *);
25 int gf100_bar_ctor(struct nvkm_object *, struct nvkm_object *,
26 struct nvkm_oclass *, void *, u32,
27 struct nvkm_object **);
28 void gf100_bar_dtor(struct nvkm_object *);
29 int gf100_bar_init(struct nvkm_object *);
30 #endif