mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-18 13:26:30 +00:00
quick_dump: chv: add detection support
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
parent
9a642a7287
commit
6d2577c741
@ -8,6 +8,7 @@
|
||||
extern int is_sandybridge(unsigned short pciid);
|
||||
extern int is_ivybridge(unsigned short pciid);
|
||||
extern int is_valleyview(unsigned short pciid);
|
||||
extern int is_cherryview(unsigned short pciid);
|
||||
extern int is_haswell(unsigned short pciid);
|
||||
extern int is_broadwell(unsigned short pciid);
|
||||
extern struct pci_device *intel_get_pci_device();
|
||||
@ -24,6 +25,7 @@ extern uint32_t intel_flisdsi_reg_read(uint32_t reg);
|
||||
extern int is_sandybridge(unsigned short pciid);
|
||||
extern int is_ivybridge(unsigned short pciid);
|
||||
extern int is_valleyview(unsigned short pciid);
|
||||
extern int is_cherryview(unsigned short pciid);
|
||||
extern int is_haswell(unsigned short pciid);
|
||||
extern int is_broadwell(unsigned short pciid);
|
||||
extern struct pci_device *intel_get_pci_device();
|
||||
|
@ -18,6 +18,11 @@ int is_valleyview(unsigned short pciid)
|
||||
return IS_VALLEYVIEW(pciid);
|
||||
}
|
||||
|
||||
int is_cherryview(unsigned short pciid)
|
||||
{
|
||||
return IS_CHERRYVIEW(pciid);
|
||||
}
|
||||
|
||||
int is_haswell(unsigned short pciid)
|
||||
{
|
||||
return IS_HASWELL(pciid);
|
||||
|
@ -64,6 +64,8 @@ def autodetect_chipset():
|
||||
return open('sandybridge', 'r')
|
||||
elif chipset.is_ivybridge(devid):
|
||||
return open('ivybridge', 'r')
|
||||
elif chipset.is_cherryview(devid):
|
||||
return open('cherryview', 'r')
|
||||
elif chipset.is_valleyview(devid):
|
||||
return open('valleyview', 'r')
|
||||
elif chipset.is_haswell(devid):
|
||||
|
Loading…
x
Reference in New Issue
Block a user