*BSD News Article 28310


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!swrinde!ihnp4.ucsd.edu!pacbell.com!well!nigel.msen.com!max.cybernet.com!mtaylor
From: mtaylor@cybernet.com (Mark Taylor)
Newsgroups: comp.os.386bsd.development
Subject: RE: Multi-port serial drivers
Date: 11 Mar 1994 15:13:13 GMT
Organization: Cybernet Systems Corporation
Lines: 22
Sender: mtaylor@max.cybernet.com (Mark Taylor)
Distribution: world
Message-ID: <2lq1q9$6sh@nigel.msen.com>
NNTP-Posting-Host: 192.245.33.3

I've got a FastComm 4W board working fine for serail I/O on my system.  It
required (?) a kernel hack, which now may be a part of -current.  The hack allows
for non-mastered multi-port boards using bit 2 (0x04) of the flags in the sio
line in the kernel config file.  If you want, I can re-post the message with the
kernel hack.  Here is my sio lines for the FastComm in my kernel config:

device sio2 at isa? port 0x240 tty irq 9 flags 0x005 vector siointr
device sio3 at isa? port 0x248 tty irq 9 flags 0x005 vector siointr
device sio4 at isa? port 0x250 tty irq 9 flags 0x005 vector siointr
device sio5 at isa? port 0x258 tty irq 9 flags 0x005 vector siointr


I had to build the /dev/tty02 - 05 devices using something like "sh MAKEDEV tty2"
in the /dev directory, for each of the devices (2 - 5).  Note that these device
lines use the kernel hack COM_NOMASTER by setting the flags bit 2 to a 1 (0x04), and the
COM_ISMULTIPORT by setting the flags bit 0 to a 1.  Notice that the master port
is set to 0 (the high byte's low nybble).



-Mark Taylor
mtaylor@cybernet.com