| Top |  |  |  |  | 
| struct pci_device * | intel_get_pci_device () | 
| uint32_t | intel_get_drm_devid () | 
| int | intel_gen () | 
| void | intel_check_pch () | 
| #define | IS_MOBILE() | 
| #define | IS_G45() | 
| #define | IS_GM45() | 
| #define | IS_G4X() | 
| #define | IS_ILD() | 
| #define | IS_ILM() | 
| #define | IS_915() | 
| #define | IS_945GM() | 
| #define | IS_945() | 
| #define | IS_G33() | 
| #define | IS_GEN2() | 
| #define | IS_GEN3() | 
| #define | IS_GEN4() | 
| #define | IS_GEN5() | 
| #define | IS_GEN6() | 
| #define | IS_GEN7() | 
| #define | IS_IVYBRIDGE() | 
| #define | IS_VALLEYVIEW() | 
| #define | IS_HSW_GT1() | 
| #define | IS_HSW_GT2() | 
| #define | IS_HSW_GT3() | 
| #define | IS_HASWELL() | 
| #define | IS_BROADWELL() | 
| #define | IS_CHERRYVIEW() | 
| #define | IS_GEN8() | 
| #define | IS_SKL_GT1() | 
| #define | IS_SKL_GT2() | 
| #define | IS_SKL_GT3() | 
| #define | IS_SKL_GT4() | 
| #define | IS_KBL_GT1() | 
| #define | IS_KBL_GT2() | 
| #define | IS_KBL_GT3() | 
| #define | IS_KBL_GT4() | 
| #define | IS_KABYLAKE() | 
| #define | IS_SKYLAKE() | 
| #define | IS_BROXTON() | 
| #define | IS_GEN9() | 
| #define | IS_965() | 
| #define | IS_9XX() | 
| #define | IS_INTEL() | 
| #define | HAS_PCH_SPLIT() | 
| #define | HAS_BLT_RING() | 
| #define | HAS_BSD_RING() | 
| #define | IS_BROADWATER() | 
| #define | IS_CRESTLINE() | 
| #define | HAS_VEBOX_RING() | 
This library mostly provides feature macros which use raw pci device ids. It also provides a few more helper functions to handle pci devices, chipset detection and related issues.
struct pci_device *
intel_get_pci_device (void);
Looks up the main graphics pci device using libpciaccess.
uint32_t
intel_get_drm_devid (int fd);
Queries the kernel for the pci device id corresponding to the drm file descriptor.
int
intel_gen (uint32_t devid);
Computes the Intel GFX generation for the give device id.
void
intel_check_pch (void);
Detects the PCH chipset type of the running systems and fills in the results into the global intel_pch variable.