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:
Ben Widawsky
2013-02-01 14:54:31 -08:00
parent 508b5ce9a5
commit 6437eed930
5 changed files with 62 additions and 2 deletions
+18 -1
View File
@@ -1,6 +1,23 @@
BUILT_SOURCES = chipset_wrap_python.c
bin_SCRIPTS = quick_dump.py chipset.py
lib_LTLIBRARIES = I915ChipsetPython.la
I915ChipsetPython_la_CFLAGS = -I$(top_srcdir)/lib $(PYTHON_CPPFLAGS)
I915ChipsetPython_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS)
I915ChipsetPython_la_SOURCES = chipset_wrap_python.c intel_chipset.c
chipset_wrap_python.c: chipset.i
$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir)/lib -o $@ $<
all-local: I915ChipsetPython.la
$(LN_S) -f .libs/I915ChipsetPython.so _chipset.so
CLEANFILES = chipset_wrap_python.c chipset.py _chipset.so
EXTRA_DIST = \
base_display.txt base_interrupt.txt base_other.txt base_power.txt base_rings.txt \
gen6_other.txt sandybridge \
gen7_other.txt ivybridge \
vlv_display.txt valleyview \
quick_dump.py
quick_dump.py \
chipset.i chipset.py