|
@@ -248,10 +248,10 @@ static int intel_fetch_mac ( struct intel_nic *intel, uint8_t *hw_addr ) {
|
248
|
248
|
static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) {
|
249
|
249
|
|
250
|
250
|
DBGC ( intel, "INTEL %p TDH=%04x TDT=%04x RDH=%04x RDT=%04x\n", intel,
|
251
|
|
- readl ( intel->regs + INTEL_TDH ),
|
252
|
|
- readl ( intel->regs + INTEL_TDT ),
|
253
|
|
- readl ( intel->regs + INTEL_RDH ),
|
254
|
|
- readl ( intel->regs + INTEL_RDT ) );
|
|
251
|
+ readl ( intel->regs + intel->tx.reg + INTEL_xDH ),
|
|
252
|
+ readl ( intel->regs + intel->tx.reg + INTEL_xDT ),
|
|
253
|
+ readl ( intel->regs + intel->rx.reg + INTEL_xDH ),
|
|
254
|
+ readl ( intel->regs + intel->rx.reg + INTEL_xDT ) );
|
255
|
255
|
}
|
256
|
256
|
|
257
|
257
|
/******************************************************************************
|
|
@@ -468,7 +468,7 @@ static void intel_refill_rx ( struct intel_nic *intel ) {
|
468
|
468
|
intel->rx_iobuf[rx_idx] = iobuf;
|
469
|
469
|
|
470
|
470
|
/* Push descriptor to card */
|
471
|
|
- writel ( rx_tail, intel->regs + INTEL_RDT );
|
|
471
|
+ writel ( rx_tail, intel->regs + intel->rx.reg + INTEL_xDT );
|
472
|
472
|
|
473
|
473
|
DBGC2 ( intel, "INTEL %p RX %d is [%llx,%llx)\n", intel, rx_idx,
|
474
|
474
|
( ( unsigned long long ) address ),
|
|
@@ -599,7 +599,7 @@ static int intel_transmit ( struct net_device *netdev,
|
599
|
599
|
wmb();
|
600
|
600
|
|
601
|
601
|
/* Notify card that there are packets ready to transmit */
|
602
|
|
- writel ( tx_tail, intel->regs + INTEL_TDT );
|
|
602
|
+ writel ( tx_tail, intel->regs + intel->tx.reg + INTEL_xDT );
|
603
|
603
|
|
604
|
604
|
DBGC2 ( intel, "INTEL %p TX %d is [%llx,%llx)\n", intel, tx_idx,
|
605
|
605
|
( ( unsigned long long ) address ),
|