summaryrefslogtreecommitdiff
path: root/pgraph.cpp
blob: 9d5af5ede47a4a1a6dfa7be53589c1939ad51cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "nvlib.h"

int main(int argc, char** argv)
{
	std::auto_ptr<nv_device> dev;
	dev.reset(nv_device::open_default());

	for(unsigned i = 0; i < 0x2000; i += 4) {
		unsigned v = dev->rd32(0x400000 + i);
		std::cout << std::hex << std::setw(8) << i << ' ' << v << std::endl;
	}
	return 0;
}