Commit 2b8b8d3f authored by julien.delange's avatar julien.delange
Browse files

add x86 component and rtems/ne2000 driver



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@748 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent b129f441
......@@ -9,6 +9,7 @@ with ocarina_buses;
with ocarina_drivers_rasta_1553;
with ocarina_drivers_rasta_serial;
with ocarina_drivers_rasta_spacewire;
with ocarina_drivers_rtems_ne2000;
with ocarina_drivers_serial;
......@@ -110,5 +111,23 @@ properties
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::asn1.i));
end generic_sockets_ip.asn1;
---------------------
-- RTEMS NE2000 --
---------------------
device rtems_ne2000
features
thebus : requires bus access ocarina_buses::ip.i;
end rtems_ne2000;
device implementation rtems_ne2000.ip_pohic
properties
Deployment::Driver_Name => "rtems_ne2000_sockets";
Device_Driver => classifier (ocarina_drivers_rtems_ne2000::driver.i);
Initialize_Entrypoint => classifier (ocarina_drivers_rtems_ne2000::init);
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
end rtems_ne2000.ip_pohic;
end ocarina_drivers;
......@@ -5,7 +5,7 @@ public
subprogram spg_sockets_init
properties
Source_Language => C;
Source_Name => "__po_hi_driver_sockets_init";
Source_Name => "__po_hi_driver_sockets_asn1_init";
end spg_sockets_init;
......
......@@ -27,7 +27,7 @@ end eth_linux_poller.i;
subprogram spg_eth_linux_poller_i
properties
Source_Language => C;
Source_Name => "__po_hi_driver_sockets_poller";
Source_Name => "__po_hi_sockets_receiver_task";
end spg_eth_linux_poller_i;
......
package ocarina_drivers_rtems_ne2000
public
subprogram init
properties
Source_Language => C;
Source_Name => "__po_hi_driver_rtems_ne2000_init";
end init;
thread poller
end poller;
thread implementation poller.i
calls
mycall : {
pspg : subprogram spg_poller;
};
properties
Period => 1000ms;
Dispatch_Protocol => Periodic;
end poller.i;
subprogram spg_poller
properties
Source_Language => C;
Source_Name => "__po_hi_driver_rtems_ne2000_poller";
end spg_poller;
subprogram spg_sender
properties
Source_Language => C;
Source_Name => "__po_hi_driver_sockets_send";
end spg_sender;
abstract driver
end driver;
abstract implementation driver.i
subcomponents
-- receiver : thread eth_sockets_ne2000_rtems_poller.i;
sender : subprogram spg_sender;
end driver.i;
end ocarina_drivers_rtems_ne2000;
......@@ -6,6 +6,8 @@ with ocarina_processors_native;
with ocarina_processors_leon;
with ocarina_processors_x86;
with cheddar_properties;
processor linux extends ocarina_processors_native::native
end linux;
......@@ -16,6 +18,11 @@ processor leon
end leon;
processor implementation leon.rtems extends ocarina_processors_leon::leon.rtems
properties
Scheduling_Protocol => (Posix_1003_Highest_Priority_First_Protocol);
Priority_Range => 0 .. 255;
Cheddar_Properties::Scheduler_Quantum => 0 Ms;
Cheddar_Properties::Preemptive_Scheduler => true;
end leon.rtems;
processor implementation leon.ork extends ocarina_processors_leon::leon.ork
......
package ocarina_processors_x86
public
with Deployment;
processor x86
properties
Deployment::Execution_Platform => Native;
end x86;
processor implementation x86.linux
properties
Deployment::Execution_Platform => Native;
end x86.linux;
processor implementation x86.rtems
properties
Deployment::Execution_Platform => X86_RTEMS;
end x86.rtems;
end ocarina_processors_x86;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment