Commit | Line | Data |
---|---|---|
479dcaea BS |
1 | #ifndef __NOUVEAU_RAMHT_H__ |
2 | #define __NOUVEAU_RAMHT_H__ | |
3 | ||
ebb945a9 | 4 | #include <core/gpuobj.h> |
a8eaebc6 BS |
5 | |
6 | struct nouveau_ramht { | |
ebb945a9 | 7 | struct nouveau_gpuobj base; |
e05c5a31 | 8 | int bits; |
a8eaebc6 BS |
9 | }; |
10 | ||
ebb945a9 BS |
11 | int nouveau_ramht_insert(struct nouveau_ramht *, int chid, |
12 | u32 handle, u32 context); | |
13 | void nouveau_ramht_remove(struct nouveau_ramht *, int cookie); | |
14 | int nouveau_ramht_new(struct nouveau_object *, struct nouveau_object *, | |
15 | u32 size, u32 align, struct nouveau_ramht **); | |
a8eaebc6 | 16 | |
ebb945a9 BS |
17 | static inline void |
18 | nouveau_ramht_ref(struct nouveau_ramht *obj, struct nouveau_ramht **ref) | |
19 | { | |
20 | nouveau_gpuobj_ref(&obj->base, (struct nouveau_gpuobj **)ref); | |
21 | } | |
479dcaea BS |
22 | |
23 | #endif |