mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
x86_64_netinitialize: support CONFIG_NETDEV_LATEINIT for x86_64
Now x86_64 can use config CONFIG_NETDEV_LATEINIT Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
ca22e95577
commit
415f13372d
3 changed files with 4 additions and 2 deletions
|
@ -117,7 +117,9 @@ void up_initialize(void)
|
|||
|
||||
/* Initialize the network */
|
||||
|
||||
#ifndef CONFIG_NETDEV_LATEINIT
|
||||
x86_64_netinitialize();
|
||||
#endif
|
||||
|
||||
/* Initialize USB -- device and/or host */
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ void x86_64_timer_initialize(void);
|
|||
|
||||
/* Defined in board/x86_64_network.c */
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
|
||||
void x86_64_netinitialize(void);
|
||||
#else
|
||||
# define x86_64_netinitialize()
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
|
||||
void x86_64_netinitialize(void)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue