drm/kms: move driver specific fb common code to helper functions (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 28 Aug 2009 05:46:53 +0000 (15:46 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 30 Aug 2009 23:09:31 +0000 (09:09 +1000)
commit785b93ef8c309730c2de84ce9c229e40e2d01480
treeea1b26781fc49cef92d439fdaffa41af8c165778
parent7dc482dfeeeefcfd000d4271c4626937406756d7
drm/kms: move driver specific fb common code to helper functions (v2)

Initially I always meant this code to be shared, but things
ran away from me before I got to it.

This refactors the i915 and radeon kms fbdev interaction layers
out into generic helpers + driver specific pieces.

It moves all the panic/sysrq enhancements to the core file,
and stores a linked list of kernel fbs. This could possibly be
improved to only store the fb which has fbcon on it for panics
etc.

radeon retains some specific codes used for a big endian
workaround.

changes:
fix oops in v1
fix freeing path for crtc_info

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_fb_helper.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_fb.c
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/radeon/radeon_mode.h
include/drm/drm_crtc.h
include/drm/drm_fb_helper.h [new file with mode: 0644]