]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Clean up device info structure definitions
authorWayne Boyer <wayne.boyer@intel.com>
Wed, 2 Dec 2015 21:28:14 +0000 (13:28 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Dec 2015 10:24:25 +0000 (11:24 +0100)
commit6a8beeffed3b2d33151150e3a03696e697f16d46
treec8898824fa00314e3f803411551eb207ad48a85a
parent89f41f4f90741fe94b6da9d4d366628a9b0be8f1
drm/i915: Clean up device info structure definitions

Beginning with gen7, newer devices repetitively redefine values
for the device info structure members.  This patch simplifies the
structure definitions by grouping member value definitions into the
existing GEN7_FEATURES #define and into the new GEN7_LP_FEATURES
and HSW_FEATURES #defines.

Specifically, GEN_DEFAULT_PIPEOFFSETS and IVB_CURSOR_OFFSETS are
added to GEN7_FEATURES and subsequent IVB definitions are simplified.

VLV_FEATURES is defined to differentiate and simplify the
gen7 low power (LP) devices.

HSW_FEATURES is defined and used to simplify all HSW+ devices
except for LP.

v2: Use VLV_FEATURES for the gen7 low power devices. (Jani)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Wayne Boyer <wayne.boyer@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449091694-7681-1-git-send-email-wayne.boyer@intel.com
drivers/gpu/drm/i915/i915_drv.c