os: replace pkg/pc_nic by pkg/nic_uplink

This enables the combination of the nic_uplink component with any driver
pkg featuring a runtime file. This is already the case of the pc_nic
driver.

This is a preparatory step for issue #4420.
This commit is contained in:
Norman Feske 2024-05-30 15:39:38 +02:00
parent 6ba0574950
commit 940a1912fa
7 changed files with 17 additions and 71 deletions

View File

@ -0,0 +1,2 @@
Component for bridging an uplink client with a NIC client

View File

@ -0,0 +1 @@
_/src/nic_uplink

View File

@ -0,0 +1,14 @@
<runtime ram="1M" caps="100" binary="nic_uplink">
<requires> <timer/> </requires>
<provides> <nic/> <uplink/> </provides>
<content>
<rom label="ld.lib.so"/>
<rom label="nic_uplink"/>
</content>
<config/>
</runtime>

View File

@ -1,2 +0,0 @@
Runtime for using the PC NIC driver with the NIC Uplink adapter

View File

@ -1,3 +0,0 @@
_/src/nic_uplink
_/src/pc_nic_drv
_/src/init

View File

@ -1,66 +0,0 @@
<runtime ram="25M" caps="600" binary="init">
<requires> <timer/> <platform/> </requires>
<provides> <nic/> </provides>
<content>
<rom label="ld.lib.so"/>
<rom label="nic_uplink"/>
<rom label="pc_nic_drv"/>
<rom label="init"/>
</content>
<config>
<parent-provides>
<service name="ROM"/>
<service name="PD"/>
<service name="RM"/>
<service name="CPU"/>
<service name="LOG"/>
<service name="Timer"/>
<service name="Platform"/>
</parent-provides>
<service name="Nic">
<default-policy> <child name="nic_uplink"/> </default-policy>
</service>
<start name="nic_uplink" caps="100">
<resource name="RAM" quantum="1M"/>
<provides>
<service name="Uplink"/>
<service name="Nic"/>
</provides>
<config/>
<route>
<service name="Timer"> <parent/> </service>
<service name="PD"> <parent/> </service>
<service name="ROM"> <parent/> </service>
<service name="LOG"> <parent/> </service>
<service name="CPU"> <parent/> </service>
</route>
</start>
<start name="nic_drv" caps="300">
<binary name="pc_nic_drv"/>
<resource name="RAM" quantum="20M"/>
<resource name="CPU" quantum="10"/>
<config/>
<route>
<service name="Uplink"> <child name="nic_uplink"/> </service>
<service name="ROM"> <parent/> </service>
<service name="PD"> <parent/> </service>
<service name="RM"> <parent/> </service>
<service name="CPU"> <parent/> </service>
<service name="LOG"> <parent/> </service>
<service name="Timer"> <parent/> </service>
<service name="Platform"> <parent label="nic"/> </service>
</route>
<config> <report mac_address="yes"/> </config>
</start>
</config>
</runtime>