#include "nvlib.h" using namespace std; int main(int argc, char** argv) { unique_ptr dev(nv_device::open_default()); for(unsigned i = 0; i < dev->channels; ++i) { if(i) printf("\n"); printf("Channel %i\n", i); printf(" enabled = %i\n", dev->is_channel_enabled(i)); printf(" dma = %08x\n", dev->ramfc->fc[i]->rd32(dev->ramfc->fc_fifo) << 4); printf(" get = %08x\n", dev->rd_get(i)); printf(" put = %08x\n", dev->rd_put(i)); } return 0; }