aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Chew2015-08-12 14:19:08 -0500
committerPuneet Kumar2015-08-24 17:08:49 -0500
commite2686ba119fcd49825e577da1ab276a20928829b (patch)
tree7f5529c2e880eb588af91a30b9f99c15452604e8 /include/drm/nouveau_drm.h
parentcd921931d778023a7f9e30a319b9f26c74f112cb (diff)
downloadexternal-libgbm-e2686ba119fcd49825e577da1ab276a20928829b.tar.gz
external-libgbm-e2686ba119fcd49825e577da1ab276a20928829b.tar.xz
external-libgbm-e2686ba119fcd49825e577da1ab276a20928829b.zip
libdrm: Add GEM as Alloc/Free ioctls
Add drm_nouveau_as_alloc and drm_nouveau_as_free ioctl structs and their corresponding ioctl opcodes. These are pulled from the kernel include files. Change-Id: I54c7f91ed29f0c42c4245807cf80f34b196f86ec Signed-off-by: Andrew Chew <achew@nvidia.com>
Diffstat (limited to 'include/drm/nouveau_drm.h')
-rw-r--r--include/drm/nouveau_drm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h
index 699ff678..43e30e72 100644
--- a/include/drm/nouveau_drm.h
+++ b/include/drm/nouveau_drm.h
@@ -205,6 +205,18 @@ struct drm_nouveau_gem_cpu_fini {
205 uint32_t handle; 205 uint32_t handle;
206}; 206};
207 207
208struct drm_nouveau_gem_as_alloc {
209 uint64_t pages; /* in, page length */
210 uint32_t page_size; /* in, byte page size */
211 uint32_t pad;
212 uint64_t align; /* in, requested alignment in bytes */
213 uint64_t address; /* in/out, non-zero for fixed address allocation */
214};
215
216struct drm_nouveau_gem_as_free {
217 uint64_t address; /* in, byte address */
218};
219
208enum nouveau_bus_type { 220enum nouveau_bus_type {
209 NV_AGP = 0, 221 NV_AGP = 0,
210 NV_PCI = 1, 222 NV_PCI = 1,
@@ -231,5 +243,7 @@ struct drm_nouveau_sarea {
231#define DRM_NOUVEAU_GEM_SET_TILING 0x50 243#define DRM_NOUVEAU_GEM_SET_TILING 0x50
232#define DRM_NOUVEAU_GEM_PUSHBUF_2 0x51 244#define DRM_NOUVEAU_GEM_PUSHBUF_2 0x51
233#define DRM_NOUVEAU_GEM_SET_INFO 0x52 245#define DRM_NOUVEAU_GEM_SET_INFO 0x52
246#define DRM_NOUVEAU_GEM_AS_ALLOC 0x53
247#define DRM_NOUVEAU_GEM_AS_FREE 0x54
234 248
235#endif /* __NOUVEAU_DRM_H__ */ 249#endif /* __NOUVEAU_DRM_H__ */