On Fri, 2011-02-25 at 15:46 +0200, fi wrote: ... snip > Is hal_parport.c the proper file to modify for 16 bit I/O over PATA > ports ? > Are other files to be modified ? ... snip
>From my study of the parallel port drivers, 90% of the code is for setting up the structs for managing the setup strings, and sharing multiple ports. When that is out of the way, it comes down to a simple outb or inb to a few registers. I suspect the PATA interface might be the same except that 90% of the code will be PATA specific, so the parport code may not be helpful. If one is going to go through the effort of a new design, I would vote for pursuing a PLX based PCI or PCI-X interface like this one: http://wiki.linuxcnc.org/uploads/pci1_15_02_sch_wiki.pdf (from this page: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?AVR ) (It seems to me, the old ISA slots would be perfect for real-time interfacing.) I am guessing here, but the only "active" part of the parallel port driver is in/outb which lives well with real-time. This may not be the case with PATA or PCI. Study of the PCI FPGA examples may shed light on this. On the other hand, if your time is money, just buying an existing PCI or PCI-X motion card would be cheaper. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
