blob: b0716ad74ae4eaf71cad9901640db377808ecca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "nvlib.h"
using namespace std;
int main(int argc, char** argv)
{
unique_ptr<nv_device> 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;
}
|