drm/ttm: Move headers to <include/drm/ttm>
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 22 Feb 2014 12:41:18 +0000 (13:41 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 22 Feb 2014 13:14:11 +0000 (14:14 +0100)
Reduce differences with Linux

22 files changed:
sys/dev/drm/include/drm/ttm/ttm_bo_api.h [moved from sys/dev/drm/ttm/ttm_bo_api.h with 100% similarity]
sys/dev/drm/include/drm/ttm/ttm_bo_driver.h [moved from sys/dev/drm/ttm/ttm_bo_driver.h with 99% similarity]
sys/dev/drm/include/drm/ttm/ttm_execbuf_util.h [moved from sys/dev/drm/ttm/ttm_execbuf_util.h with 99% similarity]
sys/dev/drm/include/drm/ttm/ttm_lock.h [moved from sys/dev/drm/ttm/ttm_lock.h with 99% similarity]
sys/dev/drm/include/drm/ttm/ttm_memory.h [moved from sys/dev/drm/ttm/ttm_memory.h with 100% similarity]
sys/dev/drm/include/drm/ttm/ttm_module.h [moved from sys/dev/drm/ttm/ttm_module.h with 100% similarity]
sys/dev/drm/include/drm/ttm/ttm_object.h [moved from sys/dev/drm/ttm/ttm_object.h with 99% similarity]
sys/dev/drm/include/drm/ttm/ttm_page_alloc.h [moved from sys/dev/drm/ttm/ttm_page_alloc.h with 97% similarity]
sys/dev/drm/include/drm/ttm/ttm_placement.h [moved from sys/dev/drm/ttm/ttm_placement.h with 100% similarity]
sys/dev/drm/radeon/radeon.h
sys/dev/drm/radeon/radeon_ttm.c
sys/dev/drm/ttm/ttm_agp_backend.c
sys/dev/drm/ttm/ttm_bo.c
sys/dev/drm/ttm/ttm_bo_manager.c
sys/dev/drm/ttm/ttm_bo_util.c
sys/dev/drm/ttm/ttm_bo_vm.c
sys/dev/drm/ttm/ttm_execbuf_util.c
sys/dev/drm/ttm/ttm_lock.c
sys/dev/drm/ttm/ttm_memory.c
sys/dev/drm/ttm/ttm_object.c
sys/dev/drm/ttm/ttm_page_alloc.c
sys/dev/drm/ttm/ttm_tt.c

similarity index 99%
rename from sys/dev/drm/ttm/ttm_bo_driver.h
rename to sys/dev/drm/include/drm/ttm/ttm_bo_driver.h
index 382cf0d..3ffbf8b 100644 (file)
@@ -33,9 +33,9 @@
 #define _TTM_BO_DRIVER_H_
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_bo_api.h>
-#include <dev/drm/ttm/ttm_memory.h>
-#include <dev/drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_bo_api.h>
+#include <drm/ttm/ttm_memory.h>
+#include <drm/ttm/ttm_module.h>
 #include <drm/drm_global.h>
 #include <sys/tree.h>
 
similarity index 99%
rename from sys/dev/drm/ttm/ttm_execbuf_util.h
rename to sys/dev/drm/include/drm/ttm/ttm_execbuf_util.h
index 55704c6..8b6dbf5 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef _TTM_EXECBUF_UTIL_H_
 #define _TTM_EXECBUF_UTIL_H_
 
-#include <dev/drm/ttm/ttm_bo_api.h>
+#include <drm/ttm/ttm_bo_api.h>
 
 /**
  * struct ttm_validate_buffer
similarity index 99%
rename from sys/dev/drm/ttm/ttm_lock.h
rename to sys/dev/drm/include/drm/ttm/ttm_lock.h
index 7aa1b91..52fea12 100644 (file)
@@ -51,7 +51,7 @@
 #define _TTM_LOCK_H_
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_object.h>
+#include <drm/ttm/ttm_object.h>
 
 /**
  * struct ttm_lock
similarity index 99%
rename from sys/dev/drm/ttm/ttm_object.h
rename to sys/dev/drm/include/drm/ttm/ttm_object.h
index bd0a172..6b1f569 100644 (file)
@@ -39,7 +39,7 @@
 #define _TTM_OBJECT_H_
 
 #include <drm/drm_hashtab.h>
-#include <dev/drm/ttm/ttm_memory.h>
+#include <drm/ttm/ttm_memory.h>
 
 /**
  * enum ttm_ref_type
similarity index 97%
rename from sys/dev/drm/ttm/ttm_page_alloc.h
rename to sys/dev/drm/include/drm/ttm/ttm_page_alloc.h
index 538076a..3a14e80 100644 (file)
@@ -27,8 +27,8 @@
 #ifndef TTM_PAGE_ALLOC
 #define TTM_PAGE_ALLOC
 
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_memory.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_memory.h>
 
 /**
  * Initialize pool allocator.
index 63f0248..c79f7dc 100644 (file)
 #include <contrib/dev/acpica/source/include/acpi.h>
 #include <dev/acpica/acpivar.h>
 
-#include <dev/drm/ttm/ttm_bo_api.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_execbuf_util.h>
+#include <drm/ttm/ttm_bo_api.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_execbuf_util.h>
 
 #include "radeon_family.h"
 #include "radeon_mode.h"
index 2ced1d4..c2ee9c0 100644 (file)
  * $FreeBSD: head/sys/dev/drm2/radeon/radeon_ttm.c 254885 2013-08-25 19:37:15Z dumbbell $
  */
 
-#include <dev/drm/ttm/ttm_bo_api.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_page_alloc.h>
+#include <drm/ttm/ttm_bo_api.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_page_alloc.h>
 #include <drm/drmP.h>
 #include <uapi_drm/radeon_drm.h>
 #include "radeon_reg.h"
index 4bff86c..c9088c3 100644 (file)
  */
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_page_alloc.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_page_alloc.h>
 #ifdef TTM_HAS_AGP
-#include <dev/drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_placement.h>
 
 struct ttm_agp_backend {
        struct ttm_tt ttm;
index 7a3c6af..10ff4be 100644 (file)
@@ -31,9 +31,9 @@
  */
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
 
 #define TTM_ASSERT_LOCKED(param)
 #define TTM_DEBUG(fmt, arg...)
index 6073269..4e527c3 100644 (file)
@@ -31,9 +31,9 @@
  */
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
 #include <drm/drm_mm.h>
 
 /**
index 07ce563..11001e3 100644 (file)
@@ -31,8 +31,8 @@
  */
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
 #include <sys/sfbuf.h>
 
 void ttm_bo_free_old_node(struct ttm_buffer_object *bo)
index fb1a4bf..aafebe4 100644 (file)
@@ -40,9 +40,9 @@
 #include "opt_vm.h"
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
 
 #include <vm/vm.h>
 #include <vm/vm_page.h>
index ba1d496..2f496f5 100644 (file)
@@ -27,9 +27,9 @@
  **************************************************************************/
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_execbuf_util.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_execbuf_util.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
 
 static void ttm_eu_backoff_reservation_locked(struct list_head *list)
 {
index 73becfb..8d2c2e6 100644 (file)
@@ -37,8 +37,8 @@
  * $FreeBSD: head/sys/dev/drm2/ttm/ttm_lock.c 247835 2013-03-05 09:49:34Z kib $
  */
 
-#include <dev/drm/ttm/ttm_lock.h>
-#include <dev/drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_lock.h>
+#include <drm/ttm/ttm_module.h>
 
 #define TTM_WRITE_LOCK_PENDING    (1 << 0)
 #define TTM_VT_LOCK_PENDING       (1 << 1)
index 2f48626..890f03c 100644 (file)
@@ -27,9 +27,9 @@
  **************************************************************************/
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_memory.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_page_alloc.h>
+#include <drm/ttm/ttm_memory.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_page_alloc.h>
 
 #define TTM_MEMORY_ALLOC_RETRIES 4
 
index 037dc1f..1e62848 100644 (file)
@@ -54,8 +54,8 @@
 #define pr_fmt(fmt) "[TTM] " fmt
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_object.h>
-#include <dev/drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_object.h>
+#include <drm/ttm/ttm_module.h>
 
 struct ttm_object_file {
        struct ttm_object_device *tdev;
index 52d0d7f..2b2b5f6 100644 (file)
@@ -43,8 +43,8 @@
 #include <sys/eventhandler.h>
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_page_alloc.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_page_alloc.h>
 
 #ifdef TTM_HAS_AGP
 #include <asm/agp.h>
index 41fb5c9..2c9301a 100644 (file)
  */
 
 #include <drm/drmP.h>
-#include <dev/drm/ttm/ttm_module.h>
-#include <dev/drm/ttm/ttm_bo_driver.h>
-#include <dev/drm/ttm/ttm_placement.h>
-#include <dev/drm/ttm/ttm_page_alloc.h>
+#include <drm/ttm/ttm_module.h>
+#include <drm/ttm/ttm_bo_driver.h>
+#include <drm/ttm/ttm_placement.h>
+#include <drm/ttm/ttm_page_alloc.h>
 
 MALLOC_DEFINE(M_TTM_PD, "ttm_pd", "TTM Page Directories");