diff options
Diffstat (limited to 'include/drm/ttm')
| -rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 7 | ||||
| -rw-r--r-- | include/drm/ttm/ttm_module.h | 20 | 
2 files changed, 4 insertions, 23 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 0ea602da43e..b87504235f1 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -34,6 +34,7 @@  #include "ttm/ttm_memory.h"  #include "ttm/ttm_module.h"  #include "drm_mm.h" +#include "drm_global.h"  #include "linux/workqueue.h"  #include "linux/fs.h"  #include "linux/spinlock.h" @@ -362,7 +363,7 @@ struct ttm_bo_driver {   */  struct ttm_bo_global_ref { -	struct ttm_global_reference ref; +	struct drm_global_reference ref;  	struct ttm_mem_global *mem_glob;  }; @@ -687,8 +688,8 @@ extern int ttm_mem_io_reserve(struct ttm_bo_device *bdev,  extern void ttm_mem_io_free(struct ttm_bo_device *bdev,  				struct ttm_mem_reg *mem); -extern void ttm_bo_global_release(struct ttm_global_reference *ref); -extern int ttm_bo_global_init(struct ttm_global_reference *ref); +extern void ttm_bo_global_release(struct drm_global_reference *ref); +extern int ttm_bo_global_init(struct drm_global_reference *ref);  extern int ttm_bo_device_release(struct ttm_bo_device *bdev); diff --git a/include/drm/ttm/ttm_module.h b/include/drm/ttm/ttm_module.h index cf416aee19a..45fa318c158 100644 --- a/include/drm/ttm/ttm_module.h +++ b/include/drm/ttm/ttm_module.h @@ -35,26 +35,6 @@  struct kobject;  #define TTM_PFX "[TTM] " - -enum ttm_global_types { -	TTM_GLOBAL_TTM_MEM = 0, -	TTM_GLOBAL_TTM_BO, -	TTM_GLOBAL_TTM_OBJECT, -	TTM_GLOBAL_NUM -}; - -struct ttm_global_reference { -	enum ttm_global_types global_type; -	size_t size; -	void *object; -	int (*init) (struct ttm_global_reference *); -	void (*release) (struct ttm_global_reference *); -}; - -extern void ttm_global_init(void); -extern void ttm_global_release(void); -extern int ttm_global_item_ref(struct ttm_global_reference *ref); -extern void ttm_global_item_unref(struct ttm_global_reference *ref);  extern struct kobject *ttm_get_kobj(void);  #endif /* _TTM_MODULE_H_ */  |