Imported Upstream version 3.2.2
[debian/gnuradio] / usrp2 / firmware / lib / print_rmon_regs.c
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2008 Free Software Foundation, Inc.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifdef HAVE_CONFIG_H
20 #include "config.h"
21 #endif
22
23 #include "print_rmon_regs.h"
24 #include "eth_mac.h"
25 #include "nonstdio.h"
26
27 void
28 print_rmon_regs(void)
29 {
30   int i;
31   for (i=0; i <= 0x10; i++){
32     putstr("RMON[0x");
33     puthex8(i);
34     putstr("] = ");
35     printf("%d\n", eth_mac_read_rmon(i));
36   }
37
38   for (i=0x20; i <= 0x30; i++){
39     putstr("RMON[0x");
40     puthex8(i);
41     putstr("] = ");
42     printf("%d\n", eth_mac_read_rmon(i));
43   }
44 }