mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-19 20:33:01 +00:00
quick_dump: Connect libpciaccess and other utils
Make a register access library with sample to do register reads Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <pciaccess.h>
|
||||
#include "intel_chipset.h"
|
||||
|
||||
int is_sandybridge(unsigned short pciid)
|
||||
@@ -14,3 +15,9 @@ int is_valleyview(unsigned short pciid)
|
||||
{
|
||||
return IS_VALLEYVIEW(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