mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 01:36:22 +00:00
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:
parent
dcd4578585
commit
7c7c4e80e1
@ -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");
|
||||
|
@ -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", [&] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user