add r2 version of pvoutput API

Signed-off-by: Robert Marklund <robbelibobban@gmail.com>