瀏覽代碼

[intel] Incorporate ring producer and consumer counters in diagnostics

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
18521a170c
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      src/drivers/net/intel.c

+ 6
- 1
src/drivers/net/intel.c 查看文件

@@ -247,10 +247,15 @@ static int intel_fetch_mac ( struct intel_nic *intel, uint8_t *hw_addr ) {
247 247
  */
248 248
 static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) {
249 249
 
250
-	DBGC ( intel, "INTEL %p TDH=%04x TDT=%04x RDH=%04x RDT=%04x\n", intel,
250
+	DBGC ( intel, "INTEL %p TX %04x(%02x)/%04x(%02x) "
251
+	       "RX %04x(%02x)/%04x(%02x)\n", intel,
252
+	       ( intel->tx.cons & 0xffff ),
251 253
 	       readl ( intel->regs + intel->tx.reg + INTEL_xDH ),
254
+	       ( intel->tx.prod & 0xffff ),
252 255
 	       readl ( intel->regs + intel->tx.reg + INTEL_xDT ),
256
+	       ( intel->rx.cons & 0xffff ),
253 257
 	       readl ( intel->regs + intel->rx.reg + INTEL_xDH ),
258
+	       ( intel->rx.prod & 0xffff ),
254 259
 	       readl ( intel->regs + intel->rx.reg + INTEL_xDT ) );
255 260
 }
256 261
 

Loading…
取消
儲存