diff options
Diffstat (limited to 'nuttx/drivers/net/dm90x0.c')
-rw-r--r-- | nuttx/drivers/net/dm90x0.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/nuttx/drivers/net/dm90x0.c b/nuttx/drivers/net/dm90x0.c index 8401982d8..33d294532 100644 --- a/nuttx/drivers/net/dm90x0.c +++ b/nuttx/drivers/net/dm90x0.c @@ -930,19 +930,19 @@ static void dm9x_receive(struct dm9x_driver_s *dm9x) /* Bad RX packet... update statistics */ #if defined(CONFIG_DM9X_STATS) - if (rx.desc.rx_status & 0x01) + if (rx.desc.rx_status & 0x01) { dm9x->dm_nrxfifoerrors++; ndbg("RX FIFO error: %d\n", dm9x->dm_nrxfifoerrors); } - if (rx.desc.rx_status & 0x02) + if (rx.desc.rx_status & 0x02) { dm9x->dm_nrxcrcerrors++; ndbg("RX CRC error: %d\n", dm9x->dm_nrxcrcerrors); } - if (rx.desc.rx_status & 0x80) + if (rx.desc.rx_status & 0x80) { dm9x->dm_nrxlengtherrors++; ndbg("RX length error: %d\n", dm9x->dm_nrxlengtherrors); @@ -1123,7 +1123,7 @@ static int dm9x_interrupt(int irq, FAR void *context) /* Disable all DM90x0 interrupts */ - putreg(DM9X_IMR, DM9X_IMRDISABLE); + putreg(DM9X_IMR, DM9X_IMRDISABLE); /* Get and clear the DM90x0 interrupt status bits */ @@ -1163,7 +1163,7 @@ static int dm9x_interrupt(int irq, FAR void *context) } up_mdelay(1); } - ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); + ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); } /* Check if we received an incoming packet */ @@ -1180,7 +1180,7 @@ static int dm9x_interrupt(int irq, FAR void *context) dm9x_txdone(dm9x); } - /* If the number of consecutive receive packets exceeds a threshold, + /* If the number of consecutive receive packets exceeds a threshold, * then disable the RX interrupt. */ @@ -1234,9 +1234,9 @@ static void dm9x_txtimeout(int argc, uint32_t arg, ...) dm9x->dm_ntxerrors++; #endif - ndbg(" TX packet count: %d\n", dm9x->dm_ntxpending); + ndbg(" TX packet count: %d\n", dm9x->dm_ntxpending); #if defined(CONFIG_DM9X_STATS) - ndbg(" TX timeouts: %d\n", dm9x->dm_ntxtimeouts); + ndbg(" TX timeouts: %d\n", dm9x->dm_ntxtimeouts); #endif ndbg(" TX read pointer address: 0x%02x:%02x\n", getreg(DM9X_TRPAH), getreg(DM9X_TRPAL)); @@ -1324,16 +1324,16 @@ static inline void dm9x_phymode(struct dm9x_driver_s *dm9x) phyreg0 = 0x1200; /* Auto-negotiation & Restart Auto-negotiation */ phyreg4 = 0x01e1; /* Default flow control disable*/ #elif CONFIG_DM9X_MODE_10MHD - phyreg4 = 0x21; + phyreg4 = 0x21; phyreg0 = 0x1000; #elif CONFIG_DM9X_MODE_10MFD - phyreg4 = 0x41; + phyreg4 = 0x41; phyreg0 = 0x1100; #elif CONFIG_DM9X_MODE_100MHD - phyreg4 = 0x81; + phyreg4 = 0x81; phyreg0 = 0x3000; #elif CONFIG_DM9X_MODE_100MFD - phyreg4 = 0x101; + phyreg4 = 0x101; phyreg0 = 0x3100; #else # error "Recognized PHY mode" @@ -1348,7 +1348,7 @@ static inline void dm9x_phymode(struct dm9x_driver_s *dm9x) * * Description: * NuttX Callback: Bring up the DM90x0 interface when an IP address is - * provided + * provided * * Parameters: * dev - Reference to the NuttX driver state structure @@ -1396,7 +1396,7 @@ static int dm9x_ifup(struct uip_driver_s *dev) up_mdelay(1); } - ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); + ndbg("delay: %dmS speed: %s\n", i, dm9x->dm_b100M ? "100M" : "10M"); /* Set and activate a timer process */ @@ -1463,7 +1463,7 @@ static int dm9x_ifdown(struct uip_driver_s *dev) * Function: dm9x_txavail * * Description: - * Driver callback invoked when new TX data is available. This is a + * Driver callback invoked when new TX data is available. This is a * stimulus perform an out-of-cycle poll and, thereby, reduce the TX * latency. * @@ -1515,7 +1515,7 @@ static int dm9x_txavail(struct uip_driver_s *dev) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be added + * mac - The MAC address to be added * * Returned Value: * None @@ -1545,7 +1545,7 @@ static int dm9x_addmac(struct uip_driver_s *dev, FAR const uint8_t *mac) * * Parameters: * dev - Reference to the NuttX driver state structure - * mac - The MAC address to be removed + * mac - The MAC address to be removed * * Returned Value: * None |