mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
More trailing whilespace removal
This commit is contained in:
@@ -414,9 +414,9 @@ static void cs89x0_receive(struct cs89x0_driver_s *cs89x0, uint16_t isq)
|
||||
cd89x0->cs_stats.rx_errors++;
|
||||
cd89x0->cs_stats.rx_lengtherrors++;
|
||||
#endif
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* Copy the data data from the hardware to cs89x0->cs_dev.d_buf. Set
|
||||
* amount of data in cs89x0->cs_dev.d_len
|
||||
*/
|
||||
@@ -425,7 +425,7 @@ static void cs89x0_receive(struct cs89x0_driver_s *cs89x0, uint16_t isq)
|
||||
for (nbytes = 0; nbytes < rxlength; nbytes += sizeof(uint16_t))
|
||||
{
|
||||
*dest++ = cs89x0_getreg(PPR_RXFRAMELOCATION);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_C89x0_STATISTICS
|
||||
cd89x0->cs_stats.rx_packets++;
|
||||
@@ -576,7 +576,7 @@ static int cs89x0_interrupt(int irq, FAR void *context)
|
||||
{
|
||||
register struct cs89x0_driver_s *cs89x0 = s89x0_mapirq(irq);
|
||||
uint16_t isq;
|
||||
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!cs89x0)
|
||||
{
|
||||
@@ -704,7 +704,7 @@ static void cs89x0_polltimer(int argc, uint32_t arg, ...)
|
||||
*
|
||||
* Description:
|
||||
* NuttX Callback: Bring up the Ethernet interface when an IP address is
|
||||
* provided
|
||||
* provided
|
||||
*
|
||||
* Parameters:
|
||||
* dev - Reference to the NuttX driver state structure
|
||||
@@ -780,7 +780,7 @@ static int cs89x0_ifdown(struct uip_driver_s *dev)
|
||||
* Function: cs89x0_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.
|
||||
*
|
||||
@@ -827,7 +827,7 @@ static int cs89x0_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
|
||||
@@ -857,7 +857,7 @@ static int cs89x0_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
|
||||
|
||||
+17
-17
@@ -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
|
||||
|
||||
@@ -402,7 +402,7 @@
|
||||
/* Bit 0: Reserved */
|
||||
#define PHLCON_STRCH (1 << 1) /* Bit 1: LED Pulse Stretching Enable */
|
||||
#define PHLCON_LFRQ0 (1 << 2) /* Bit 2: LED Pulse Stretch Time Configuration */
|
||||
#define PHLCON_LFRQ1 (1 << 3) /* Bit 3: " " " " " " " " " */
|
||||
#define PHLCON_LFRQ1 (1 << 3) /* Bit 3: " " " " " " " " " */
|
||||
#define PHLCON_LBCFG0 (1 << 4) /* Bit 4: LEDB Configuration */
|
||||
#define PHLCON_LBCFG1 (1 << 5) /* Bit 5: " " " " */
|
||||
#define PHLCON_LBCFG2 (1 << 6) /* Bit 6: " " " " */
|
||||
|
||||
@@ -440,7 +440,7 @@ static void skel_polltimer(int argc, uint32_t arg, ...)
|
||||
*
|
||||
* Description:
|
||||
* NuttX Callback: Bring up the Ethernet interface when an IP address is
|
||||
* provided
|
||||
* provided
|
||||
*
|
||||
* Parameters:
|
||||
* dev - Reference to the NuttX driver state structure
|
||||
@@ -520,7 +520,7 @@ static int skel_ifdown(struct uip_driver_s *dev)
|
||||
* Function: skel_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.
|
||||
*
|
||||
@@ -570,7 +570,7 @@ static int skel_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
|
||||
@@ -599,7 +599,7 @@ static int skel_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
|
||||
|
||||
+7
-7
@@ -327,7 +327,7 @@ static int slip_transmit(FAR struct slip_driver_s *priv)
|
||||
remaining = priv->dev.d_len;
|
||||
start = src;
|
||||
len = 0;
|
||||
|
||||
|
||||
while (remaining-- > 0)
|
||||
{
|
||||
switch (*src)
|
||||
@@ -559,7 +559,7 @@ static inline void slip_receive(FAR struct slip_driver_s *priv)
|
||||
ch = slip_getc(priv);
|
||||
|
||||
/* Handle bytestuffing if necessary */
|
||||
|
||||
|
||||
switch (ch)
|
||||
{
|
||||
/* If it's an END character then we're done with the packet.
|
||||
@@ -727,7 +727,7 @@ static int slip_rxtask(int argc, char *argv[])
|
||||
|
||||
if (priv->dev.d_len > 0)
|
||||
{
|
||||
slip_transmit(priv);
|
||||
slip_transmit(priv);
|
||||
}
|
||||
uip_unlock(flags);
|
||||
slip_semgive(priv);
|
||||
@@ -748,7 +748,7 @@ static int slip_rxtask(int argc, char *argv[])
|
||||
*
|
||||
* Description:
|
||||
* NuttX Callback: Bring up the Ethernet interface when an IP address is
|
||||
* provided
|
||||
* provided
|
||||
*
|
||||
* Parameters:
|
||||
* dev - Reference to the NuttX driver state structure
|
||||
@@ -804,7 +804,7 @@ static int slip_ifdown(struct uip_driver_s *dev)
|
||||
* Function: slip_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.
|
||||
*
|
||||
@@ -841,7 +841,7 @@ static int slip_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
|
||||
@@ -870,7 +870,7 @@ static int slip_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
|
||||
|
||||
+6
-6
@@ -181,8 +181,8 @@ static int vnet_transmit(FAR struct vnet_driver_s *vnet)
|
||||
/* Setup the TX timeout watchdog (perhaps restarting the timer) */
|
||||
//(void)wd_start(vnet->sk_txtimeout, VNET_TXTIMEOUT, vnet_txtimeout, 1, (uint32_t)vnet);
|
||||
|
||||
// When vnet_xmit fail, it means TX buffer is full. Watchdog
|
||||
// is of no use here because no TX done INT will happen. So
|
||||
// When vnet_xmit fail, it means TX buffer is full. Watchdog
|
||||
// is of no use here because no TX done INT will happen. So
|
||||
// we reset the TX buffer directly.
|
||||
#ifdef CONFIG_DEBUG
|
||||
cprintf("VNET: TX buffer is full\n");
|
||||
@@ -429,7 +429,7 @@ static void vnet_polltimer(int argc, uint32_t arg, ...)
|
||||
*
|
||||
* Description:
|
||||
* NuttX Callback: Bring up the Ethernet interface when an IP address is
|
||||
* provided
|
||||
* provided
|
||||
*
|
||||
* Parameters:
|
||||
* dev - Reference to the NuttX driver state structure
|
||||
@@ -505,7 +505,7 @@ static int vnet_ifdown(struct uip_driver_s *dev)
|
||||
* Function: vnet_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.
|
||||
*
|
||||
@@ -562,7 +562,7 @@ out:
|
||||
*
|
||||
* 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
|
||||
@@ -591,7 +591,7 @@ static int vnet_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
|
||||
|
||||
Reference in New Issue
Block a user