aboutsummaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-05-26 14:14:04 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-05-26 15:47:14 +1000
commitc65a343ed29c24f812ca919f40dfeee948b6f14a (patch)
tree5b63add0322f8ebff56a8c5d1483e4f2b84698db /shared-core
parent85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c (diff)
nouveau: bump for 0.0.13
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_drm.h31
-rw-r--r--shared-core/nouveau_drv.h2
2 files changed, 16 insertions, 17 deletions
diff --git a/shared-core/nouveau_drm.h b/shared-core/nouveau_drm.h
index 4147f357..e999d20d 100644
--- a/shared-core/nouveau_drm.h
+++ b/shared-core/nouveau_drm.h
@@ -25,7 +25,7 @@
#ifndef __NOUVEAU_DRM_H__
#define __NOUVEAU_DRM_H__
-#define NOUVEAU_DRM_HEADER_PATCHLEVEL 12
+#define NOUVEAU_DRM_HEADER_PATCHLEVEL 13
struct drm_nouveau_channel_alloc {
uint32_t fb_ctxdma_handle;
@@ -153,17 +153,22 @@ struct drm_nouveau_setparam {
#define NOUVEAU_GEM_DOMAIN_CPU (1 << 0)
#define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1)
#define NOUVEAU_GEM_DOMAIN_GART (1 << 2)
-#define NOUVEAU_GEM_DOMAIN_NOMAP (1 << 3)
+#define NOUVEAU_GEM_DOMAIN_MAPPABLE (1 << 3)
#define NOUVEAU_GEM_DOMAIN_TILE (1 << 30)
#define NOUVEAU_GEM_DOMAIN_TILE_ZETA (1 << 31)
-struct drm_nouveau_gem_new {
+struct drm_nouveau_gem_info {
+ uint32_t handle;
+ uint32_t domain;
uint64_t size;
+ uint64_t offset;
+ uint64_t map_handle;
+};
+
+struct drm_nouveau_gem_new {
+ struct drm_nouveau_gem_info info;
uint32_t channel_hint;
uint32_t align;
- uint32_t handle;
- uint32_t domain;
- uint32_t offset;
};
struct drm_nouveau_gem_pushbuf_bo {
@@ -223,12 +228,6 @@ struct drm_nouveau_gem_unpin {
uint32_t handle;
};
-struct drm_nouveau_gem_mmap {
- uint32_t handle;
- uint32_t pad;
- uint64_t vaddr;
-};
-
struct drm_nouveau_gem_cpu_prep {
uint32_t handle;
};
@@ -291,9 +290,9 @@ struct drm_nouveau_sarea {
#define DRM_NOUVEAU_GEM_PUSHBUF_CALL 0x42
#define DRM_NOUVEAU_GEM_PIN 0x43
#define DRM_NOUVEAU_GEM_UNPIN 0x44
-#define DRM_NOUVEAU_GEM_MMAP 0x45
-#define DRM_NOUVEAU_GEM_CPU_PREP 0x46
-#define DRM_NOUVEAU_GEM_CPU_FINI 0x47
-#define DRM_NOUVEAU_GEM_TILE 0x48
+#define DRM_NOUVEAU_GEM_CPU_PREP 0x45
+#define DRM_NOUVEAU_GEM_CPU_FINI 0x46
+#define DRM_NOUVEAU_GEM_TILE 0x47
+#define DRM_NOUVEAU_GEM_INFO 0x48
#endif /* __NOUVEAU_DRM_H__ */
diff --git a/shared-core/nouveau_drv.h b/shared-core/nouveau_drv.h
index 1cd10bf9..ce52ce27 100644
--- a/shared-core/nouveau_drv.h
+++ b/shared-core/nouveau_drv.h
@@ -34,7 +34,7 @@
#define DRIVER_MAJOR 0
#define DRIVER_MINOR 0
-#define DRIVER_PATCHLEVEL 12
+#define DRIVER_PATCHLEVEL 13
#define NOUVEAU_FAMILY 0x0000FFFF
#define NOUVEAU_FLAGS 0xFFFF0000