summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 07:54:13 +0300
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 05:40:26 +0300
commita47474261e77b148480daff855e516dc60e80b48 (patch)
tree177bc3cf66dade2980316bee865699ffac7fb1ca /drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h
parent7e24c1145a9176fb9c9b81b3a0f0703598b1445c (diff)
downloadlinux-a47474261e77b148480daff855e516dc60e80b48.tar.xz
drm/nouveau/imem: remove object accessor functions
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h b/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h
index d8941b7bebfc..b6906f436e40 100644
--- a/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h
+++ b/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h
@@ -26,6 +26,13 @@ struct nvkm_instmem {
u32 reserved;
int (*alloc)(struct nvkm_instmem *, struct nvkm_object *,
u32 size, u32 align, struct nvkm_object **);
+
+ const struct nvkm_instmem_func *func;
+};
+
+struct nvkm_instmem_func {
+ u32 (*rd32)(struct nvkm_instmem *, u32 addr);
+ void (*wr32)(struct nvkm_instmem *, u32 addr, u32 data);
};
static inline struct nvkm_instmem *