mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
quick_dump: SWIG chipset interface
This isn't strictly necessary it would have been easy enough to simply convert intel_chipset.h but this should be nice prep work for directly doing MMIO. It also serves as a nice review point. It's demonstrated with an autodetect function in the script. That autodetect has a hardcoded path that shouldn't be there, but it will go away in the next patch when we can properly link in libpciaccess. Thanks to Matt for helping whip the automake stuff into shape. v2: Switch to $(top_srcdir) Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
%module chipset
|
||||
%{
|
||||
#include "intel_chipset.h"
|
||||
extern int is_sandybridge(unsigned short pciid);
|
||||
extern int is_ivybridge(unsigned short pciid);
|
||||
extern int is_valleyview(unsigned short pciid);
|
||||
%}
|
||||
|
||||
%include "intel_chipset.h"
|
||||
extern int is_sandybridge(unsigned short pciid);
|
||||
extern int is_ivybridge(unsigned short pciid);
|
||||
extern int is_valleyview(unsigned short pciid);
|
||||
Reference in New Issue
Block a user