|
From: Giorgio T. <de...@ip...> - 2001-11-25 13:04:30
|
Hello all,
this is a working ioblix driver (with sources) i am sending to the A4000
people to test it about any bug remaining i haven't found.
I have tested it succesfully with minicom using a null modem connection
between two IOBlix ports at 115200 baud. Also this mail is envoyed with
it.
--------------------------------------------------------------------------
For R.E.Wolff
It was a little bit difficult to make it work with generic_serial: i
have
used some "dirty tricks" to get rid of a tx buffer control in the
gs_set_termios() function that made infinite loop locks if you try to
use
a serial port without a device connected to it.
I think that is better to add in the generic_serial upper level driver
the control of device connected (Data Set Ready) that will stop or flush
the tx buffer if !(DSR).A wait time will discriminate if this is a
simply
"kicked cable" stop or a true empty port flush.
Look ioblix_chars_in_buffer() function for the "dirty trick" i used.
--------------------------------------------------------------------------
For Alan Buxey,
I think this driver may be easily adapted for the add of the A1200's
IOBlix
& Hipercom cards adding a machine's choice (A4000 vs A1200).
As you will see in the source header i have used the MAJOR ttyS & cua
numbers
4 and 5, i don't know if it was a good choice or it must be modified.
Do exists a clean manner to know how much MINORS are still initialized
in a
MAYOR device? In the Amiga case i have begun with the 65 MINOR
(64 is built in serial) but i cannot assume this is ever true...
One other thing i have added (but not used in this driver ) is an
experimental
ser_board structure that in a future may be used to collect the specific
datas
of the Amiga's cards that use EXAR ST16C550-ST16C654 compatible UARTs.
I am working on this and a more "generalized" version that will be
committed
as soon as possible.
The module is compiled with 2.4.15 kernel but i think that it can be
used
also with a lower version kernel.
Some instructions ( if needed... :) )
To make IOBlix work generic_serial must be previously loaded
insmod generic_serial
or
insmod generic_serial gs_debug=0xffffffff
if you want debug infos
after
insmod ioblixz2
or
insmod ioblixz2 iob_debug=0xff
I am sorry but now the source is completely uncommented and indented in
a
"wrong" way...
Any suggestion or warning or else...(i hope not blames) is welcome.
For Per Larson,
thanks for your patience...
Kind regards
Giorgio Terzi
|