[comp.unix.xenix] serial I/O, vpix, COM3/COM4, 2 questions

danielw@wyn386.UUCP (Daniel Wynalda) (01/09/90)

I am having two separate problems with serial lines and am looking
for some help.

First, I'd like to be able to tell VPIX that the standard COM1
port for DOS programs is /dev/ttyi1c (A digiboard port on a 16i board.)
Is this possible?  My system says "Error sending out to port".  I would
think that Xenix could map this in...  Any suggestions?


Second, I have tried, without success to install a board as COM3.  I've
seen and archived this question many times before, and finally have a reason
to attempt it.  I have a Everex card Magic I/O card with 1 serial and 1 
parallel port.  The parallel port is jumpered to interrupt 7, LPT1.  This
works well.  I can use the serial port as COM1 or COM2 without problems
if I pull one of  my internal modems, but this is not an option.  The port
will allow me to map the interrupt to INT 2(9), or INT 5.  I decided that
I would use Interrupt 5, because then I am not playing with numbers (because
of the AT bus's slave interrupt card I guess -- from reading previous postings).
Anyway, when I set the jumper on the board to be com3, with interrupt 5.  

So, here goes.   I edit the master file to setup interrupts for sio as
3 4 5 31   (I know, I'm not using com4 yet, but may in the future, I've
tried it without it as well).  I changed the parallel printer line to
only include 1 entry, and that's a 7.  The printer stayed fine.  

I also edited /usr/sys/io/sioconf.c to have the following entries.  

board_t sio_brds[] = {

{0,IBM_BOARD,  1,4,0,  (sd)0x3f8,0,                 0,MCRBIT3}, /*ibm COM1*/
{1,IBM_BOARD,  1,3,8,  (sd)0x2f8,0,                 0,MCRBIT3}, /*ibm COM2*/
{2,IBM_BOARD,  1,5,4,  (sd)0x3e8,0,		    0,MCRBIT3}, /*ibm COM3*/
{-1}
};

I typed 'make' in /usr/sys/conf and watched it re-compile /usr/sys/io/sioconf.c
and put it in /usr/sys/io/libio.a.  It also re-compiled everything with the
new master.   Then it re-linked xenix.  I copied this file to the root 
directory and booted it.  -- No additional serial port noticed.

I've tried various combinations all without success.  I can change the jumper
on the serial port SEPARATELY from the jumper for the COM port.   I've tried
installing as COM4 as well.  Now I assume I am doing something obvious that
is fundamentally wrong.  Could someone please give me a pointer (or at least
a way to check if the serial port is even mapping where it says it is?? --
that might cause this problem.) 

I am running on an 80386/20 from Homedata Inc. with 4MB RAM, and a BUNCH
of stuff installed in the machine.  (Telebit TB+ COM1, USR2400 COM2, 4MB RAM,
71 MB Miniscribe, 80MB seagate, EGA card, Mono card (no parallel port), and
the Everex card.  

Any help is appreciated!  (Learning this stuff makes running a SuperBBS
fun, doesn't it!?)

			Daniel Wynalda

-- 
Daniel Wynalda 	     | Telephone: (616) 866-1561 X22	 Ham: N8KUD
Wynalda Litho Inc.   | danielw@wyn386.UUCP wyn386!danielw@sharkey.cc.umich.edu
8221 Graphic Ind Pk. | I believe everyone should be responsible for their own
Rockford, MI  49341  | actions.  Thus I don't speak for this org. herein.