diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_ramht.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_ramht.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_ramht.h b/drivers/gpu/drm/nouveau/nouveau_ramht.h index e10455c6e7ff..7076ae4c07a5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_ramht.h +++ b/drivers/gpu/drm/nouveau/nouveau_ramht.h | |||
@@ -25,7 +25,29 @@ | |||
25 | #ifndef __NOUVEAU_RAMHT_H__ | 25 | #ifndef __NOUVEAU_RAMHT_H__ |
26 | #define __NOUVEAU_RAMHT_H__ | 26 | #define __NOUVEAU_RAMHT_H__ |
27 | 27 | ||
28 | extern int nouveau_ramht_insert(struct drm_device *, struct nouveau_gpuobj_ref *); | 28 | struct nouveau_ramht_entry { |
29 | extern void nouveau_ramht_remove(struct drm_device *, struct nouveau_gpuobj_ref *); | 29 | struct list_head head; |
30 | struct nouveau_channel *channel; | ||
31 | struct nouveau_gpuobj *gpuobj; | ||
32 | u32 handle; | ||
33 | }; | ||
34 | |||
35 | struct nouveau_ramht { | ||
36 | struct drm_device *dev; | ||
37 | int refcount; | ||
38 | struct nouveau_gpuobj *gpuobj; | ||
39 | struct list_head entries; | ||
40 | }; | ||
41 | |||
42 | extern int nouveau_ramht_new(struct drm_device *, struct nouveau_gpuobj *, | ||
43 | struct nouveau_ramht **); | ||
44 | extern void nouveau_ramht_ref(struct nouveau_ramht *, struct nouveau_ramht **, | ||
45 | struct nouveau_channel *unref_channel); | ||
46 | |||
47 | extern int nouveau_ramht_insert(struct nouveau_channel *, u32 handle, | ||
48 | struct nouveau_gpuobj *); | ||
49 | extern void nouveau_ramht_remove(struct nouveau_channel *, u32 handle); | ||
50 | extern struct nouveau_gpuobj * | ||
51 | nouveau_ramht_find(struct nouveau_channel *chan, u32 handle); | ||
30 | 52 | ||
31 | #endif | 53 | #endif |