Netwoek: Ada a parameter to netdev_register() to indicate the link protocol supported by the driver. Use this value to replace some logic commited yesterday
This commit is contained in:
parent
025e36ba8c
commit
bf984b2b3a
@ -2156,7 +2156,7 @@ void up_netinitialize(void)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&g_c5471[0].c_dev);
|
||||
(void)netdev_register(&g_c5471[0].c_dev, NET_LL_ETHERNET);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NET */
|
||||
|
@ -1541,7 +1541,7 @@ int kinetis_netinitialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->dev);
|
||||
(void)netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -2587,7 +2587,7 @@ static inline int lpc17_ethinitialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->lp_dev);
|
||||
(void)netdev_register(&priv->lp_dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -3108,7 +3108,7 @@ void up_netinitialize(void)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
ret = netdev_register(&priv->dev);
|
||||
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
if (ret >= 0)
|
||||
{
|
||||
return;
|
||||
|
@ -3157,7 +3157,7 @@ int sam_emac_initialize(void)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
ret = netdev_register(&priv->dev);
|
||||
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
if (ret >= 0)
|
||||
{
|
||||
return ret;
|
||||
|
@ -3851,7 +3851,7 @@ int sam_emac_initialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
ret = netdev_register(&priv->dev);
|
||||
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
if (ret >= 0)
|
||||
{
|
||||
return ret;
|
||||
|
@ -3229,7 +3229,7 @@ int sam_gmac_initialize(void)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
ret = netdev_register(&priv->dev);
|
||||
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
if (ret >= 0)
|
||||
{
|
||||
return ret;
|
||||
|
@ -3610,7 +3610,7 @@ int stm32_ethinitialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->dev);
|
||||
(void)netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -1448,7 +1448,7 @@ static inline int tiva_ethinitialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->ld_dev);
|
||||
(void)netdev_register(&priv->ld_dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -685,7 +685,7 @@ int emac_initialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->d_dev);
|
||||
(void)netdev_register(&priv->d_dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -3143,7 +3143,7 @@ static inline int pic32mx_ethinitialize(int intf)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->pd_dev);
|
||||
(void)netdev_register(&priv->pd_dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ int netdriver_init(void)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&g_sim_dev);
|
||||
(void)netdev_register(&g_sim_dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -2148,7 +2148,7 @@ int up_netinitialize(void)
|
||||
|
||||
/* Register the device with the OS so that socket IOCTLs can be performed */
|
||||
|
||||
(void)netdev_register(&priv->dev);
|
||||
(void)netdev_register(&priv->dev, NET_LL_ETHERNET);
|
||||
return OK;
|
||||
|
||||
errout:
|
||||
|
Loading…
Reference in New Issue
Block a user