mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
lib: rename intel_pci.c to intel_chipset.c
This is to consolidate all the chipset related functions to intel_chipset.[hc]. Unfortunately we need to rename a wrapper lib file in quick_dump, too. And quick_dump makes automake a bit unhappy apparently. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#include <pciaccess.h>
|
||||
#include "intel_chipset.h"
|
||||
|
||||
int is_sandybridge(unsigned short pciid)
|
||||
{
|
||||
return IS_GEN6(pciid);
|
||||
}
|
||||
|
||||
int is_ivybridge(unsigned short pciid)
|
||||
{
|
||||
return IS_IVYBRIDGE(pciid);
|
||||
}
|
||||
|
||||
int is_valleyview(unsigned short pciid)
|
||||
{
|
||||
return IS_VALLEYVIEW(pciid);
|
||||
}
|
||||
|
||||
int is_haswell(unsigned short pciid)
|
||||
{
|
||||
return IS_HASWELL(pciid);
|
||||
}
|
||||
|
||||
int is_broadwell(unsigned short pciid)
|
||||
{
|
||||
return IS_BROADWELL(pciid);
|
||||
}
|
||||
|
||||
/* Simple helper because I couldn't make this work in the script */
|
||||
unsigned short pcidev_to_devid(struct pci_device *pdev)
|
||||
{
|
||||
return pdev->device_id;
|
||||
}
|
||||
Reference in New Issue
Block a user