RTEMS driver development questions

Gedare Bloom gedare at rtems.org
Tue Jul 2 18:31:09 UTC 2013

On Tue, Jul 2, 2013 at 12:31 PM, David Paterson <dnpaterson at gmail.com> wrote:
> Hi all,
> I have a couple of questions about strategies for developing RTEMS drivers,
> which I hope I can get a few hints about.
> Firstly, for a PCI driver, is the best approach to use the driver manager
> layer, or to write it as a basic driver?  It looks like the driver manager
> would be a simpler way to go, as it provides more facilities, but it's not
> clear if it's a standard RTEMS feature, or only available on LEON-based
> systems.  (I'm actually working on a LEON-based board at the moment, but we
> would like the drivers to be useable on other platforms in the future.)
I think the driver manager is LEON specific, although AG has expressed
interest in generalizing to other architectures.

> Secondly, I'm a bit unsure about handling of multiple devices (and
> hot-pluggable devices).  It looks like the driver manager would call my
> init1 & init2 functions for each device it found with matching vendor &
> device ID's, but how does this get handled in the basic (non-driver-manager)
> approach?  Is it up to my initialisation function to scan for my devices?
> For hot-pluggable, e.g. USB, devices, the situation looks even more
> confusing...
Not sure. I don't have first-hand experience with it.

> Anyway, any advice on driver development, especially PCI handling, would be
> greatly appreciated.
> Regards,
> David P.
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users

More information about the users mailing list