aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_drv.h')
-rw-r--r--include/drm/drm_drv.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
index 412e83a4d3db..d32b688eb346 100644
--- a/include/drm/drm_drv.h
+++ b/include/drm/drm_drv.h
@@ -39,6 +39,7 @@ struct drm_minor;
39struct dma_buf_attachment; 39struct dma_buf_attachment;
40struct drm_display_mode; 40struct drm_display_mode;
41struct drm_mode_create_dumb; 41struct drm_mode_create_dumb;
42struct drm_printer;
42 43
43/* driver capabilities and requirements mask */ 44/* driver capabilities and requirements mask */
44#define DRIVER_USE_AGP 0x1 45#define DRIVER_USE_AGP 0x1
@@ -429,6 +430,20 @@ struct drm_driver {
429 void (*gem_close_object) (struct drm_gem_object *, struct drm_file *); 430 void (*gem_close_object) (struct drm_gem_object *, struct drm_file *);
430 431
431 /** 432 /**
433 * @gem_print_info:
434 *
435 * If driver subclasses struct &drm_gem_object, it can implement this
436 * optional hook for printing additional driver specific info.
437 *
438 * drm_printf_indent() should be used in the callback passing it the
439 * indent argument.
440 *
441 * This callback is called from drm_gem_print_info().
442 */
443 void (*gem_print_info)(struct drm_printer *p, unsigned int indent,
444 const struct drm_gem_object *obj);
445
446 /**
432 * @gem_create_object: constructor for gem objects 447 * @gem_create_object: constructor for gem objects
433 * 448 *
434 * Hook for allocating the GEM object struct, for use by core 449 * Hook for allocating the GEM object struct, for use by core
@@ -592,13 +607,6 @@ struct drm_driver {
592 int dev_priv_size; 607 int dev_priv_size;
593}; 608};
594 609
595__printf(6, 7)
596void drm_dev_printk(const struct device *dev, const char *level,
597 unsigned int category, const char *function_name,
598 const char *prefix, const char *format, ...);
599__printf(3, 4)
600void drm_printk(const char *level, unsigned int category,
601 const char *format, ...);
602extern unsigned int drm_debug; 610extern unsigned int drm_debug;
603 611
604int drm_dev_init(struct drm_device *dev, 612int drm_dev_init(struct drm_device *dev,