[rtl] RTnet for RTLinux-3.1.

2002-02-25 Thread Saikrishnan Krishnamurthy


Hi,

   Iam using a linux 2.4 system with RTLinux-3.1 on top of it. I need a
real time networking support for the system. I sought for RTnet, but the
latest version of RTNet (rtnet-0.9.1) that I could get, supports
Linux-2.2.14 and RTLinux-2.3 only.

   Since I need ATM NIC support for my system and ATM in linux is
supported only from linux-2.4 onwards, I don't know how I could accomplish
RTNet on a linux-2.4.4 with RTLinux-3.1.

   Also if anyone had any luck in getting the "ATM NIC FORE PCA 200e" to
work directly with RTLinux, please guide me. Iam desperately looking for
some real-time drivers or some means of accessing atm from RTLinux
directly. (with or without using rtnet.)

   If anyone could give me a pointer of a recent version of rtnet or
any other direction possible, that would be much helpful.


thanks,

sai.

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/




[rtl] Network Driver for RT-Linux

2002-02-19 Thread Saikrishnan Krishnamurthy


Hi,

   I have an ATM PCI Card on my PC. I have written a program in linux
kernel to read and write AAL2 voice packets using this ATM PCI card. Iam
using the currently available ATM sockets to do this.

   As my program requires a timing resolution of as low as 10ms (10msec
being the worst case allowable delay) in all my measurements, I wonder if
coding the same program in RT-Linux could help ??.

   I would like to get the following doubts clarified.

   1) How different is a RT driver from the ordinary linux driver ??.
   2) Can I use the same driver for both and just map the PCI address to
my RT-Linux kernel address space to get direct access to the PCI card ??.
   3) If the Rt-Linux requires some modifications to the driver that use
in linux, what are the major changes Iam required to make ??.

My current problem is just to get the ATM PCI card start working in
the RT-Linux domain so that I could read and write through this card. Any
help on how I can go about doing this would be much appreciated.

thanks,

Sai.


On Mon, 18 Feb 2002, Edouard TISSERANT wrote:

> Some weeks ago I asked some questions about "sharing IRQ" between RT and
> Linux.
>
> In fact, the unique PCI slot on my target share the same PCI IRQ pin as the
> ethenet chip embedded on mother board. In wanted to use a PCI board in this
> slot from my RTLinux app and use network from Linux.
>
> So I wanted to signal IRQ to Linux after having handled it in my rt irq
> handler.
>
> Nobody have realy answered to my questions. So I had to find how to do that.
>
> Maybe will it usefull to someone who have the same problem.
>
> If someone think that there is something wrong, please tell it.
>
> 
> #include 
>
> static struct sigaction oldact;
> static int my_irq=/* Your IRQ*/
>
> void my_irq_handler(int sig)
> {
> /* Your code here*/
>  pthread_kill(pthread_linux(), RTL_LINUX_MIN_SIGNAL+my_irq);
> }
>
> int init_module(void)
> {
> struct sigaction act;
>
> act.sa_handler = my_irq_handler;
> act.sa_flags = SA_FOCUS;
> act.sa_focus = 1 << rtl_getcpuid();
>
> rtl_hard_disable_irq(my_irq)
>
> if(sigaction (RTL_SIGIRQMIN + my_irq, &act, &oldact)){
>  rtl_hard_enable_irq(my_irq);
>  return -EAGAIN;
> }
>
> rtl_hard_enable_irq(my_irq);
> return 0;
> }
>
> void cleanup_module(void) {
>  sigaction (RTL_SIGIRQMIN + my_irq, &oldact, NULL);
> }
>
> 
>
> Edouard
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/