tests: net: remove usage of device_pm_control_nop
device_pm_control_nop is now deprecated in favour of NULL. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
6aee84e747
commit
5899b8a190
35 changed files with 59 additions and 59 deletions
|
@ -270,7 +270,7 @@ static struct dummy_api net_6lo_if_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(net_6lo_test, "net_6lo_test",
|
||||
net_6lo_dev_init, device_pm_control_nop, NULL, NULL,
|
||||
net_6lo_dev_init, NULL, NULL, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_6lo_if_api, DUMMY_L2, NET_L2_GET_CTX_TYPE(DUMMY_L2), 127);
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ static struct dummy_api offload_if_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_OFFLOAD_INIT(net_offload, "net_offload",
|
||||
NULL, device_pm_control_nop,
|
||||
NULL, NULL,
|
||||
&offload_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&offload_if_api, 0);
|
||||
|
|
|
@ -301,7 +301,7 @@ static const struct dummy_api net_arp_if_api = {
|
|||
#endif
|
||||
|
||||
NET_DEVICE_INIT(net_arp_test, "net_arp_test",
|
||||
net_arp_dev_init, device_pm_control_nop,
|
||||
net_arp_dev_init, NULL,
|
||||
&net_arp_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_arp_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE, 127);
|
||||
|
|
|
@ -292,7 +292,7 @@ static int eth_init(const struct device *dev)
|
|||
|
||||
ETH_NET_DEVICE_INIT(eth1_offloading_disabled_test,
|
||||
"eth1_offloading_disabled_test",
|
||||
eth_init, device_pm_control_nop,
|
||||
eth_init, NULL,
|
||||
ð_context_offloading_disabled, NULL,
|
||||
CONFIG_ETH_INIT_PRIORITY,
|
||||
&api_funcs_offloading_disabled,
|
||||
|
@ -300,7 +300,7 @@ ETH_NET_DEVICE_INIT(eth1_offloading_disabled_test,
|
|||
|
||||
ETH_NET_DEVICE_INIT(eth0_offloading_enabled_test,
|
||||
"eth0_offloading_enabled_test",
|
||||
eth_init, device_pm_control_nop,
|
||||
eth_init, NULL,
|
||||
ð_context_offloading_enabled, NULL,
|
||||
CONFIG_ETH_INIT_PRIORITY,
|
||||
&api_funcs_offloading_enabled,
|
||||
|
|
|
@ -968,7 +968,7 @@ static struct dummy_api net_context_if_api = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT(net_context_test, "net_context_test",
|
||||
net_context_dev_init, device_pm_control_nop,
|
||||
net_context_dev_init, NULL,
|
||||
&net_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_context_if_api, _ETH_L2_LAYER,
|
||||
|
|
|
@ -380,7 +380,7 @@ static struct dummy_api net_dhcpv4_if_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(net_dhcpv4_test, "net_dhcpv4_test",
|
||||
net_dhcpv4_dev_init, device_pm_control_nop,
|
||||
net_dhcpv4_dev_init, NULL,
|
||||
&net_dhcpv4_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_dhcpv4_if_api, DUMMY_L2,
|
||||
|
|
|
@ -301,7 +301,7 @@ static int eth_fake_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
|
||||
ð_fake_data, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface1_test,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -183,7 +183,7 @@ static int eth_fake_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
|
||||
ð_fake_data, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ static struct dummy_api net_icmpv4_if_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(net_icmpv4_test, "net_icmpv4_test",
|
||||
net_icmpv4_dev_init, device_pm_control_nop,
|
||||
net_icmpv4_dev_init, NULL,
|
||||
&net_icmpv4_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_icmpv4_if_api, DUMMY_L2,
|
||||
|
|
|
@ -182,7 +182,7 @@ static struct dummy_api net_fragment_if_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(net_fragment_test, "net_fragment_test",
|
||||
net_fragment_dev_init, device_pm_control_nop, NULL, NULL,
|
||||
net_fragment_dev_init, NULL, NULL, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_fragment_if_api, DUMMY_L2,
|
||||
NET_L2_GET_CTX_TYPE(DUMMY_L2), 127);
|
||||
|
|
|
@ -127,7 +127,7 @@ static struct ieee802154_radio_api fake_radio_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(fake, "fake_ieee802154",
|
||||
fake_init, device_pm_control_nop, NULL, NULL,
|
||||
fake_init, NULL, NULL, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&fake_radio_api, IEEE802154_L2,
|
||||
NET_L2_GET_CTX_TYPE(IEEE802154_L2), 125);
|
||||
|
|
|
@ -150,7 +150,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface1_test,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -163,7 +163,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface2_test,
|
|||
"iface2",
|
||||
iface2,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface2_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -176,7 +176,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface3_test,
|
|||
"iface3",
|
||||
iface3,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface3_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -261,7 +261,7 @@ static int eth_fake_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
|
||||
ð_fake_data, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -154,14 +154,14 @@ static struct dummy_api net_test_if_api = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(net_addr_test1, "net_addr_test1", iface1,
|
||||
net_test_init, device_pm_control_nop,
|
||||
net_test_init, NULL,
|
||||
&net_test_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_test_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE,
|
||||
127);
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(net_addr_test2, "net_addr_test2", iface2,
|
||||
net_test_init, device_pm_control_nop,
|
||||
net_test_init, NULL,
|
||||
&net_test_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_test_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE,
|
||||
|
|
|
@ -288,7 +288,7 @@ static const struct ethernet_api net_test_if_api = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(ETHERNET_L2)
|
||||
|
||||
NET_DEVICE_INIT(eth_ipv6_net, "eth_ipv6_net",
|
||||
net_test_dev_init, device_pm_control_nop, &net_test_data, NULL,
|
||||
net_test_dev_init, NULL, &net_test_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_test_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE,
|
||||
127);
|
||||
|
@ -313,7 +313,7 @@ static const struct dummy_api net_dummy_if_api = {
|
|||
#define _DUMMY_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT(eth_ipv6_net_dummy, "eth_ipv6_net_dummy",
|
||||
net_test_dev_init, device_pm_control_nop, &net_dummy_data,
|
||||
net_test_dev_init, NULL, &net_dummy_data,
|
||||
NULL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_dummy_if_api, _DUMMY_L2_LAYER, _DUMMY_L2_CTX_TYPE,
|
||||
127);
|
||||
|
|
|
@ -1366,7 +1366,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface1_test,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -1379,7 +1379,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface2_test,
|
|||
"iface2",
|
||||
iface2,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface2_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
|
|
@ -133,7 +133,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface1_test,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
|
|
@ -188,7 +188,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface1_test,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
|
|
@ -91,7 +91,7 @@ static struct dummy_api fake_iface_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(net_event_test, "net_event_test",
|
||||
fake_dev_init, device_pm_control_nop,
|
||||
fake_dev_init, NULL,
|
||||
NULL, NULL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&fake_iface_api, DUMMY_L2, NET_L2_GET_CTX_TYPE(DUMMY_L2), 127);
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ static struct dummy_api net_test_if_api = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT(net_test_mld, "net_test_mld",
|
||||
net_test_dev_init, device_pm_control_nop, &net_test_data, NULL,
|
||||
net_test_dev_init, NULL, &net_test_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_test_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE,
|
||||
127);
|
||||
|
|
|
@ -74,7 +74,7 @@ static const struct dummy_api fake_dev_api = {
|
|||
#endif
|
||||
|
||||
NET_DEVICE_INIT(fake_dev, "fake_dev",
|
||||
fake_dev_init, device_pm_control_nop, NULL, NULL,
|
||||
fake_dev_init, NULL, NULL, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&fake_dev_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE,
|
||||
NET_ETH_MTU);
|
||||
|
|
|
@ -143,12 +143,12 @@ static int eth_fake_init(const struct device *dev)
|
|||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake1, "eth_fake1",
|
||||
eth_fake_init, device_pm_control_nop,
|
||||
eth_fake_init, NULL,
|
||||
ð_fake_data1, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake2, "eth_fake2",
|
||||
eth_fake_init, device_pm_control_nop,
|
||||
eth_fake_init, NULL,
|
||||
ð_fake_data2, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -157,15 +157,15 @@ static int eth_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth3_test, "eth3_test", eth_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth3_test, "eth3_test", eth_init, NULL,
|
||||
ð_context_3, NULL, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth2_test, "eth2_test", eth_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth2_test, "eth2_test", eth_init, NULL,
|
||||
ð_context_2, NULL, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth1_test, "eth1_test", eth_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth1_test, "eth1_test", eth_init, NULL,
|
||||
ð_context_1, NULL, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
|
@ -244,7 +244,7 @@ static int ptp_test_1_init(const struct device *port)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(ptp_clock_1, PTP_CLOCK_NAME, ptp_test_1_init,
|
||||
device_pm_control_nop, &ptp_test_1_context, NULL,
|
||||
NULL, &ptp_test_1_context, NULL,
|
||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY, &api);
|
||||
|
||||
static int ptp_test_2_init(const struct device *port)
|
||||
|
@ -260,7 +260,7 @@ static int ptp_test_2_init(const struct device *port)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(ptp_clock_2, PTP_CLOCK_NAME, ptp_test_2_init,
|
||||
device_pm_control_nop, &ptp_test_2_context, NULL,
|
||||
NULL, &ptp_test_2_context, NULL,
|
||||
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY, &api);
|
||||
|
||||
struct user_data {
|
||||
|
|
|
@ -218,14 +218,14 @@ static struct dummy_api net_route_if_api_peer = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(net_route_test, "net_route_test", host,
|
||||
net_route_dev_init, device_pm_control_nop,
|
||||
net_route_dev_init, NULL,
|
||||
&net_route_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_route_if_api, _ETH_L2_LAYER,
|
||||
_ETH_L2_CTX_TYPE, 127);
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(net_route_test_peer, "net_route_test_peer", peer,
|
||||
net_route_dev_init, device_pm_control_nop,
|
||||
net_route_dev_init, NULL,
|
||||
&net_route_data_peer, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_route_if_api_peer, _ETH_L2_LAYER,
|
||||
|
|
|
@ -267,21 +267,21 @@ static struct dummy_api net_route_mcast_if_api_3 = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(mcast_iface_1, "mcast_iface_1", iface_1,
|
||||
net_route_mcast_dev_init, device_pm_control_nop,
|
||||
net_route_mcast_dev_init, NULL,
|
||||
&net_route_data_if1, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_route_mcast_if_api_1, _ETH_L2_LAYER,
|
||||
_ETH_L2_CTX_TYPE, 127);
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(mcast_iface_2, "mcast_iface_2", iface_2,
|
||||
net_route_mcast_dev_init, device_pm_control_nop,
|
||||
net_route_mcast_dev_init, NULL,
|
||||
&net_route_data_if2, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_route_mcast_if_api_2, _ETH_L2_LAYER,
|
||||
_ETH_L2_CTX_TYPE, 127);
|
||||
|
||||
NET_DEVICE_INIT_INSTANCE(mcast_iface_3, "mcast_iface_3", iface_3,
|
||||
net_route_mcast_dev_init, device_pm_control_nop,
|
||||
net_route_mcast_dev_init, NULL,
|
||||
&net_route_data_if3, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_route_mcast_if_api_3, _ETH_L2_LAYER,
|
||||
|
|
|
@ -136,7 +136,7 @@ static struct dummy_api net_udp_if_api = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT(net_udp_test, "net_udp_test",
|
||||
net_udp_dev_init, device_pm_control_nop,
|
||||
net_udp_dev_init, NULL,
|
||||
&net_udp_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_udp_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE, 127);
|
||||
|
|
|
@ -82,12 +82,12 @@ static int eth_fake_init(const struct device *dev)
|
|||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake1, "eth_fake1", eth_fake_init,
|
||||
device_pm_control_nop, ð_fake_data1, NULL,
|
||||
NULL, ð_fake_data1, NULL,
|
||||
CONFIG_ETH_INIT_PRIORITY, ð_fake_api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake2, "eth_fake2", eth_fake_init,
|
||||
device_pm_control_nop, ð_fake_data2, NULL,
|
||||
NULL, ð_fake_data2, NULL,
|
||||
CONFIG_ETH_INIT_PRIORITY, ð_fake_api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -145,13 +145,13 @@ static int dummy_init(const struct device *dev)
|
|||
#define DEV2_NAME "dummy_2"
|
||||
|
||||
NET_DEVICE_INIT(dummy_1, DEV1_NAME, dummy_init,
|
||||
device_pm_control_nop, &dummy_data1, NULL,
|
||||
NULL, &dummy_data1, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dummy_api_funcs,
|
||||
DUMMY_L2, NET_L2_GET_CTX_TYPE(DUMMY_L2), 127);
|
||||
|
||||
|
||||
NET_DEVICE_INIT(dummy_2, DEV2_NAME, dummy_init,
|
||||
device_pm_control_nop, &dummy_data2, NULL,
|
||||
NULL, &dummy_data2, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dummy_api_funcs,
|
||||
DUMMY_L2, NET_L2_GET_CTX_TYPE(DUMMY_L2), 127);
|
||||
|
||||
|
|
|
@ -262,7 +262,7 @@ static int eth_fake_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
|
||||
ð_fake_data, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -1015,7 +1015,7 @@ static int eth_fake_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
|
||||
ð_fake_data, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_fake_api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ static struct dummy_api net_tcp_if_api = {
|
|||
};
|
||||
|
||||
NET_DEVICE_INIT(net_tcp_test, "net_tcp_test",
|
||||
net_tcp_dev_init, device_pm_control_nop,
|
||||
net_tcp_dev_init, NULL,
|
||||
&net_tcp_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_tcp_if_api, DUMMY_L2,
|
||||
|
|
|
@ -266,7 +266,7 @@ static int eth_init(const struct device *dev)
|
|||
* is quite unlikely that this would be done in real life but for testing
|
||||
* purposes create it here.
|
||||
*/
|
||||
NET_DEVICE_INIT(eth_test, "eth_test", eth_init, device_pm_control_nop,
|
||||
NET_DEVICE_INIT(eth_test, "eth_test", eth_init, NULL,
|
||||
ð_context, NULL, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
DUMMY_L2, NET_L2_GET_CTX_TYPE(DUMMY_L2),
|
||||
NET_ETH_MTU);
|
||||
|
|
|
@ -153,11 +153,11 @@ static int eth_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_test, "eth_test", eth_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_test, "eth_test", eth_init, NULL,
|
||||
ð_context, NULL, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_test2, "eth_test2", eth_init, device_pm_control_nop,
|
||||
ETH_NET_DEVICE_INIT(eth_test2, "eth_test2", eth_init, NULL,
|
||||
ð_context2, NULL, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ static struct dummy_api net_udp_if_api = {
|
|||
#define _ETH_L2_CTX_TYPE NET_L2_GET_CTX_TYPE(DUMMY_L2)
|
||||
|
||||
NET_DEVICE_INIT(net_udp_test, "net_udp_test",
|
||||
net_udp_dev_init, device_pm_control_nop,
|
||||
net_udp_dev_init, NULL,
|
||||
&net_udp_context_data, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&net_udp_if_api, _ETH_L2_LAYER, _ETH_L2_CTX_TYPE, 127);
|
||||
|
|
|
@ -188,7 +188,7 @@ static int eth_init(const struct device *dev)
|
|||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_test, "eth_test",
|
||||
eth_init, device_pm_control_nop,
|
||||
eth_init, NULL,
|
||||
ð_context, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
&api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
@ -251,7 +251,7 @@ NET_DEVICE_INIT_INSTANCE(eth_test_dummy1,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -264,7 +264,7 @@ NET_DEVICE_INIT_INSTANCE(eth_test_dummy2,
|
|||
"iface2",
|
||||
iface2,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface2_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
|
|
@ -172,7 +172,7 @@ static int eth_vlan_init(const struct device *dev)
|
|||
}
|
||||
|
||||
ETH_NET_DEVICE_INIT(eth_vlan_test, "eth_vlan_test",
|
||||
eth_vlan_init, device_pm_control_nop,
|
||||
eth_vlan_init, NULL,
|
||||
ð_vlan_context, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
&api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
@ -189,7 +189,7 @@ static int eth_init(const struct device *dev)
|
|||
* is quite unlikely that this would be done in real life but for testing
|
||||
* purposes create it here.
|
||||
*/
|
||||
NET_DEVICE_INIT(eth_test, "eth_test", eth_init, device_pm_control_nop,
|
||||
NET_DEVICE_INIT(eth_test, "eth_test", eth_init, NULL,
|
||||
ð_vlan_context, NULL, CONFIG_ETH_INIT_PRIORITY,
|
||||
&api_funcs, ETHERNET_L2, NET_L2_GET_CTX_TYPE(ETHERNET_L2),
|
||||
NET_ETH_MTU);
|
||||
|
@ -253,7 +253,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface1_test,
|
|||
"iface1",
|
||||
iface1,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface1_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
@ -266,7 +266,7 @@ NET_DEVICE_INIT_INSTANCE(net_iface2_test,
|
|||
"iface2",
|
||||
iface2,
|
||||
net_iface_dev_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&net_iface2_data,
|
||||
NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue