|
@@ -38,6 +38,31 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
38
|
38
|
*
|
39
|
39
|
*/
|
40
|
40
|
|
|
41
|
+/******************************************************************************
|
|
42
|
+ *
|
|
43
|
+ * Diagnostics
|
|
44
|
+ *
|
|
45
|
+ ******************************************************************************
|
|
46
|
+ */
|
|
47
|
+
|
|
48
|
+/**
|
|
49
|
+ * Dump statistics
|
|
50
|
+ *
|
|
51
|
+ * @v intel Intel device
|
|
52
|
+ */
|
|
53
|
+static __attribute__ (( unused )) void
|
|
54
|
+intelxvf_stats ( struct intel_nic *intel ) {
|
|
55
|
+
|
|
56
|
+ DBGC ( intel, "INTEL %p TX %d (%#x%08x) RX %d (%#x%08x) multi %d\n",
|
|
57
|
+ intel, readl ( intel->regs + INTELXVF_GPTC ),
|
|
58
|
+ readl ( intel->regs + INTELXVF_GOTCH ),
|
|
59
|
+ readl ( intel->regs + INTELXVF_GOTCL ),
|
|
60
|
+ readl ( intel->regs + INTELXVF_GPRC ),
|
|
61
|
+ readl ( intel->regs + INTELXVF_GORCH ),
|
|
62
|
+ readl ( intel->regs + INTELXVF_GORCL ),
|
|
63
|
+ readl ( intel->regs + INTELXVF_MPRC ) );
|
|
64
|
+}
|
|
65
|
+
|
41
|
66
|
/******************************************************************************
|
42
|
67
|
*
|
43
|
68
|
* Device reset
|