intel: Use the CHIPSET macro in the PCI ID tables for the device name.

Putting the human readable device names directly in the PCI ID list
consolidates things in one place.  It also makes it easy to customize
the name on a per-PCI ID basis without a huge code explosion.

Based on a patch by Kristian Høgsberg.

v2: Fix 830M/845G names and #undef CHIPSET (caught by Emit Velikov).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Kenneth Graunke
2013-06-04 19:01:51 -07:00
parent ea92b700df
commit 757ad82867
4 changed files with 114 additions and 294 deletions

View File

@@ -1,15 +1,15 @@
CHIPSET(0x3577, I830_M)
CHIPSET(0x2562, 845_G)
CHIPSET(0x3582, I855_GM)
CHIPSET(0x2572, I865_G)
CHIPSET(0x2582, I915_G)
CHIPSET(0x258A, E7221_G)
CHIPSET(0x2592, I915_GM)
CHIPSET(0x2772, I945_G)
CHIPSET(0x27A2, I945_GM)
CHIPSET(0x27AE, I945_GME)
CHIPSET(0x29B2, Q35_G)
CHIPSET(0x29C2, G33_G)
CHIPSET(0x29D2, Q33_G)
CHIPSET(0xA011, IGD_GM)
CHIPSET(0xA001, IGD_G)
CHIPSET(0x3577, I830_M, "Intel(R) 830M")
CHIPSET(0x2562, 845_G, "Intel(R) 845G")
CHIPSET(0x3582, I855_GM, "Intel(R) 852GM/855GM")
CHIPSET(0x2572, I865_G, "Intel(R) 865G")
CHIPSET(0x2582, I915_G, "Intel(R) 915G")
CHIPSET(0x258A, E7221_G, "Intel(R) E7221G (i915)")
CHIPSET(0x2592, I915_GM, "Intel(R) 915GM")
CHIPSET(0x2772, I945_G, "Intel(R) 945G")
CHIPSET(0x27A2, I945_GM, "Intel(R) 945GM")
CHIPSET(0x27AE, I945_GME, "Intel(R) 945GME")
CHIPSET(0x29B2, Q35_G, "Intel(R) Q35")
CHIPSET(0x29C2, G33_G, "Intel(R) G33")
CHIPSET(0x29D2, Q33_G, "Intel(R) Q33")
CHIPSET(0xA011, IGD_GM, "Intel(R) IGD")
CHIPSET(0xA001, IGD_G, "Intel(R) IGD")