mesa-drm/intel
Lucas De Marchi 4e81d4f9c9 intel: add generic functions to check PCI ID
This will allow platforms to reuse kernel IDs instead of manually
keeping them in sync. In most of the cases we only need to extend
IS_9XX().  Current platforms that fit this requirement can be ported
over to use this macro. Right now it's a nop since it doesn't have any
PCI ID added.

The i915_pciids.h header is in sync with kernel tree on
drm-tip 2018y-08m-20d-21h-41m-11s.

v2: - move to a separate .c so we can have the array in a single
      compilation unit
    - use a single array for all gens
    - add real functions to get or check gen by pciid
    - define our own pci device struct rather than inherit the one
      kernel uses: we can throw away most of the fields

v3: - add comment to keep ids sorted by gen
    - remove misleading comment about all gens

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-09-05 16:14:04 -07:00
..
tests intel: Fix spelling mistakes 2016-04-07 18:15:56 +01:00
.gitignore intel: Add a regression test program for intel_decode.c. 2012-01-04 14:49:44 -08:00
Android.mk Revert "libdrm: intel/Android.mk: Filter libdrm_intel library requirements on x86/x86_64" 2018-03-28 17:08:32 +01:00
i915_pciids.h intel: add generic functions to check PCI ID 2018-09-05 16:14:04 -07:00
intel-symbol-check *-symbol-check: Don't hard-code nm executable 2018-02-23 17:53:08 +00:00
intel_aub.h intel/aub: Sync the AUB defines with mesa's 2013-06-10 17:51:17 +01:00
intel_bufmgr.c intel: Do not use libpciaccess on Android 2018-03-28 17:08:32 +01:00
intel_bufmgr.h intel: Export a function to re-enable implicit synchronisation 2017-01-27 20:25:04 +00:00
intel_bufmgr_fake.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
intel_bufmgr_gem.c intel: add support for ICL 11 2018-05-01 14:30:25 -07:00
intel_bufmgr_priv.h intel: Add support for softpin 2015-12-14 11:31:25 -08:00
intel_chipset.c intel: add generic functions to check PCI ID 2018-09-05 16:14:04 -07:00
intel_chipset.h intel: add generic functions to check PCI ID 2018-09-05 16:14:04 -07:00
intel_debug.h intel: shared header for shader debugging 2011-08-01 14:44:58 -07:00
intel_decode.c intel: add support for ICL 11 2018-05-01 14:30:25 -07:00
libdrm_intel.pc.in intel: Update package name and description in libdrm_intel.pc 2013-08-30 12:10:50 -04:00
Makefile.am automake: Don't include Android Makefiles in the release tarball 2016-07-23 09:45:53 +02:00
Makefile.sources intel: add generic functions to check PCI ID 2018-09-05 16:14:04 -07:00
meson.build intel: add generic functions to check PCI ID 2018-09-05 16:14:04 -07:00
mm.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
mm.h meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
test_decode.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
uthash.h intel: Migrate handle/name lookups from linear lists to hashtables 2016-10-22 09:32:54 +01:00