Attached is a modified form of the rt_com stuff that includes a number
of changes that we needed but perhaps someone else will find them useful
also.

It was based on the rt_com that came with rtlinux-3.0 that I downloaded in
February so it is possible the latest already includes some/all of these
changes or conflicting ones. I would have checked the latest
but the number of FTP users is maxed out every time I try to download from the
main FTP site and none of the mirrors appear to be up to date.

Changes:

rt_com_write returns the number of characters written rather than void.
The number of characters written could be less than the value the user passed
to rt_com_write because the buffer could be full and it now checks for the buffer
being full.

Changing the maximum number of serial ports connected to should now involve only
changing one #define.

The default value is 8.

The IOPORT and IRQ numbers to use can be set with module parameters.

i.e.

/sbin/insmod rt_com.o IOPORT=0x3F8,0x2F8 IRQ=4,3 NUM_SERIAL_PORTS=2

The actual number of serial ports doesn't have to equal the compiled in maximum.

Multiple serial ports can be placed on the same irq.

( With the Hostess 550 8 port serial card we had no choice but to put them all on the
same irq.)

To build the driver;

untar

edit the Makefile so that the first include will  find the directory where rtl.mk is 
located
and run
make rt_com.o



If you have any comments or questions for me please send them offlist to
[EMAIL PROTECTED] , since I only follow this list very intermittantly.

--Will




new_rt_com.tar.gz

Reply via email to