sculpt: attach nic and wifi to hardware node

This makes the grouping of these two drivers consistent with the
other drivers.

Issue #5174
This commit is contained in:
Norman Feske 2024-04-17 12:07:15 +02:00 committed by Christian Helmuth
parent dcd4578585
commit 7c7c4e80e1
2 changed files with 7 additions and 13 deletions

View File

@ -31,12 +31,12 @@ struct Sculpt::Nic_driver : private Noncopyable
gen_named_node(xml, "binary", "nic_drv");
xml.node("config", [&] { });
xml.node("route", [&] {
gen_service_node<Uplink::Session>(xml, [&] {
xml.node("child", [&] {
xml.attribute("name", "nic_router"); }); });
gen_service_node<Platform::Session>(xml, [&] {
xml.node("parent", [&] {
xml.attribute("label", "nic"); }); });
gen_service_node<Uplink::Session>(xml, [&] {
xml.node("child", [&] {
xml.attribute("name", "nic_router"); }); });
gen_common_routes(xml);
gen_parent_rom_route(xml, "nic_drv");
gen_parent_rom_route(xml, "nic_drv.dtb");

View File

@ -59,19 +59,14 @@ struct Sculpt::Wifi_driver : private Noncopyable
});
xml.node("route", [&] {
gen_service_node<Platform::Session>(xml, [&] {
xml.node("parent", [&] {
xml.attribute("label", "wifi"); }); });
xml.node("service", [&] {
xml.attribute("name", "Uplink");
xml.node("child", [&] {
xml.attribute("name", "nic_router");
xml.attribute("label", "wifi -> ");
});
});
gen_service_node<Platform::Session>(xml, [&] {
xml.node("parent", [&] {
xml.attribute("label", "wifi"); }); });
xml.attribute("label", "wifi -> "); }); });
gen_common_routes(xml);
gen_parent_rom_route(xml, "wifi_drv");
gen_parent_rom_route(xml, "wifi_drv.dtb");
@ -87,7 +82,6 @@ struct Sculpt::Wifi_driver : private Noncopyable
gen_parent_rom_route(xml, "wpa_supplicant.lib.so");
gen_parent_route<Rm_session> (xml);
gen_parent_route<Rtc::Session> (xml);
gen_service_node<Rom_session>(xml, [&] {
xml.attribute("label", "wifi_config");
xml.node("parent", [&] {