mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 03:55:46 +03:00
[intel] Incorporate ring producer and consumer counters in diagnostics
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -247,10 +247,15 @@ static int intel_fetch_mac ( struct intel_nic *intel, uint8_t *hw_addr ) {
|
|||||||
*/
|
*/
|
||||||
static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) {
|
static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) {
|
||||||
|
|
||||||
DBGC ( intel, "INTEL %p TDH=%04x TDT=%04x RDH=%04x RDT=%04x\n", intel,
|
DBGC ( intel, "INTEL %p TX %04x(%02x)/%04x(%02x) "
|
||||||
|
"RX %04x(%02x)/%04x(%02x)\n", intel,
|
||||||
|
( intel->tx.cons & 0xffff ),
|
||||||
readl ( intel->regs + intel->tx.reg + INTEL_xDH ),
|
readl ( intel->regs + intel->tx.reg + INTEL_xDH ),
|
||||||
|
( intel->tx.prod & 0xffff ),
|
||||||
readl ( intel->regs + intel->tx.reg + INTEL_xDT ),
|
readl ( intel->regs + intel->tx.reg + INTEL_xDT ),
|
||||||
|
( intel->rx.cons & 0xffff ),
|
||||||
readl ( intel->regs + intel->rx.reg + INTEL_xDH ),
|
readl ( intel->regs + intel->rx.reg + INTEL_xDH ),
|
||||||
|
( intel->rx.prod & 0xffff ),
|
||||||
readl ( intel->regs + intel->rx.reg + INTEL_xDT ) );
|
readl ( intel->regs + intel->rx.reg + INTEL_xDT ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user