20889996 drm_map data structure is different between libdrm and drm kernel module s11u3_26
authorRandy Fishel <Randy.Fishel@Oracle.COM>
Mon, 22 Jun 2015 21:21:59 -0700
changeset 1473 10cd592b4429
parent 1472 aa55d8594b1c
child 1474 608afd4c2c0b
20889996 drm_map data structure is different between libdrm and drm kernel module
open-src/kernel/sys/drm/drm.h
--- a/open-src/kernel/sys/drm/drm.h	Wed Jun 10 10:42:54 2015 -0700
+++ b/open-src/kernel/sys/drm/drm.h	Mon Jun 22 21:21:59 2015 -0700
@@ -220,21 +220,12 @@
  * \sa drmAddMap().
  */
 struct drm_map {
-#if defined(__sun)
 	unsigned long long offset;	 /**< Requested physical address (0 for SAREA)*/
-#else
-	unsigned long offset;	 /**< Requested physical address (0 for SAREA)*/
-#endif
+	unsigned long long handle;	/**< User-space: "Handle" to pass to mmap() */
+				 /**< Kernel-space: kernel-virtual address */
 	unsigned long size;	 /**< Requested physical size (bytes) */
 	enum drm_map_type type;	 /**< Type of memory to map */
 	enum drm_map_flags flags;	 /**< Flags */
-#if defined(__sun)
-	/* Till handle is converted to a void * */
-	unsigned long long handle;
-#else
-	void *handle;		 /**< User-space: "Handle" to pass to mmap() */
-				 /**< Kernel-space: kernel-virtual address */
-#endif
 	int mtrr;		 /**< MTRR slot used */
 	/*   Private data */
 };