| Top |
| struct pci_device * | intel_get_pci_device () |
| uint32_t | intel_get_drm_devid () |
| const struct intel_device_info * | intel_get_device_info () |
| unsigned | intel_gen () |
| unsigned | intel_gt () |
| void | intel_check_pch () |
| #define | IS_915G() |
| #define | IS_915GM() |
| #define | IS_915() |
| #define | IS_945G() |
| #define | IS_945GM() |
| #define | IS_945() |
| #define | IS_PINEVIEW() |
| #define | IS_G33() |
| #define | IS_BROADWATER() |
| #define | IS_CRESTLINE() |
| #define | IS_GM45() |
| #define | IS_G45() |
| #define | IS_G4X() |
| #define | IS_IRONLAKE() |
| #define | IS_ARRANDALE() |
| #define | IS_SANDYBRIDGE() |
| #define | IS_IVYBRIDGE() |
| #define | IS_VALLEYVIEW() |
| #define | IS_HASWELL() |
| #define | IS_BROADWELL() |
| #define | IS_CHERRYVIEW() |
| #define | IS_KABYLAKE() |
| #define | IS_SKYLAKE() |
| #define | IS_BROXTON() |
| #define | IS_GEMINILAKE() |
| #define | IS_GEN() |
| #define | AT_LEAST_GEN() |
| #define | IS_GEN2() |
| #define | IS_GEN3() |
| #define | IS_GEN4() |
| #define | IS_GEN5() |
| #define | IS_GEN6() |
| #define | IS_GEN7() |
| #define | IS_GEN8() |
| #define | IS_GEN9() |
| #define | IS_MOBILE() |
| #define | IS_965() |
| #define | HAS_BSD_RING() |
| #define | HAS_BLT_RING() |
| #define | HAS_PCH_SPLIT() |
| struct | intel_device_info |
| enum | pch_type |
| #define | HAS_IBX |
| #define | HAS_CPT |
| #define | HAS_LPT |
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.
const struct intel_device_info *
intel_get_device_info (uint16_t devid);
Looks up the Intel GFX device info for the given device id.
unsigned
intel_gen (uint16_t devid);
Computes the Intel GFX generation for the given device id.
unsigned
intel_gt (uint16_t devid);
Computes the Intel GFX GT size for the given 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.
#define AT_LEAST_GEN(devid, x) (intel_get_device_info(devid)->gen & -(1u << ((x)-1)))
struct intel_device_info {
unsigned gen;
bool is_mobile : 1;
bool is_whitney : 1;
bool is_almador : 1;
bool is_brookdale : 1;
bool is_montara : 1;
bool is_springdale : 1;
bool is_grantsdale : 1;
bool is_alviso : 1;
bool is_lakeport : 1;
bool is_calistoga : 1;
bool is_bearlake : 1;
bool is_pineview : 1;
bool is_broadwater : 1;
bool is_crestline : 1;
bool is_eaglelake : 1;
bool is_cantiga : 1;
bool is_ironlake : 1;
bool is_arrandale : 1;
bool is_sandybridge : 1;
bool is_ivybridge : 1;
bool is_valleyview : 1;
bool is_haswell : 1;
bool is_broadwell : 1;
bool is_cherryview : 1;
bool is_skylake : 1;
bool is_broxton : 1;
bool is_kabylake : 1;
bool is_geminilake : 1;
const char *codename;
};