| Top |
| #define | BIT() |
| struct pci_device * | intel_get_pci_device () |
| uint32_t | intel_get_drm_devid () |
| const struct intel_device_info * | intel_get_device_info () |
| const struct intel_cmds_info * | intel_get_cmds_info () |
| unsigned | intel_gen () |
| unsigned | intel_graphics_ver () |
| unsigned | intel_display_ver () |
| void | intel_check_pch () |
| #define | IP_VER() |
| #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_SKYLAKE() |
| #define | IS_BROXTON() |
| #define | IS_KABYLAKE() |
| #define | IS_GEMINILAKE() |
| #define | IS_COFFEELAKE() |
| #define | IS_COMETLAKE() |
| #define | IS_CANNONLAKE() |
| #define | IS_ICELAKE() |
| #define | IS_TIGERLAKE() |
| #define | IS_ROCKETLAKE() |
| #define | IS_DG1() |
| #define | IS_DG2() |
| #define | IS_ALDERLAKE_S() |
| #define | IS_RAPTORLAKE_S() |
| #define | IS_ALDERLAKE_P() |
| #define | IS_ALDERLAKE_N() |
| #define | IS_METEORLAKE() |
| #define | IS_PONTEVECCHIO() |
| #define | IS_LUNARLAKE() |
| #define | IS_BATTLEMAGE() |
| #define | IS_PANTHERLAKE() |
| #define | IS_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_GEN10() |
| #define | IS_GEN11() |
| #define | IS_GEN12() |
| #define | IS_MOBILE() |
| #define | IS_965() |
| #define | HAS_BSD_RING() |
| #define | HAS_BLT_RING() |
| #define | HAS_PCH_SPLIT() |
| #define | HAS_4TILE() |
| #define | HAS_FLATCCS() |
| #define | HAS_OAM() |
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.
const struct intel_cmds_info *
intel_get_cmds_info (uint16_t devid);
Looks up information on copy commands and tiling formats supported by the device.
unsigned
intel_gen (uint16_t devid);
Computes the Intel GFX generation for the given device id.
unsigned
intel_display_ver (uint16_t devid);
Computes the Intel GFX display version 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.
struct intel_device_info {
unsigned graphics_ver;
unsigned graphics_rel;
unsigned display_ver;
unsigned gt; /* 0 if unknown */
bool has_4tile : 1;
bool has_flatccs : 1;
bool has_oam : 1;
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;
bool is_coffeelake : 1;
bool is_cometlake : 1;
bool is_cannonlake : 1;
bool is_icelake : 1;
bool is_elkhartlake : 1;
bool is_jasperlake : 1;
bool is_tigerlake : 1;
bool is_rocketlake : 1;
bool is_dg1 : 1;
bool is_dg2 : 1;
bool is_alderlake_s : 1;
bool is_raptorlake_s : 1;
bool is_alderlake_p : 1;
bool is_alderlake_n : 1;
bool is_meteorlake : 1;
bool is_pontevecchio : 1;
bool is_lunarlake : 1;
bool is_battlemage : 1;
bool is_pantherlake : 1;
const struct intel_cmds_info *cmds_info;
const char *codename;
};
extern enum pch_type intel_pch;
Global variable to keep track of the pch type. Can either be set manually or
detected at runtime with intel_check_pch().