linux-uconsole/include/drm
Benjamin Gaignard bb866327e3 UPSTREAM: drm: Add callbacks for late registering
Like what has been done for connectors add callbacks on encoder,
crtc and plane to let driver do actions after drm device registration.

Correspondingly, add callbacks called before unregister drm device.

version 2:
add drm_modeset_register_all() and drm_modeset_unregister_all()
to centralize all calls

version 3:
in error case unwind registers in drm_modeset_register_all
fix uninitialed return value
inverse order of unregistration in drm_modeset_unregister_all

version 4:
move function definitions in drm_crtc_internal.h
remove not needed documentation

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466519829-4000-1-git-send-email-benjamin.gaignard@linaro.org
(cherry picked from commit 79190ea265)

Change-Id: I836e8ea62b46c0eae89cf8c70bcf3ea4e10068f5
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-01-03 09:16:58 +08:00
..
bridge CHROMIUM: drm: bridge/dw_hdmi: improved the hdmi audio N/CTS cacluate math 2016-07-19 15:24:47 +08:00
i2c
ttm drm/ttm: Make ttm_bo_mem_compat available 2016-07-27 09:47:35 -07:00
ati_pcigart.h drm: Move legacy buffer structures to <drm/drm_legacy.h> 2014-09-12 15:28:12 +02:00
drm_agpsupport.h drm: Remove dummy agp ioctl wrappers 2015-09-30 10:49:22 +02:00
drm_atomic.h drm/atomic: add a drm_atomic_clean_old_fb helper. 2015-11-17 13:02:14 +02:00
drm_atomic_helper.h UPSTREAM: drm/atomic-helper: Implement subsystem-level suspend/resume 2016-08-08 14:39:36 +08:00
drm_cache.h drm: Loongson-3 doesn't fully support wc memory 2016-05-04 14:48:46 -07:00
drm_core.h
drm_crtc.h UPSTREAM: drm: Add callbacks for late registering 2017-01-03 09:16:58 +08:00
drm_crtc_helper.h drm/rockchip: add loader protect ops to drm connector 2016-12-02 17:06:56 +08:00
drm_displayid.h drm/displayid: add displayid defines and edid extension (v2) 2014-12-09 09:56:46 +10:00
drm_dp_helper.h Merge commit '06d1ee32a4' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2015-10-16 10:25:28 +10:00
drm_dp_mst_helper.h drm/dp/mst: move GUID storage from mgr, port to only mst branch 2016-03-03 15:07:21 -08:00
drm_edid.h drm: Make drm_av_sync_delay() 'mode' argument const 2015-09-09 14:53:54 +02:00
drm_encoder_slave.h
drm_fb_cma_helper.h
drm_fb_helper.h drm/fb-helper: atomic restore_fbdev_mode().. 2015-09-16 11:39:26 -07:00
drm_fixed.h drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil 2016-03-03 15:07:20 -08:00
drm_flip_work.h drm: flip-work: change drm_flip_work_init prototype 2014-11-15 09:29:14 +10:00
drm_gem.h drm/gem: Check locking in drm_gem_object_unreference 2015-10-19 11:00:35 +02:00
drm_gem_cma_helper.h drm/cma: Introduce drm_gem_cma_dumb_create_internal() 2014-11-13 13:27:17 +01:00
drm_global.h
drm_hashtab.h
drm_legacy.h drm: move drm_mmap to <drm/drm_legacy.h> 2014-09-24 11:43:07 +10:00
drm_mem_util.h drm: use kvfree() in drm_free_large() 2015-06-30 19:44:59 -07:00
drm_mipi_dsi.h UPSTREAM: drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format 2016-03-18 20:44:21 +08:00
drm_mm.h drm/mm: Support 4 GiB and larger ranges 2015-03-05 09:01:37 +10:00
drm_modes.h drm/mode: Unstatic kernel-userspace mode conversion 2015-05-22 16:18:21 +02:00
drm_modeset_lock.h UPSTREAM: drm: Implement drm_modeset_lock_all_ctx() 2016-08-08 14:39:25 +08:00
drm_of.h UPSTREAM: drm: add drm_of_encoder_active_endpoint helpers 2016-06-28 18:40:44 +08:00
drm_os_linux.h
drm_panel.h drm/panel: Add display timing support 2015-04-02 19:04:12 +02:00
drm_pciids.h rk: revert to v3.10 2015-11-11 15:57:28 +08:00
drm_plane_helper.h drm/atomic: Make prepare_fb/cleanup_fb only take state, v3. 2015-09-08 13:45:54 +02:00
drm_rect.h drm: Add drm_rect rotation functions 2014-07-11 23:44:12 +02:00
drm_sync_helper.h CHROMIUM: drm: add helpers for fence and reservation based dma-buf sync 2016-04-08 11:39:49 +08:00
drm_sysfs.h
drm_vma_manager.h drm/gem: Use kref_get_unless_zero for the weak mmap references 2015-10-19 11:00:44 +02:00
drmP.h UPSTREAM: drm: Introduce DRM_DEV_* log messages 2016-12-19 18:06:20 +08:00
exynos_drm.h
gma_drm.h
i915_component.h drm/i915: add kerneldoc for i915_audio_component 2015-10-07 16:05:37 +02:00
i915_drm.h
i915_pciids.h drm/i915/skl: Add missing SKL ids 2016-09-15 08:27:44 +02:00
intel-gtt.h drm/i915/gtt: Allow >= 4GB sizes for vm. 2015-06-26 10:41:13 +02:00