All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Borkhuis <j.borkhuis@dutchspace.nl>
To: Konstantin Boyanov <kkboyanov@gmail.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Driver for device behind a PCI-VME bridge
Date: Tue, 21 Aug 2007 10:32:50 +0200	[thread overview]
Message-ID: <46CAA332.9060907@dutchspace.nl> (raw)
In-Reply-To: <929bf310708210056s2b699500x36c6b1ae83881496@mail.gmail.com>

Konstantin Boyanov wrote:
>
> Hi again,
>  
> After some googling I came to the conclusion that the best approach to 
> understanding how to write a driver for a device behind a PCI-XXX 
> bridge is to look at the source for the USB subsystem, although the 
> USB subsystem is actually a bus subssytem and not a class.

I also work with devices on the VME bus. The approach we took is to map 
all the devices into userspace, and use Xenomai for RT performance. This 
avoids the need to write drivers for all the devices. The RT-performance 
of Xenomai is quite good: the jitter on a timer-interrupt is always less 
than 20usec, even under high load, where standard Linux only achieves 
this in a no load situatieo, under high load standard Linux has a jitter 
of over 10 msec.

The setup we choose was to have a RT-interrupt handler and a RT IOCTL 
call "WAIT_FOR_INTERRUPT". This is a slightly modified version from the 
Motorola driver (I guess that you also use the Tundra chipset to access 
the VME-bus). Here you can wait for a specific VME interrupt-level, and 
it returns the vector number. So you can have several applications 
connect to the same VME driver, but all on different levels.

Kind regards,
    Johan Borkhuis

  reply	other threads:[~2007-08-21  8:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-20  8:40 Driver for device behind a PCI-VME bridge Konstantin Boyanov
2007-08-20  8:45 ` Johan Borkhuis
2007-08-20  8:58   ` Konstantin Boyanov
     [not found]     ` <929bf310708210055k3970c3chfc097ff776af439a@mail.gmail.com>
2007-08-21  7:56       ` Konstantin Boyanov
2007-08-21  8:32         ` Johan Borkhuis [this message]
2007-08-21  9:49           ` Konstantin Boyanov
     [not found]             ` <46CAE973.6040306@dutchspace.nl>
2007-08-23  7:47               ` Konstantin Boyanov
2007-08-23  8:24                 ` Johan Borkhuis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46CAA332.9060907@dutchspace.nl \
    --to=j.borkhuis@dutchspace.nl \
    --cc=kkboyanov@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.