Be consistent... Use Name: consistent in function headers vs Function:

This commit is contained in:
Gregory Nutt
2017-04-21 16:33:14 -06:00
parent 2c4800f511
commit d5207efb5a
213 changed files with 730 additions and 730 deletions
+15 -15
View File
@@ -137,7 +137,7 @@ static int cs89x0_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac);
****************************************************************************/
/****************************************************************************
* Function: cs89x0_getreg and cs89x0_putreg
* Name: cs89x0_getreg and cs89x0_putreg
*
* Description:
* Read from and write to a CS89x0 register
@@ -172,7 +172,7 @@ static void cs89x0_putreg(struct cs89x0_driver_s *cs89x0, int offset, uint16_t v
}
/****************************************************************************
* Function: cs89x0_getppreg and cs89x0_putppreg
* Name: cs89x0_getppreg and cs89x0_putppreg
*
* Description:
* Read from and write to a CS89x0 page packet register
@@ -257,7 +257,7 @@ static void cs89x0_putppreg(struct cs89x0_driver_s *cs89x0, int addr, uint16_t v
}
/****************************************************************************
* Function: cs89x0_transmit
* Name: cs89x0_transmit
*
* Description:
* Start hardware transmission. Called either from the txdone interrupt
@@ -298,7 +298,7 @@ static int cs89x0_transmit(struct cs89x0_driver_s *cs89x0)
}
/****************************************************************************
* Function: cs89x0_txpoll
* Name: cs89x0_txpoll
*
* Description:
* The transmitter is available, check if the network has any outgoing packets ready
@@ -368,7 +368,7 @@ static int cs89x0_txpoll(struct net_driver_s *dev)
}
/****************************************************************************
* Function: cs89x0_receive
* Name: cs89x0_receive
*
* Description:
* An interrupt was received indicating the availability of a new RX packet
@@ -554,7 +554,7 @@ static void cs89x0_receive(FAR struct cs89x0_driver_s *cs89x0, uint16_t isq)
}
/****************************************************************************
* Function: cs89x0_txdone
* Name: cs89x0_txdone
*
* Description:
* An interrupt was received indicating that the last TX packet(s) is done
@@ -611,7 +611,7 @@ static void cs89x0_txdone(struct cs89x0_driver_s *cs89x0, uint16_t isq)
}
/****************************************************************************
* Function: cs89x0_interrupt
* Name: cs89x0_interrupt
*
* Description:
* Hardware interrupt handler
@@ -680,7 +680,7 @@ static int cs89x0_interrupt(int irq, FAR void *context, FAR void *arg)
}
/****************************************************************************
* Function: cs89x0_txtimeout
* Name: cs89x0_txtimeout
*
* Description:
* Our TX watchdog timed out. Called from the timer interrupt handler.
@@ -713,7 +713,7 @@ static void cs89x0_txtimeout(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: cs89x0_polltimer
* Name: cs89x0_polltimer
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -747,7 +747,7 @@ static void cs89x0_polltimer(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: cs89x0_ifup
* Name: cs89x0_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -787,7 +787,7 @@ static int cs89x0_ifup(struct net_driver_s *dev)
}
/****************************************************************************
* Function: cs89x0_ifdown
* Name: cs89x0_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -825,7 +825,7 @@ static int cs89x0_ifdown(struct net_driver_s *dev)
}
/****************************************************************************
* Function: cs89x0_txavail
* Name: cs89x0_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -867,7 +867,7 @@ static int cs89x0_txavail(struct net_driver_s *dev)
}
/****************************************************************************
* Function: cs89x0_addmac
* Name: cs89x0_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -897,7 +897,7 @@ static int cs89x0_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: cs89x0_rmmac
* Name: cs89x0_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -931,7 +931,7 @@ static int cs89x0_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
****************************************************************************/
/****************************************************************************
* Function: cs89x0_initialize
* Name: cs89x0_initialize
*
* Description:
* Initialize the Ethernet driver
+27 -27
View File
@@ -419,7 +419,7 @@ static void dm9x_reset(struct dm9x_driver_s *priv);
****************************************************************************/
/****************************************************************************
* Function: getreg and setreg
* Name: getreg and setreg
*
* Description:
* Access to memory-mapped DM90x0 8-bit registers
@@ -448,7 +448,7 @@ static void putreg(int reg, uint8_t value)
}
/****************************************************************************
* Function: read8, read16, read32
* Name: read8, read16, read32
*
* Description:
* Read packet data from the DM90x0 SRAM based on its current I/O mode
@@ -496,7 +496,7 @@ static void read32(FAR uint8_t *ptr, int len)
}
/****************************************************************************
* Function: discard8, discard16, discard32
* Name: discard8, discard16, discard32
*
* Description:
* Read and discard packet data in the DM90x0 SRAM based on its current
@@ -540,7 +540,7 @@ static void discard32(int len)
}
/****************************************************************************
* Function: write8, write16, write32
* Name: write8, write16, write32
*
* Description:
* Write packet data into the DM90x0 SRAM based on its current I/O mode
@@ -591,7 +591,7 @@ static void write32(FAR const uint8_t *ptr, int len)
}
/****************************************************************************
* Function: dm9x_readsrom
* Name: dm9x_readsrom
*
* Description:
* Read a word from SROM
@@ -619,7 +619,7 @@ static uint16_t dm9x_readsrom(struct dm9x_driver_s *priv, int offset)
#endif
/****************************************************************************
* Function: dm9x_phyread and dm9x_phywrite
* Name: dm9x_phyread and dm9x_phywrite
*
* Description:
* Read/write data from/to the PHY
@@ -672,7 +672,7 @@ static void dm9x_phywrite(struct dm9x_driver_s *priv, int reg, uint16_t value)
}
/****************************************************************************
* Function: dm9x_rxchecksumready
* Name: dm9x_rxchecksumready
*
* Description:
* Return true if the RX checksum is available
@@ -700,7 +700,7 @@ static inline bool dm9x_rxchecksumready(uint8_t rxbyte)
#endif
/****************************************************************************
* Function: dm9x_transmit
* Name: dm9x_transmit
*
* Description:
* Start hardware transmission. Called either from the txdone interrupt
@@ -767,7 +767,7 @@ static int dm9x_transmit(struct dm9x_driver_s *priv)
}
/****************************************************************************
* Function: dm9x_txpoll
* Name: dm9x_txpoll
*
* Description:
* The transmitter is available, check if the network has any outgoing packets ready
@@ -843,7 +843,7 @@ static int dm9x_txpoll(struct net_driver_s *dev)
}
/****************************************************************************
* Function: dm9x_receive
* Name: dm9x_receive
*
* Description:
* An interrupt was received indicating the availability of a new RX packet
@@ -1041,7 +1041,7 @@ static void dm9x_receive(FAR struct dm9x_driver_s *priv)
}
/****************************************************************************
* Function: dm9x_txdone
* Name: dm9x_txdone
*
* Description:
* An interrupt was received indicating that the last TX packet(s) is done
@@ -1104,7 +1104,7 @@ static void dm9x_txdone(struct dm9x_driver_s *priv)
}
/****************************************************************************
* Function: dm9x_interrupt_work
* Name: dm9x_interrupt_work
*
* Description:
* Perform interrupt related work from the worker thread
@@ -1223,7 +1223,7 @@ static void dm9x_interrupt_work(FAR void *arg)
}
/****************************************************************************
* Function: dm9x_interrupt
* Name: dm9x_interrupt
*
* Description:
* Hardware interrupt handler
@@ -1275,7 +1275,7 @@ static int dm9x_interrupt(int irq, FAR void *context, FAR void *arg)
}
/****************************************************************************
* Function: dm9x_txtimeout_work
* Name: dm9x_txtimeout_work
*
* Description:
* Perform TX timeout related work from the worker thread
@@ -1319,7 +1319,7 @@ static void dm9x_txtimeout_work(FAR void *arg)
}
/****************************************************************************
* Function: dm9x_txtimeout_expiry
* Name: dm9x_txtimeout_expiry
*
* Description:
* Our TX watchdog timed out. Called from the timer interrupt handler.
@@ -1354,7 +1354,7 @@ static void dm9x_txtimeout_expiry(int argc, wdparm_t arg, ...)
}
/****************************************************************************
* Function: dm9x_poll_work
* Name: dm9x_poll_work
*
* Description:
* Perform periodic polling from the worker thread
@@ -1407,7 +1407,7 @@ static void dm9x_poll_work(FAR void *arg)
}
/****************************************************************************
* Function: dm9x_poll_expiry
* Name: dm9x_poll_expiry
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -1434,7 +1434,7 @@ static void dm9x_poll_expiry(int argc, wdparm_t arg, ...)
}
/****************************************************************************
* Function: dm9x_phymode
* Name: dm9x_phymode
*
* Description:
* Configure the PHY operating mode
@@ -1478,7 +1478,7 @@ static inline void dm9x_phymode(struct dm9x_driver_s *priv)
}
/****************************************************************************
* Function: dm9x_ifup
* Name: dm9x_ifup
*
* Description:
* NuttX Callback: Bring up the DM90x0 interface when an IP address is
@@ -1545,7 +1545,7 @@ static int dm9x_ifup(struct net_driver_s *dev)
}
/****************************************************************************
* Function: dm9x_ifdown
* Name: dm9x_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -1591,7 +1591,7 @@ static int dm9x_ifdown(struct net_driver_s *dev)
}
/****************************************************************************
* Function: dm9x_txavail_work
* Name: dm9x_txavail_work
*
* Description:
* Perform an out-of-cycle poll on the worker thread.
@@ -1635,7 +1635,7 @@ static void dm9x_txavail_work(FAR void *arg)
}
/****************************************************************************
* Function: dm9x_txavail
* Name: dm9x_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -1673,7 +1673,7 @@ static int dm9x_txavail(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: dm9x_addmac
* Name: dm9x_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -1703,7 +1703,7 @@ static int dm9x_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: dm9x_rmmac
* Name: dm9x_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -1733,7 +1733,7 @@ static int dm9x_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: dm9x_bringup
* Name: dm9x_bringup
*
* Description:
* Initialize the dm90x0 chip
@@ -1829,7 +1829,7 @@ static void dm9x_bringup(struct dm9x_driver_s *priv)
}
/****************************************************************************
* Function: dm9x_reset
* Name: dm9x_reset
*
* Description:
* Stop, reset, re-initialize, and restart the DM90x0 chip and driver. At
@@ -1886,7 +1886,7 @@ static void dm9x_reset(struct dm9x_driver_s *priv)
****************************************************************************/
/****************************************************************************
* Function: dm9x_initialize
* Name: dm9x_initialize
*
* Description:
* Initialize the DM90x0 driver
+39 -39
View File
@@ -358,7 +358,7 @@ static int enc_reset(FAR struct enc_driver_s *priv);
****************************************************************************/
/****************************************************************************
* Function: enc_configspi
* Name: enc_configspi
*
* Description:
* Configure the SPI for use with the ENC28J60
@@ -384,7 +384,7 @@ static inline void enc_configspi(FAR struct spi_dev_s *spi)
}
/****************************************************************************
* Function: enc_lock
* Name: enc_lock
*
* Description:
* Select the SPI, locking and re-configuring if necessary
@@ -418,7 +418,7 @@ static void enc_lock(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_unlock
* Name: enc_unlock
*
* Description:
* De-select the SPI
@@ -441,7 +441,7 @@ static inline void enc_unlock(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_rdgreg2
* Name: enc_rdgreg2
*
* Description:
* Read a global register (EIE, EIR, ESTAT, ECON2, or ECON1). The cmd
@@ -484,7 +484,7 @@ static uint8_t enc_rdgreg2(FAR struct enc_driver_s *priv, uint8_t cmd)
}
/****************************************************************************
* Function: enc_wrgreg2
* Name: enc_wrgreg2
*
* Description:
* Write to a global register (EIE, EIR, ESTAT, ECON2, or ECON1). The cmd
@@ -525,7 +525,7 @@ static void enc_wrgreg2(FAR struct enc_driver_s *priv, uint8_t cmd,
}
/****************************************************************************
* Function: enc_src
* Name: enc_src
*
* Description:
* Send the single byte system reset command (SRC).
@@ -579,7 +579,7 @@ static inline void enc_src(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_setbank
* Name: enc_setbank
*
* Description:
* Set the bank for these next control register access.
@@ -622,7 +622,7 @@ static void enc_setbank(FAR struct enc_driver_s *priv, uint8_t bank)
}
/****************************************************************************
* Function: enc_rdbreg
* Name: enc_rdbreg
*
* Description:
* Read from a banked control register using the RCR command.
@@ -677,7 +677,7 @@ static uint8_t enc_rdbreg(FAR struct enc_driver_s *priv, uint8_t ctrlreg)
}
/****************************************************************************
* Function: enc_wrbreg
* Name: enc_wrbreg
*
* Description:
* Write to a banked control register using the WCR command. Unlike
@@ -723,7 +723,7 @@ static void enc_wrbreg(FAR struct enc_driver_s *priv, uint8_t ctrlreg,
}
/****************************************************************************
* Function: enc_waitbreg
* Name: enc_waitbreg
*
* Description:
* Wait until banked register bit(s) take a specific value (or a timeout
@@ -764,7 +764,7 @@ static int enc_waitbreg(FAR struct enc_driver_s *priv, uint8_t ctrlreg,
}
/****************************************************************************
* Function: enc_txdump enc_rxdump
* Name: enc_txdump enc_rxdump
*
* Description:
* Dump registers associated with receiving or sending packets.
@@ -836,7 +836,7 @@ static void enc_txdump(FAR struct enc_driver_s *priv)
#endif
/****************************************************************************
* Function: enc_rdbuffer
* Name: enc_rdbuffer
*
* Description:
* Read a buffer of data.
@@ -878,7 +878,7 @@ static void enc_rdbuffer(FAR struct enc_driver_s *priv, FAR uint8_t *buffer,
}
/****************************************************************************
* Function: enc_wrbuffer
* Name: enc_wrbuffer
*
* Description:
* Write a buffer of data.
@@ -961,7 +961,7 @@ static inline void enc_wrbuffer(FAR struct enc_driver_s *priv,
}
/****************************************************************************
* Function: enc_rdphy
* Name: enc_rdphy
*
* Description:
* Read 16-bits of PHY data.
@@ -1022,7 +1022,7 @@ static uint16_t enc_rdphy(FAR struct enc_driver_s *priv, uint8_t phyaddr)
}
/****************************************************************************
* Function: enc_wrphy
* Name: enc_wrphy
*
* Description:
* write 16-bits of PHY data.
@@ -1075,7 +1075,7 @@ static void enc_wrphy(FAR struct enc_driver_s *priv, uint8_t phyaddr,
}
/****************************************************************************
* Function: enc_transmit
* Name: enc_transmit
*
* Description:
* Start hardware transmission. Called either from:
@@ -1159,7 +1159,7 @@ static int enc_transmit(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_txpoll
* Name: enc_txpoll
*
* Description:
* The transmitter is available, check if the network has any outgoing packets ready
@@ -1230,7 +1230,7 @@ static int enc_txpoll(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_linkstatus
* Name: enc_linkstatus
*
* Description:
* The current link status can be obtained from the PHSTAT1.LLSTAT or
@@ -1256,7 +1256,7 @@ static void enc_linkstatus(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_txif
* Name: enc_txif
*
* Description:
* An TXIF interrupt was received indicating that the last TX packet(s) is
@@ -1293,7 +1293,7 @@ static void enc_txif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_txerif
* Name: enc_txerif
*
* Description:
* An TXERIF interrupt was received indicating that a TX abort has occurred.
@@ -1336,7 +1336,7 @@ static void enc_txerif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_rxerif
* Name: enc_rxerif
*
* Description:
* An RXERIF interrupt was received indicating that the last TX packet(s) is
@@ -1358,7 +1358,7 @@ static void enc_rxerif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_rxdispatch
* Name: enc_rxdispatch
*
* Description:
* Give the newly received packet to the network.
@@ -1489,7 +1489,7 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_pktif
* Name: enc_pktif
*
* Description:
* An interrupt was received indicating the availability of a new RX packet
@@ -1595,7 +1595,7 @@ static void enc_pktif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_irqworker
* Name: enc_irqworker
*
* Description:
* Perform interrupt handling logic outside of the interrupt handler (on
@@ -1815,7 +1815,7 @@ static void enc_irqworker(FAR void *arg)
}
/****************************************************************************
* Function: enc_interrupt
* Name: enc_interrupt
*
* Description:
* Hardware interrupt handler
@@ -1854,7 +1854,7 @@ static int enc_interrupt(int irq, FAR void *context, FAR void *arg)
}
/****************************************************************************
* Function: enc_toworker
* Name: enc_toworker
*
* Description:
* Our TX watchdog timed out. This is the worker thread continuation of
@@ -1906,7 +1906,7 @@ static void enc_toworker(FAR void *arg)
}
/****************************************************************************
* Function: enc_txtimeout
* Name: enc_txtimeout
*
* Description:
* Our TX watchdog timed out. Called from the timer interrupt handler.
@@ -1947,7 +1947,7 @@ static void enc_txtimeout(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: enc_pollworker
* Name: enc_pollworker
*
* Description:
* Periodic timer handler continuation.
@@ -2002,7 +2002,7 @@ static void enc_pollworker(FAR void *arg)
}
/****************************************************************************
* Function: enc_polltimer
* Name: enc_polltimer
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -2042,7 +2042,7 @@ static void enc_polltimer(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: enc_ifup
* Name: enc_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -2114,7 +2114,7 @@ static int enc_ifup(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_ifdown
* Name: enc_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -2168,7 +2168,7 @@ static int enc_ifdown(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_txavail
* Name: enc_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -2222,7 +2222,7 @@ static int enc_txavail(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_addmac
* Name: enc_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -2260,7 +2260,7 @@ static int enc_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: enc_rmmac
* Name: enc_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -2298,7 +2298,7 @@ static int enc_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: enc_pwrsave
* Name: enc_pwrsave
*
* Description:
* The ENC28J60 may be commanded to power-down via the SPI interface.
@@ -2360,7 +2360,7 @@ static void enc_pwrsave(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_pwrfull
* Name: enc_pwrfull
*
* Description:
* When normal operation is desired, the host controller must perform
@@ -2412,7 +2412,7 @@ static void enc_pwrfull(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_setmacaddr
* Name: enc_setmacaddr
*
* Description:
* Set the MAC address to the configured value. This is done after ifup
@@ -2449,7 +2449,7 @@ static void enc_setmacaddr(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_reset
* Name: enc_reset
*
* Description:
* Stop, reset, re-initialize, and restart the ENC28J60. This is done
@@ -2588,7 +2588,7 @@ static int enc_reset(FAR struct enc_driver_s *priv)
****************************************************************************/
/****************************************************************************
* Function: enc_initialize
* Name: enc_initialize
*
* Description:
* Initialize the Ethernet driver. The ENC28J60 device is assumed to be
+44 -44
View File
@@ -378,7 +378,7 @@ static int enc_reset(FAR struct enc_driver_s *priv);
****************************************************************************/
/****************************************************************************
* Function: enc_lock
* Name: enc_lock
*
* Description:
* Select the SPI, locking and re-configuring if necessary
@@ -412,7 +412,7 @@ static void enc_lock(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_unlock
* Name: enc_unlock
*
* Description:
* De-select the SPI
@@ -435,7 +435,7 @@ static inline void enc_unlock(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_cmd
* Name: enc_cmd
*
* Description:
* Execute two byte command.
@@ -471,7 +471,7 @@ static void enc_cmd(FAR struct enc_driver_s *priv, uint8_t cmd, uint16_t arg)
}
/****************************************************************************
* Function: enc_setethrst
* Name: enc_setethrst
*
* Description:
* Issues System Reset by setting ETHRST (ECON2<4>)
@@ -507,7 +507,7 @@ static inline void enc_setethrst(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_setbank
* Name: enc_setbank
*
* Description:
* Set the bank for the next control register access.
@@ -547,7 +547,7 @@ static void enc_setbank(FAR struct enc_driver_s *priv, uint8_t bank)
}
/****************************************************************************
* Function: enc_rdreg
* Name: enc_rdreg
*
* Description:
* Read one word from a control register using the RCR command.
@@ -587,7 +587,7 @@ static uint16_t enc_rdreg(FAR struct enc_driver_s *priv, uint16_t ctrlreg)
}
/****************************************************************************
* Function: enc_wrreg
* Name: enc_wrreg
*
* Description:
* Write one word to a control register using the WCR command.
@@ -623,7 +623,7 @@ static void enc_wrreg(FAR struct enc_driver_s *priv, uint16_t ctrlreg,
}
/****************************************************************************
* Function: enc_waitbreg
* Name: enc_waitbreg
*
* Description:
* Wait until banked register bit(s) take a specific value (or a timeout
@@ -664,7 +664,7 @@ static int enc_waitreg(FAR struct enc_driver_s *priv, uint16_t ctrlreg,
}
/****************************************************************************
* Function: enc_bfs
* Name: enc_bfs
*
* Description:
* Bit Field Set.
@@ -709,7 +709,7 @@ static void enc_bfs(FAR struct enc_driver_s *priv, uint16_t ctrlreg,
}
/****************************************************************************
* Function: enc_bfc
* Name: enc_bfc
*
* Description:
* Bit Field Clear.
@@ -754,7 +754,7 @@ static void enc_bfc(FAR struct enc_driver_s *priv, uint16_t ctrlreg,
}
/****************************************************************************
* Function: enc_txdump enc_rxdump
* Name: enc_txdump enc_rxdump
*
* Description:
* Dump registers associated with receiving or sending packets.
@@ -826,7 +826,7 @@ static void enc_txdump(FAR struct enc_driver_s *priv)
#endif
/****************************************************************************
* Function: enc_rdbuffer
* Name: enc_rdbuffer
*
* Description:
* Read a buffer of data from RX Data Buffer.
@@ -868,7 +868,7 @@ static void enc_rdbuffer(FAR struct enc_driver_s *priv, FAR uint8_t *buffer,
}
/****************************************************************************
* Function: enc_wrbuffer
* Name: enc_wrbuffer
*
* Description:
* Write a buffer of data.
@@ -901,7 +901,7 @@ static inline void enc_wrbuffer(FAR struct enc_driver_s *priv,
}
/****************************************************************************
* Function: enc_rdphy
* Name: enc_rdphy
*
* Description:
* Read 16-bits of PHY data.
@@ -961,7 +961,7 @@ static uint16_t enc_rdphy(FAR struct enc_driver_s *priv, uint8_t phyaddr)
}
/****************************************************************************
* Function: enc_wrphy
* Name: enc_wrphy
*
* Description:
* write 16-bits of PHY data.
@@ -1009,7 +1009,7 @@ static void enc_wrphy(FAR struct enc_driver_s *priv, uint8_t phyaddr,
}
/****************************************************************************
* Function: enc_transmit
* Name: enc_transmit
*
* Description:
* Start hardware transmission. Called either from:
@@ -1075,7 +1075,7 @@ static int enc_transmit(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_txenqueue
* Name: enc_txenqueue
*
* Description:
* Write packet from d_buf to the enc's SRAM if a free descriptor is available.
@@ -1143,7 +1143,7 @@ static int enc_txenqueue(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_txpoll
* Name: enc_txpoll
*
* Description:
* Enqueues network packets if available.
@@ -1212,7 +1212,7 @@ static int enc_txpoll(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_linkstatus
* Name: enc_linkstatus
*
* Description:
* The current link status can be obtained from the PHSTAT1.LLSTAT or
@@ -1268,7 +1268,7 @@ static void enc_linkstatus(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_txif
* Name: enc_txif
*
* Description:
* An TXIF interrupt was received indicating that the last TX packet(s) is
@@ -1308,7 +1308,7 @@ static void enc_txif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_rxldpkt
* Name: enc_rxldpkt
*
* Description:
* Load packet from the enc's RX buffer to the driver d_buf.
@@ -1348,7 +1348,7 @@ static void enc_rxldpkt(FAR struct enc_driver_s *priv,
}
/****************************************************************************
* Function: enc_rxgetdescr
* Name: enc_rxgetdescr
*
* Description:
* Check for a free descriptor in the free list. If no free descriptor is
@@ -1380,7 +1380,7 @@ static struct enc_descr_s *enc_rxgetdescr(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_rxrmpkt
* Name: enc_rxrmpkt
*
* Description:
* Remove packet from the RX queue and free the block of memory in the enc's
@@ -1439,7 +1439,7 @@ static void enc_rxrmpkt(FAR struct enc_driver_s *priv, FAR struct enc_descr_s *d
}
/****************************************************************************
* Function: enc_rxdispatch
* Name: enc_rxdispatch
*
* Description:
* Give the newly received packet to the network.
@@ -1620,7 +1620,7 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_pktif
* Name: enc_pktif
*
* Description:
* An interrupt was received indicating the availability of a new RX packet
@@ -1741,7 +1741,7 @@ static void enc_pktif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_rxabtif
* Name: enc_rxabtif
*
* Description:
* An interrupt was received indicating the abortion of an RX packet
@@ -1807,7 +1807,7 @@ static void enc_rxabtif(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_irqworker
* Name: enc_irqworker
*
* Description:
* Perform interrupt handling logic outside of the interrupt handler (on
@@ -1980,7 +1980,7 @@ static void enc_irqworker(FAR void *arg)
}
/****************************************************************************
* Function: enc_interrupt
* Name: enc_interrupt
*
* Description:
* Hardware interrupt handler
@@ -2019,7 +2019,7 @@ static int enc_interrupt(int irq, FAR void *context)
}
/****************************************************************************
* Function: enc_toworker
* Name: enc_toworker
*
* Description:
* Our TX watchdog timed out. This is the worker thread continuation of
@@ -2071,7 +2071,7 @@ static void enc_toworker(FAR void *arg)
}
/****************************************************************************
* Function: enc_txtimeout
* Name: enc_txtimeout
*
* Description:
* Our TX watchdog timed out. Called from the timer interrupt handler.
@@ -2112,7 +2112,7 @@ static void enc_txtimeout(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: enc_pollworker
* Name: enc_pollworker
*
* Description:
* Periodic timer handler continuation.
@@ -2166,7 +2166,7 @@ static void enc_pollworker(FAR void *arg)
}
/****************************************************************************
* Function: enc_polltimer
* Name: enc_polltimer
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -2206,7 +2206,7 @@ static void enc_polltimer(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: enc_ifup
* Name: enc_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -2282,7 +2282,7 @@ static int enc_ifup(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_ifdown
* Name: enc_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -2337,7 +2337,7 @@ static int enc_ifdown(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_txavail
* Name: enc_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -2392,7 +2392,7 @@ static int enc_txavail(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_rxavail
* Name: enc_rxavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -2424,7 +2424,7 @@ static int enc_rxavail(struct net_driver_s *dev)
}
/****************************************************************************
* Function: enc_addmac
* Name: enc_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -2462,7 +2462,7 @@ static int enc_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: enc_rmmac
* Name: enc_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -2500,7 +2500,7 @@ static int enc_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: enc_pwrsave
* Name: enc_pwrsave
*
* Description:
* The ENCX24J600 may be placed in Power-Down mode through the command
@@ -2572,7 +2572,7 @@ static void enc_pwrsave(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_ldmacaddr
* Name: enc_ldmacaddr
*
* Description:
* Load the MAC address from the ENCX24j600 and write it to the device
@@ -2609,7 +2609,7 @@ static void enc_ldmacaddr(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_setmacaddr
* Name: enc_setmacaddr
*
* Description:
* Set the MAC address to the configured value. This is done after ifup
@@ -2653,7 +2653,7 @@ static void enc_setmacaddr(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_resetbuffers
* Name: enc_resetbuffers
*
* Description:
* Initializes the RX/TX queues and configures the enc's RX/TX buffers.
@@ -2703,7 +2703,7 @@ static void enc_resetbuffers(FAR struct enc_driver_s *priv)
}
/****************************************************************************
* Function: enc_reset
* Name: enc_reset
*
* Description:
* Stop, reset, re-initialize, and restart the ENCX24J600. This is done
@@ -2822,7 +2822,7 @@ static int enc_reset(FAR struct enc_driver_s *priv)
****************************************************************************/
/****************************************************************************
* Function: enc_initialize
* Name: enc_initialize
*
* Description:
* Initialize the Ethernet driver. The ENCX24J600 device is assumed to be
+22 -22
View File
@@ -244,7 +244,7 @@ static void ftmac100_ipv6multicast(FAR struct ftmac100_driver_s *priv);
****************************************************************************/
/****************************************************************************
* Function: ftmac100_transmit
* Name: ftmac100_transmit
*
* Description:
* Start hardware transmission. Called either from the txdone interrupt
@@ -331,7 +331,7 @@ static int ftmac100_transmit(FAR struct ftmac100_driver_s *priv)
}
/****************************************************************************
* Function: ftmac100_txpoll
* Name: ftmac100_txpoll
*
* Description:
* The transmitter is available, check if the network has any outgoing packets
@@ -405,7 +405,7 @@ static int ftmac100_txpoll(struct net_driver_s *dev)
}
/****************************************************************************
* Function: ftmac100_reset
* Name: ftmac100_reset
*
* Description:
* Do the HW reset
@@ -434,7 +434,7 @@ static void ftmac100_reset(FAR struct ftmac100_driver_s *priv)
}
/****************************************************************************
* Function: ftmac100_init
* Name: ftmac100_init
*
* Description:
* Perform HW initialization
@@ -542,7 +542,7 @@ static void ftmac100_init(FAR struct ftmac100_driver_s *priv)
}
/****************************************************************************
* Function: ftmac100_mdio_read
* Name: ftmac100_mdio_read
*
* Description:
* Read MII registers
@@ -583,7 +583,7 @@ static uint32_t ftmac100_mdio_read(FAR struct ftmac100_register_s *iobase, int r
}
/****************************************************************************
* Function: ftmac100_set_mac
* Name: ftmac100_set_mac
*
* Description:
* Set the MAC address
@@ -613,7 +613,7 @@ static void ftmac100_set_mac(FAR struct ftmac100_driver_s *priv,
}
/****************************************************************************
* Function: ftmac100_receive
* Name: ftmac100_receive
*
* Description:
* An interrupt was received indicating the availability of a new RX packet
@@ -787,7 +787,7 @@ static void ftmac100_receive(FAR struct ftmac100_driver_s *priv)
}
/****************************************************************************
* Function: ftmac100_txdone
* Name: ftmac100_txdone
*
* Description:
* An interrupt was received indicating that the last TX packet(s) is done
@@ -850,7 +850,7 @@ static void ftmac100_txdone(FAR struct ftmac100_driver_s *priv)
}
/****************************************************************************
* Function: ftmac100_interrupt_work
* Name: ftmac100_interrupt_work
*
* Description:
* Perform interrupt related work from the worker thread
@@ -954,7 +954,7 @@ out:
}
/****************************************************************************
* Function: ftmac100_interrupt
* Name: ftmac100_interrupt
*
* Description:
* Hardware interrupt handler
@@ -1009,7 +1009,7 @@ static int ftmac100_interrupt(int irq, FAR void *context, FAR void *arg)
}
/****************************************************************************
* Function: ftmac100_txtimeout_work
* Name: ftmac100_txtimeout_work
*
* Description:
* Perform TX timeout related work from the worker thread
@@ -1042,7 +1042,7 @@ static void ftmac100_txtimeout_work(FAR void *arg)
}
/****************************************************************************
* Function: ftmac100_txtimeout_expiry
* Name: ftmac100_txtimeout_expiry
*
* Description:
* Our TX watchdog timed out. Called from the timer interrupt handler.
@@ -1077,7 +1077,7 @@ static void ftmac100_txtimeout_expiry(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: ftmac100_poll_work
* Name: ftmac100_poll_work
*
* Description:
* Perform periodic polling from the worker thread
@@ -1120,7 +1120,7 @@ static void ftmac100_poll_work(FAR void *arg)
}
/****************************************************************************
* Function: ftmac100_poll_expiry
* Name: ftmac100_poll_expiry
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -1147,7 +1147,7 @@ static void ftmac100_poll_expiry(int argc, uint32_t arg, ...)
}
/****************************************************************************
* Function: ftmac100_ifup
* Name: ftmac100_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -1208,7 +1208,7 @@ static int ftmac100_ifup(struct net_driver_s *dev)
}
/****************************************************************************
* Function: ftmac100_ifdown
* Name: ftmac100_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -1254,7 +1254,7 @@ static int ftmac100_ifdown(struct net_driver_s *dev)
}
/****************************************************************************
* Function: ftmac100_txavail_work
* Name: ftmac100_txavail_work
*
* Description:
* Perform an out-of-cycle poll on the worker thread.
@@ -1293,7 +1293,7 @@ static void ftmac100_txavail_work(FAR void *arg)
}
/****************************************************************************
* Function: ftmac100_txavail
* Name: ftmac100_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -1331,7 +1331,7 @@ static int ftmac100_txavail(struct net_driver_s *dev)
}
/****************************************************************************
* Function: ftmac100_addmac
* Name: ftmac100_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -1385,7 +1385,7 @@ static int ftmac100_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: ftmac100_rmmac
* Name: ftmac100_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -1430,7 +1430,7 @@ static int ftmac100_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: ftmac100_ipv6multicast
* Name: ftmac100_ipv6multicast
*
* Description:
* Configure the IPv6 multicast MAC address.
@@ -1507,7 +1507,7 @@ static void ftmac100_ipv6multicast(FAR struct ftmac100_driver_s *priv)
****************************************************************************/
/****************************************************************************
* Function: ftmac100_initialize
* Name: ftmac100_initialize
*
* Description:
* Initialize the Ethernet controller and driver
+10 -10
View File
@@ -145,7 +145,7 @@ static int lo_rmmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac);
****************************************************************************/
/****************************************************************************
* Function: lo_txpoll
* Name: lo_txpoll
*
* Description:
* Check if the network has any outgoing packets ready to send. This is
@@ -219,7 +219,7 @@ static int lo_txpoll(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: lo_poll_work
* Name: lo_poll_work
*
* Description:
* Perform periodic polling from the worker thread
@@ -262,7 +262,7 @@ static void lo_poll_work(FAR void *arg)
}
/****************************************************************************
* Function: lo_poll_expiry
* Name: lo_poll_expiry
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -289,7 +289,7 @@ static void lo_poll_expiry(int argc, wdparm_t arg, ...)
}
/****************************************************************************
* Function: lo_ifup
* Name: lo_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -331,7 +331,7 @@ static int lo_ifup(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: lo_ifdown
* Name: lo_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -361,7 +361,7 @@ static int lo_ifdown(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: lo_txavail_work
* Name: lo_txavail_work
*
* Description:
* Perform an out-of-cycle poll on the worker thread.
@@ -400,7 +400,7 @@ static void lo_txavail_work(FAR void *arg)
}
/****************************************************************************
* Function: lo_txavail
* Name: lo_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -438,7 +438,7 @@ static int lo_txavail(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: lo_addmac
* Name: lo_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -465,7 +465,7 @@ static int lo_addmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: lo_rmmac
* Name: lo_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -496,7 +496,7 @@ static int lo_rmmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
****************************************************************************/
/****************************************************************************
* Function: localhost_initialize
* Name: localhost_initialize
*
* Description:
* Initialize the Ethernet controller and driver
+2 -2
View File
@@ -275,7 +275,7 @@ static int phy_handler(int irq, FAR void *context, FAR void *arg)
****************************************************************************/
/****************************************************************************
* Function: phy_notify_subscribe
* Name: phy_notify_subscribe
*
* Description:
* Setup up to deliver signals to the task identified by 'pid' when
@@ -362,7 +362,7 @@ int phy_notify_subscribe(FAR const char *intf, pid_t pid, int signo,
}
/****************************************************************************
* Function: phy_notify_unsubscribe
* Name: phy_notify_unsubscribe
*
* Description:
* Stop the deliver of signals for events from the PHY associated with
+14 -14
View File
@@ -214,7 +214,7 @@ static void slip_semtake(FAR struct slip_driver_s *priv)
#define slip_semgive(p) sem_post(&(p)->waitsem);
/****************************************************************************
* Function: slip_write
* Name: slip_write
*
* Description:
* Just an inline wrapper around fwrite with error checking.
@@ -238,7 +238,7 @@ static inline void slip_write(FAR struct slip_driver_s *priv,
}
/****************************************************************************
* Function: slip_putc
* Name: slip_putc
*
* Description:
* Just an inline wrapper around putc with error checking.
@@ -256,7 +256,7 @@ static inline void slip_putc(FAR struct slip_driver_s *priv, int ch)
}
/****************************************************************************
* Function: slip_transmit
* Name: slip_transmit
*
* Description:
* Start hardware transmission. Called either from the txdone interrupt
@@ -368,7 +368,7 @@ static int slip_transmit(FAR struct slip_driver_s *priv)
}
/****************************************************************************
* Function: slip_txpoll
* Name: slip_txpoll
*
* Description:
* Check if the network has any outgoing packets ready to send. This is a
@@ -409,7 +409,7 @@ static int slip_txpoll(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: slip_txtask
* Name: slip_txtask
*
* Description:
* Polling and transmission is performed on tx thread.
@@ -499,7 +499,7 @@ static void slip_txtask(int argc, FAR char *argv[])
}
/****************************************************************************
* Function: slip_getc
* Name: slip_getc
*
* Description:
* Get one byte from the serial input.
@@ -525,7 +525,7 @@ static inline int slip_getc(FAR struct slip_driver_s *priv)
}
/****************************************************************************
* Function: slip_receive
* Name: slip_receive
*
* Description:
* Read a packet from the serial input
@@ -630,7 +630,7 @@ static inline void slip_receive(FAR struct slip_driver_s *priv)
}
/****************************************************************************
* Function: slip_rxtask
* Name: slip_rxtask
*
* Description:
* Wait for incoming data.
@@ -751,7 +751,7 @@ static int slip_rxtask(int argc, FAR char *argv[])
}
/****************************************************************************
* Function: slip_ifup
* Name: slip_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -782,7 +782,7 @@ static int slip_ifup(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: slip_ifdown
* Name: slip_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -808,7 +808,7 @@ static int slip_ifdown(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: slip_txavail
* Name: slip_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -841,7 +841,7 @@ static int slip_txavail(FAR struct net_driver_s *dev)
}
/****************************************************************************
* Function: slip_addmac
* Name: slip_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -870,7 +870,7 @@ static int slip_addmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: slip_rmmac
* Name: slip_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -903,7 +903,7 @@ static int slip_rmmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
****************************************************************************/
/****************************************************************************
* Function: slip_initialize
* Name: slip_initialize
*
* Description:
* Instantiate a SLIP network interface.
+14 -14
View File
@@ -304,7 +304,7 @@ static void tun_pollnotify(FAR struct tun_device_s *priv, pollevent_t eventset)
#endif
/****************************************************************************
* Function: tun_transmit
* Name: tun_transmit
*
* Description:
* Start hardware transmission. Called either from the txdone interrupt
@@ -343,7 +343,7 @@ static int tun_fd_transmit(FAR struct tun_device_s *priv)
}
/****************************************************************************
* Function: tun_txpoll
* Name: tun_txpoll
*
* Description:
* The transmitter is available, check if the network has any outgoing packets
@@ -393,7 +393,7 @@ static int tun_txpoll(struct net_driver_s *dev)
}
/****************************************************************************
* Function: tun_receive
* Name: tun_receive
*
* Description:
* An interrupt was received indicating the availability of a new RX packet
@@ -495,7 +495,7 @@ static void tun_net_receive(FAR struct tun_device_s *priv)
}
/****************************************************************************
* Function: tun_txdone
* Name: tun_txdone
*
* Description:
* An interrupt was received indicating that the last TX packet(s) is done
@@ -524,7 +524,7 @@ static void tun_txdone(FAR struct tun_device_s *priv)
}
/****************************************************************************
* Function: tun_poll_work
* Name: tun_poll_work
*
* Description:
* Perform periodic polling from the worker thread
@@ -570,7 +570,7 @@ static void tun_poll_work(FAR void *arg)
}
/****************************************************************************
* Function: tun_poll_expiry
* Name: tun_poll_expiry
*
* Description:
* Periodic timer handler. Called from the timer interrupt handler.
@@ -597,7 +597,7 @@ static void tun_poll_expiry(int argc, wdparm_t arg, ...)
}
/****************************************************************************
* Function: tun_ifup
* Name: tun_ifup
*
* Description:
* NuttX Callback: Bring up the Ethernet interface when an IP address is
@@ -649,7 +649,7 @@ static int tun_ifup(struct net_driver_s *dev)
}
/****************************************************************************
* Function: tun_ifdown
* Name: tun_ifdown
*
* Description:
* NuttX Callback: Stop the interface.
@@ -682,7 +682,7 @@ static int tun_ifdown(struct net_driver_s *dev)
}
/****************************************************************************
* Function: tun_txavail
* Name: tun_txavail
*
* Description:
* Driver callback invoked when new TX data is available. This is a
@@ -731,7 +731,7 @@ static int tun_txavail(struct net_driver_s *dev)
}
/****************************************************************************
* Function: tun_addmac
* Name: tun_addmac
*
* Description:
* NuttX Callback: Add the specified MAC address to the hardware multicast
@@ -758,7 +758,7 @@ static int tun_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: tun_rmmac
* Name: tun_rmmac
*
* Description:
* NuttX Callback: Remove the specified MAC address from the hardware multicast
@@ -785,7 +785,7 @@ static int tun_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
#endif
/****************************************************************************
* Function: tun_ipv6multicast
* Name: tun_ipv6multicast
*
* Description:
* Configure the IPv6 multicast MAC address.
@@ -807,7 +807,7 @@ static void tun_ipv6multicast(FAR struct tun_device_s *priv)
#endif /* CONFIG_NET_ICMPv6 */
/****************************************************************************
* Function: tun_dev_init
* Name: tun_dev_init
*
* Description:
* Initialize the TUN device
@@ -1228,7 +1228,7 @@ static int tun_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
****************************************************************************/
/****************************************************************************
* Function: tun_initialize
* Name: tun_initialize
*
* Description:
* Instantiate a SLIP network interface.