sw/nv50: add an interface to control perfmon

This will be used to monitor global performance counters (PCOUNTER) from
the userspace with a set of software methods.