Brandt Erickson wrote: >> ioperm() or iopl() not applicable? > > I'm not sure. I'm using a Sensoray S626 card (PCI). The driver I have is > something I pieced together from psuedo-working code I got from someone > else, so I'm not entirely sure how it works (or if it's even rt-safe). > -Brandt >
Sounds like very good preconditions to create a deterministic time-critical system. :) I just had a short look at their linux driver [1] (if this is what you are referring to): in fact, terrible code. That there is no locking makes it highly suspicious. And the way kernel 2.4 compat code is handled is very ugly as well. But the driver core is fortunately not that large (in contrast to the user lib - bah!), so you may try to grab the essentials from it. Converting that API to RTDM would be straightforward (given that there are no design faults in that code). I wonder if there is already comedi support for this device. Alexis, do you know this? That would likely be a better driver model, because it's generic. Jan [1] http://www.sensoray.com/html/626data.htm
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
