summaryrefslogtreecommitdiff
path: root/tools/intel_reg_read.c
AgeCommit message (Collapse)Author
2012-08-23intel_reg_read: use strtol instead of atoiBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-23intel_reg_read: support -c option to read multiple dwordsBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-03-13intel_reg_read: add a flag to simplify bit decodingEugeni Dodonov
This allows to specify '-d' parameter which will decode individual bits in each register being read. The register bits are printed horizontally for space reasons. This requires more than 80x25 terminal to see them all. An alternative solution would be to print them vertically, but this will become much more difficult to read when printing multiple registers at the same time. v2: fix spacing to get us a bit closer to the code nirvana. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-03-13intel_reg_read: support reading multiple registersEugeni Dodonov
The registers must be passed on the command line and will be read sequentially, one at a time. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-03-13intel_reg_read: add support for getoptEugeni Dodonov
This will allow us to pass more options to it in the future. v2: fix whitespacing issues and improve scary warning text as suggested by Paul Menzel. Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-01-25intel_reg_read: use register access init/finiBen Widawsky
This will do the proper forcewake stuff. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2010-04-08Enable compilation on non-Intel, non-DRM systems.Chris Wilson
A few of the tools can be performed post-mortem from a different system, so it is useful to be able to compile those tools on those foreign systems. Obviously, any program to interact with the PCI device or talk to GEM will fail on a non-Intel system. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-01-06Add 'intel_reg_read' toolZhenyu Wang
This is a handy tool to just check state of one register, which might not bother to be included in intel_reg_dumper tool. And also take in Ben's original full range register dump with '-f' option. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>