]> git.baikalelectronics.ru Git - kernel.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)
commit7a787cb080866bba74b5585d7f93c32c97a77472
treec8898824fa00314e3f803411551eb207ad48a85a
parent0a9cc9163dd11731ab4634afa404822199e2d321
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