1 #include <stdio.h>
2 #include "internal.h"
3 
4 static char *hw_versions[] = {
5         "503_ISL3861",
6         "503_ISL3863",
7         "        503",
8         "    503_ACC",
9         "        505",
10         "   505_2958",
11         "       505A",
12         "     505AMX",
13 };
14 
at76c50x_usb_dump_regs(struct ethtool_drvinfo * info maybe_unused,struct ethtool_regs * regs)15 int at76c50x_usb_dump_regs(struct ethtool_drvinfo *info maybe_unused,
16 			   struct ethtool_regs *regs)
17 {
18 	u8 version = (u8)(regs->version >> 24);
19 	u8 rev_id = (u8)(regs->version);
20 	char *ver_string;
21 
22 	if (version != 0)
23 		return -1;
24 
25 	ver_string = hw_versions[rev_id];
26 	fprintf(stdout,
27 		"Hardware Version                    %s\n",
28 		ver_string);
29 
30 	return 0;
31 }
32 
33