i915_pciids.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /*
  2. * Copyright 2013 Intel Corporation
  3. * All Rights Reserved.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a
  6. * copy of this software and associated documentation files (the
  7. * "Software"), to deal in the Software without restriction, including
  8. * without limitation the rights to use, copy, modify, merge, publish,
  9. * distribute, sub license, and/or sell copies of the Software, and to
  10. * permit persons to whom the Software is furnished to do so, subject to
  11. * the following conditions:
  12. *
  13. * The above copyright notice and this permission notice (including the
  14. * next paragraph) shall be included in all copies or substantial portions
  15. * of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. * DEALINGS IN THE SOFTWARE.
  24. */
  25. #ifndef _I915_PCIIDS_H
  26. #define _I915_PCIIDS_H
  27. /*
  28. * A pci_device_id struct {
  29. * __u32 vendor, device;
  30. * __u32 subvendor, subdevice;
  31. * __u32 class, class_mask;
  32. * kernel_ulong_t driver_data;
  33. * };
  34. * Don't use C99 here because "class" is reserved and we want to
  35. * give userspace flexibility.
  36. */
  37. #define INTEL_VGA_DEVICE(id, info) { \
  38. 0x8086, id, \
  39. ~0, ~0, \
  40. 0x030000, 0xff0000, \
  41. (unsigned long) info }
  42. #define INTEL_QUANTA_VGA_DEVICE(info) { \
  43. 0x8086, 0x16a, \
  44. 0x152d, 0x8990, \
  45. 0x030000, 0xff0000, \
  46. (unsigned long) info }
  47. #define INTEL_I830_IDS(info) \
  48. INTEL_VGA_DEVICE(0x3577, info)
  49. #define INTEL_I845G_IDS(info) \
  50. INTEL_VGA_DEVICE(0x2562, info)
  51. #define INTEL_I85X_IDS(info) \
  52. INTEL_VGA_DEVICE(0x3582, info), /* I855_GM */ \
  53. INTEL_VGA_DEVICE(0x358e, info)
  54. #define INTEL_I865G_IDS(info) \
  55. INTEL_VGA_DEVICE(0x2572, info) /* I865_G */
  56. #define INTEL_I915G_IDS(info) \
  57. INTEL_VGA_DEVICE(0x2582, info), /* I915_G */ \
  58. INTEL_VGA_DEVICE(0x258a, info) /* E7221_G */
  59. #define INTEL_I915GM_IDS(info) \
  60. INTEL_VGA_DEVICE(0x2592, info) /* I915_GM */
  61. #define INTEL_I945G_IDS(info) \
  62. INTEL_VGA_DEVICE(0x2772, info) /* I945_G */
  63. #define INTEL_I945GM_IDS(info) \
  64. INTEL_VGA_DEVICE(0x27a2, info), /* I945_GM */ \
  65. INTEL_VGA_DEVICE(0x27ae, info) /* I945_GME */
  66. #define INTEL_I965G_IDS(info) \
  67. INTEL_VGA_DEVICE(0x2972, info), /* I946_GZ */ \
  68. INTEL_VGA_DEVICE(0x2982, info), /* G35_G */ \
  69. INTEL_VGA_DEVICE(0x2992, info), /* I965_Q */ \
  70. INTEL_VGA_DEVICE(0x29a2, info) /* I965_G */
  71. #define INTEL_G33_IDS(info) \
  72. INTEL_VGA_DEVICE(0x29b2, info), /* Q35_G */ \
  73. INTEL_VGA_DEVICE(0x29c2, info), /* G33_G */ \
  74. INTEL_VGA_DEVICE(0x29d2, info) /* Q33_G */
  75. #define INTEL_I965GM_IDS(info) \
  76. INTEL_VGA_DEVICE(0x2a02, info), /* I965_GM */ \
  77. INTEL_VGA_DEVICE(0x2a12, info) /* I965_GME */
  78. #define INTEL_GM45_IDS(info) \
  79. INTEL_VGA_DEVICE(0x2a42, info) /* GM45_G */
  80. #define INTEL_G45_IDS(info) \
  81. INTEL_VGA_DEVICE(0x2e02, info), /* IGD_E_G */ \
  82. INTEL_VGA_DEVICE(0x2e12, info), /* Q45_G */ \
  83. INTEL_VGA_DEVICE(0x2e22, info), /* G45_G */ \
  84. INTEL_VGA_DEVICE(0x2e32, info), /* G41_G */ \
  85. INTEL_VGA_DEVICE(0x2e42, info), /* B43_G */ \
  86. INTEL_VGA_DEVICE(0x2e92, info) /* B43_G.1 */
  87. #define INTEL_PINEVIEW_IDS(info) \
  88. INTEL_VGA_DEVICE(0xa001, info), \
  89. INTEL_VGA_DEVICE(0xa011, info)
  90. #define INTEL_IRONLAKE_D_IDS(info) \
  91. INTEL_VGA_DEVICE(0x0042, info)
  92. #define INTEL_IRONLAKE_M_IDS(info) \
  93. INTEL_VGA_DEVICE(0x0046, info)
  94. #define INTEL_SNB_D_IDS(info) \
  95. INTEL_VGA_DEVICE(0x0102, info), \
  96. INTEL_VGA_DEVICE(0x0112, info), \
  97. INTEL_VGA_DEVICE(0x0122, info), \
  98. INTEL_VGA_DEVICE(0x010A, info)
  99. #define INTEL_SNB_M_IDS(info) \
  100. INTEL_VGA_DEVICE(0x0106, info), \
  101. INTEL_VGA_DEVICE(0x0116, info), \
  102. INTEL_VGA_DEVICE(0x0126, info)
  103. #define INTEL_IVB_M_IDS(info) \
  104. INTEL_VGA_DEVICE(0x0156, info), /* GT1 mobile */ \
  105. INTEL_VGA_DEVICE(0x0166, info) /* GT2 mobile */
  106. #define INTEL_IVB_D_IDS(info) \
  107. INTEL_VGA_DEVICE(0x0152, info), /* GT1 desktop */ \
  108. INTEL_VGA_DEVICE(0x0162, info), /* GT2 desktop */ \
  109. INTEL_VGA_DEVICE(0x015a, info), /* GT1 server */ \
  110. INTEL_VGA_DEVICE(0x016a, info) /* GT2 server */
  111. #define INTEL_IVB_Q_IDS(info) \
  112. INTEL_QUANTA_VGA_DEVICE(info) /* Quanta transcode */
  113. #define INTEL_HSW_D_IDS(info) \
  114. INTEL_VGA_DEVICE(0x0402, info), /* GT1 desktop */ \
  115. INTEL_VGA_DEVICE(0x0412, info), /* GT2 desktop */ \
  116. INTEL_VGA_DEVICE(0x0422, info), /* GT3 desktop */ \
  117. INTEL_VGA_DEVICE(0x040a, info), /* GT1 server */ \
  118. INTEL_VGA_DEVICE(0x041a, info), /* GT2 server */ \
  119. INTEL_VGA_DEVICE(0x042a, info), /* GT3 server */ \
  120. INTEL_VGA_DEVICE(0x040B, info), /* GT1 reserved */ \
  121. INTEL_VGA_DEVICE(0x041B, info), /* GT2 reserved */ \
  122. INTEL_VGA_DEVICE(0x042B, info), /* GT3 reserved */ \
  123. INTEL_VGA_DEVICE(0x040E, info), /* GT1 reserved */ \
  124. INTEL_VGA_DEVICE(0x041E, info), /* GT2 reserved */ \
  125. INTEL_VGA_DEVICE(0x042E, info), /* GT3 reserved */ \
  126. INTEL_VGA_DEVICE(0x0C02, info), /* SDV GT1 desktop */ \
  127. INTEL_VGA_DEVICE(0x0C12, info), /* SDV GT2 desktop */ \
  128. INTEL_VGA_DEVICE(0x0C22, info), /* SDV GT3 desktop */ \
  129. INTEL_VGA_DEVICE(0x0C0A, info), /* SDV GT1 server */ \
  130. INTEL_VGA_DEVICE(0x0C1A, info), /* SDV GT2 server */ \
  131. INTEL_VGA_DEVICE(0x0C2A, info), /* SDV GT3 server */ \
  132. INTEL_VGA_DEVICE(0x0C0B, info), /* SDV GT1 reserved */ \
  133. INTEL_VGA_DEVICE(0x0C1B, info), /* SDV GT2 reserved */ \
  134. INTEL_VGA_DEVICE(0x0C2B, info), /* SDV GT3 reserved */ \
  135. INTEL_VGA_DEVICE(0x0C0E, info), /* SDV GT1 reserved */ \
  136. INTEL_VGA_DEVICE(0x0C1E, info), /* SDV GT2 reserved */ \
  137. INTEL_VGA_DEVICE(0x0C2E, info), /* SDV GT3 reserved */ \
  138. INTEL_VGA_DEVICE(0x0A02, info), /* ULT GT1 desktop */ \
  139. INTEL_VGA_DEVICE(0x0A12, info), /* ULT GT2 desktop */ \
  140. INTEL_VGA_DEVICE(0x0A22, info), /* ULT GT3 desktop */ \
  141. INTEL_VGA_DEVICE(0x0A0A, info), /* ULT GT1 server */ \
  142. INTEL_VGA_DEVICE(0x0A1A, info), /* ULT GT2 server */ \
  143. INTEL_VGA_DEVICE(0x0A2A, info), /* ULT GT3 server */ \
  144. INTEL_VGA_DEVICE(0x0A0B, info), /* ULT GT1 reserved */ \
  145. INTEL_VGA_DEVICE(0x0A1B, info), /* ULT GT2 reserved */ \
  146. INTEL_VGA_DEVICE(0x0A2B, info), /* ULT GT3 reserved */ \
  147. INTEL_VGA_DEVICE(0x0D02, info), /* CRW GT1 desktop */ \
  148. INTEL_VGA_DEVICE(0x0D12, info), /* CRW GT2 desktop */ \
  149. INTEL_VGA_DEVICE(0x0D22, info), /* CRW GT3 desktop */ \
  150. INTEL_VGA_DEVICE(0x0D0A, info), /* CRW GT1 server */ \
  151. INTEL_VGA_DEVICE(0x0D1A, info), /* CRW GT2 server */ \
  152. INTEL_VGA_DEVICE(0x0D2A, info), /* CRW GT3 server */ \
  153. INTEL_VGA_DEVICE(0x0D0B, info), /* CRW GT1 reserved */ \
  154. INTEL_VGA_DEVICE(0x0D1B, info), /* CRW GT2 reserved */ \
  155. INTEL_VGA_DEVICE(0x0D2B, info), /* CRW GT3 reserved */ \
  156. INTEL_VGA_DEVICE(0x0D0E, info), /* CRW GT1 reserved */ \
  157. INTEL_VGA_DEVICE(0x0D1E, info), /* CRW GT2 reserved */ \
  158. INTEL_VGA_DEVICE(0x0D2E, info) /* CRW GT3 reserved */ \
  159. #define INTEL_HSW_M_IDS(info) \
  160. INTEL_VGA_DEVICE(0x0406, info), /* GT1 mobile */ \
  161. INTEL_VGA_DEVICE(0x0416, info), /* GT2 mobile */ \
  162. INTEL_VGA_DEVICE(0x0426, info), /* GT2 mobile */ \
  163. INTEL_VGA_DEVICE(0x0C06, info), /* SDV GT1 mobile */ \
  164. INTEL_VGA_DEVICE(0x0C16, info), /* SDV GT2 mobile */ \
  165. INTEL_VGA_DEVICE(0x0C26, info), /* SDV GT3 mobile */ \
  166. INTEL_VGA_DEVICE(0x0A06, info), /* ULT GT1 mobile */ \
  167. INTEL_VGA_DEVICE(0x0A16, info), /* ULT GT2 mobile */ \
  168. INTEL_VGA_DEVICE(0x0A26, info), /* ULT GT3 mobile */ \
  169. INTEL_VGA_DEVICE(0x0A0E, info), /* ULX GT1 mobile */ \
  170. INTEL_VGA_DEVICE(0x0A1E, info), /* ULX GT2 mobile */ \
  171. INTEL_VGA_DEVICE(0x0A2E, info), /* ULT GT3 reserved */ \
  172. INTEL_VGA_DEVICE(0x0D06, info), /* CRW GT1 mobile */ \
  173. INTEL_VGA_DEVICE(0x0D16, info), /* CRW GT2 mobile */ \
  174. INTEL_VGA_DEVICE(0x0D26, info) /* CRW GT3 mobile */
  175. #define INTEL_VLV_M_IDS(info) \
  176. INTEL_VGA_DEVICE(0x0f30, info), \
  177. INTEL_VGA_DEVICE(0x0f31, info), \
  178. INTEL_VGA_DEVICE(0x0f32, info), \
  179. INTEL_VGA_DEVICE(0x0f33, info), \
  180. INTEL_VGA_DEVICE(0x0157, info)
  181. #define INTEL_VLV_D_IDS(info) \
  182. INTEL_VGA_DEVICE(0x0155, info)
  183. #define INTEL_BDW_GT12M_IDS(info) \
  184. INTEL_VGA_DEVICE(0x1602, info), /* GT1 ULT */ \
  185. INTEL_VGA_DEVICE(0x1606, info), /* GT1 ULT */ \
  186. INTEL_VGA_DEVICE(0x160B, info), /* GT1 Iris */ \
  187. INTEL_VGA_DEVICE(0x160E, info), /* GT1 ULX */ \
  188. INTEL_VGA_DEVICE(0x1612, info), /* GT2 Halo */ \
  189. INTEL_VGA_DEVICE(0x1616, info), /* GT2 ULT */ \
  190. INTEL_VGA_DEVICE(0x161B, info), /* GT2 ULT */ \
  191. INTEL_VGA_DEVICE(0x161E, info) /* GT2 ULX */
  192. #define INTEL_BDW_GT12D_IDS(info) \
  193. INTEL_VGA_DEVICE(0x160A, info), /* GT1 Server */ \
  194. INTEL_VGA_DEVICE(0x160D, info), /* GT1 Workstation */ \
  195. INTEL_VGA_DEVICE(0x161A, info), /* GT2 Server */ \
  196. INTEL_VGA_DEVICE(0x161D, info) /* GT2 Workstation */
  197. #define INTEL_BDW_GT3M_IDS(info) \
  198. INTEL_VGA_DEVICE(0x1622, info), /* ULT */ \
  199. INTEL_VGA_DEVICE(0x1626, info), /* ULT */ \
  200. INTEL_VGA_DEVICE(0x162B, info), /* Iris */ \
  201. INTEL_VGA_DEVICE(0x162E, info) /* ULX */
  202. #define INTEL_BDW_GT3D_IDS(info) \
  203. INTEL_VGA_DEVICE(0x162A, info), /* Server */ \
  204. INTEL_VGA_DEVICE(0x162D, info) /* Workstation */
  205. #define INTEL_BDW_RSVDM_IDS(info) \
  206. INTEL_VGA_DEVICE(0x1632, info), /* ULT */ \
  207. INTEL_VGA_DEVICE(0x1636, info), /* ULT */ \
  208. INTEL_VGA_DEVICE(0x163B, info), /* Iris */ \
  209. INTEL_VGA_DEVICE(0x163E, info) /* ULX */
  210. #define INTEL_BDW_RSVDD_IDS(info) \
  211. INTEL_VGA_DEVICE(0x163A, info), /* Server */ \
  212. INTEL_VGA_DEVICE(0x163D, info) /* Workstation */
  213. #define INTEL_BDW_M_IDS(info) \
  214. INTEL_BDW_GT12M_IDS(info), \
  215. INTEL_BDW_GT3M_IDS(info), \
  216. INTEL_BDW_RSVDM_IDS(info)
  217. #define INTEL_BDW_D_IDS(info) \
  218. INTEL_BDW_GT12D_IDS(info), \
  219. INTEL_BDW_GT3D_IDS(info), \
  220. INTEL_BDW_RSVDD_IDS(info)
  221. #define INTEL_CHV_IDS(info) \
  222. INTEL_VGA_DEVICE(0x22b0, info), \
  223. INTEL_VGA_DEVICE(0x22b1, info), \
  224. INTEL_VGA_DEVICE(0x22b2, info), \
  225. INTEL_VGA_DEVICE(0x22b3, info)
  226. #define INTEL_SKL_GT1_IDS(info) \
  227. INTEL_VGA_DEVICE(0x1906, info), /* ULT GT1 */ \
  228. INTEL_VGA_DEVICE(0x190E, info), /* ULX GT1 */ \
  229. INTEL_VGA_DEVICE(0x1902, info), /* DT GT1 */ \
  230. INTEL_VGA_DEVICE(0x190B, info), /* Halo GT1 */ \
  231. INTEL_VGA_DEVICE(0x190A, info) /* SRV GT1 */
  232. #define INTEL_SKL_GT2_IDS(info) \
  233. INTEL_VGA_DEVICE(0x1916, info), /* ULT GT2 */ \
  234. INTEL_VGA_DEVICE(0x1921, info), /* ULT GT2F */ \
  235. INTEL_VGA_DEVICE(0x191E, info), /* ULX GT2 */ \
  236. INTEL_VGA_DEVICE(0x1912, info), /* DT GT2 */ \
  237. INTEL_VGA_DEVICE(0x191B, info), /* Halo GT2 */ \
  238. INTEL_VGA_DEVICE(0x191A, info), /* SRV GT2 */ \
  239. INTEL_VGA_DEVICE(0x191D, info) /* WKS GT2 */
  240. #define INTEL_SKL_GT3_IDS(info) \
  241. INTEL_VGA_DEVICE(0x1926, info), /* ULT GT3 */ \
  242. INTEL_VGA_DEVICE(0x192B, info), /* Halo GT3 */ \
  243. INTEL_VGA_DEVICE(0x192A, info) /* SRV GT3 */ \
  244. #define INTEL_SKL_IDS(info) \
  245. INTEL_SKL_GT1_IDS(info), \
  246. INTEL_SKL_GT2_IDS(info), \
  247. INTEL_SKL_GT3_IDS(info)
  248. #define INTEL_BXT_IDS(info) \
  249. INTEL_VGA_DEVICE(0x0A84, info), \
  250. INTEL_VGA_DEVICE(0x1A84, info), \
  251. INTEL_VGA_DEVICE(0x5A84, info)
  252. #endif /* _I915_PCIIDS_H */