arch: Remove up_netinitialize
since this api change to xxx_netinitialize Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
7f32eaa13e
commit
90f8315432
@ -23,7 +23,7 @@ SocketCAN Device Drivers
|
|||||||
|
|
||||||
- **Initialization sequence is as follows**.
|
- **Initialization sequence is as follows**.
|
||||||
|
|
||||||
#. up_netinitialize(void) is called on startup of NuttX in this
|
#. xxx_netinitialize(void) is called on startup of NuttX in this
|
||||||
function you call your own init function to initialize your
|
function you call your own init function to initialize your
|
||||||
CAN driver
|
CAN driver
|
||||||
#. In your own init function you create the net_driver_s
|
#. In your own init function you create the net_driver_s
|
||||||
|
@ -70,10 +70,6 @@ extern FAR struct qspi_dev_s *stm32f7_qspi_initialize(int intf);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_netinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_STM32F7_SPI1) || defined(CONFIG_STM32F7_SPI2) || \
|
#if defined(CONFIG_STM32F7_SPI1) || defined(CONFIG_STM32F7_SPI2) || \
|
||||||
|
@ -50,8 +50,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NET
|
#ifdef CONFIG_NET
|
||||||
void up_netinitialize(void)
|
void x86_64_netinitialize(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ static void up_reset(const struct w5500_lower_s *lower, bool reset)
|
|||||||
* Name: arm_netinitialize
|
* Name: arm_netinitialize
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_netinitialize(void)
|
void riscv_netinitialize(void)
|
||||||
{
|
{
|
||||||
struct spi_dev_s *spi;
|
struct spi_dev_s *spi;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -963,10 +963,10 @@ menuconfig RNDIS
|
|||||||
- "Remote NDIS To USB Mapping"
|
- "Remote NDIS To USB Mapping"
|
||||||
|
|
||||||
This option may required CONFIG_NETDEV_LATEINIT=y otherwise, the
|
This option may required CONFIG_NETDEV_LATEINIT=y otherwise, the
|
||||||
power-up initialization may call the non-existent up_netinitialize().
|
power-up initialization may call the non-existent xxx_netinitialize().
|
||||||
This option is not automatically selected because it may be that
|
This option is not automatically selected because it may be that
|
||||||
you have an additional network device that requires the early
|
you have an additional network device that requires the early
|
||||||
up_netinitialize() call.
|
xxx_netinitialize() call.
|
||||||
|
|
||||||
if RNDIS
|
if RNDIS
|
||||||
|
|
||||||
@ -1102,10 +1102,10 @@ menuconfig NET_CDCECM
|
|||||||
Revision 1.2, February 9, 2007"
|
Revision 1.2, February 9, 2007"
|
||||||
|
|
||||||
This option may require CONFIG_NETDEV_LATEINIT=y, otherwise the
|
This option may require CONFIG_NETDEV_LATEINIT=y, otherwise the
|
||||||
power-up initialization may call the non-existent up_netinitialize().
|
power-up initialization may call the non-existent xxx_netinitialize().
|
||||||
This option is not automatically selected because it may be that
|
This option is not automatically selected because it may be that
|
||||||
you have an additional network device that requires the early
|
you have an additional network device that requires the early
|
||||||
up_netinitialize() call.
|
xxx_netinitialize() call.
|
||||||
|
|
||||||
if NET_CDCECM
|
if NET_CDCECM
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ config NETDEV_LATEINIT
|
|||||||
---help---
|
---help---
|
||||||
Normally, networking initialization occur in the later phase of the
|
Normally, networking initialization occur in the later phase of the
|
||||||
boot process in the function up_initialize() when it calls the
|
boot process in the function up_initialize() when it calls the
|
||||||
driver initialization function, up_netinitialize(). This
|
driver initialization function, xxx_netinitialize(). This
|
||||||
initialization occurs after a sufficient amount of the OS has been
|
initialization occurs after a sufficient amount of the OS has been
|
||||||
initialized so that driver registration can be performed, but
|
initialized so that driver registration can be performed, but
|
||||||
before the completion of OS initialization and before the first
|
before the completion of OS initialization and before the first
|
||||||
@ -289,15 +289,15 @@ config NETDEV_LATEINIT
|
|||||||
- If you are using SLIP or PPPD, then there will be no network
|
- If you are using SLIP or PPPD, then there will be no network
|
||||||
driver to be initialized,
|
driver to be initialized,
|
||||||
- Certain multi-network configurations where a simple call to
|
- Certain multi-network configurations where a simple call to
|
||||||
up_netinitialize() may be insufficient, and
|
xxx_netinitialize() may be insufficient, and
|
||||||
- Situations where there are other board-level hardware
|
- Situations where there are other board-level hardware
|
||||||
dependencies so that the hardware is not in an appropriate
|
dependencies so that the hardware is not in an appropriate
|
||||||
state for up_netinitialize() to be called.
|
state for xxx_netinitialize() to be called.
|
||||||
|
|
||||||
Examples of this latter situation include such things as network
|
Examples of this latter situation include such things as network
|
||||||
drivers that required some setup via an I2C I/O expander, or network
|
drivers that required some setup via an I2C I/O expander, or network
|
||||||
drivers that depend on USB, SPI, I2C, PCI, serial, or other
|
drivers that depend on USB, SPI, I2C, PCI, serial, or other
|
||||||
interfaces that may not be ready when up_netinitialize() is normally
|
interfaces that may not be ready when xxx_netinitialize() is normally
|
||||||
called.
|
called.
|
||||||
|
|
||||||
endmenu # Link layer support
|
endmenu # Link layer support
|
||||||
|
Loading…
Reference in New Issue
Block a user