diff options
Diffstat (limited to 'include/drm/drm_drv.h')
-rw-r--r-- | include/drm/drm_drv.h | 22 |
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; | |||
39 | struct dma_buf_attachment; | 39 | struct dma_buf_attachment; |
40 | struct drm_display_mode; | 40 | struct drm_display_mode; |
41 | struct drm_mode_create_dumb; | 41 | struct drm_mode_create_dumb; |
42 | struct 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) | ||
596 | void 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) | ||
600 | void drm_printk(const char *level, unsigned int category, | ||
601 | const char *format, ...); | ||
602 | extern unsigned int drm_debug; | 610 | extern unsigned int drm_debug; |
603 | 611 | ||
604 | int drm_dev_init(struct drm_device *dev, | 612 | int drm_dev_init(struct drm_device *dev, |