*BSD News Article 18269


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!network.ucsd.edu!usc!cs.utexas.edu!uunet!mcsun!sun4nl!philapd!apdnews!spoetnix.idca.tds.philips.nl!wilko
From: wilko@idca.tds.philips.nl (Wilko Bulte)
Newsgroups: comp.os.386bsd.questions
Subject: Re: how to configure multiport cards using pk024
Message-ID: <wilko.742466323@spoetnix.idca.tds.philips.nl>
Date: 12 Jul 93 08:38:43 GMT
References: <568@apdnews.idca.tds.philips.nl> <C9zA9I.oF@obiwan.uucp>
Sender: news@idca.tds.philips.nl
Lines: 48

bob@obiwan.uucp (Bob Willcox) writes:

>In article <568@apdnews.idca.tds.philips.nl> wilko@idca.tds.philips.nl (Wilko Bulte) writes:
>>Patchkit 0.2.4. has introduced the possibility to use multiport serial 
>>boards. Very nice to have it, especially since my AST/4 is sitting idle

>I have an AST/4 (actually, a clone) multiport card running on my system.
>I had to hack the sioprobe() and sioattach() code in sio.c to get it to
>properly detect the ports and then recognize the type of UARTs installed
>(16550As).  From a previous posting of mine:

>I have expierenced similar problems.  The test in the sio.c driver (in
>the sioattach() routine) that is causing it to *think* it is a 8250 is:


>	/* attempt to determine UART type */
>	scr = inb(iobase + com_scr);
>	outb(iobase + com_scr, 0xa5);
>	scr1 = inb(iobase + com_scr);
>	outb(iobase + com_scr, 0x5a);
>	scr2 = inb(iobase + com_scr);
>	outb(iobase + com_scr, scr);
>	if (scr1 != 0xa5 || scr2 != 0x5a)   <--- this is it!
>		printf(" <8250>");

[stuff deleted]


Hmm. 
Eghh. 

It seems sio is not as clean as it ought to be. For SysV3.2 I had a
wonderfull (freeware) driver called FAS that worked like a charm, and
also recognized the chips correctly. Maybe I can find it and check 
the code to see how they do it. 

Thanks

Wilko


 |   / o / /  _   Wilko Bulte               mail: wilko@idca.tds.philips.nl
 |/|/ / / /( (_)  |d|i|g|i|t|a|l| Equipment Corporation voice: +3155-432062
fax: +3155-432103 DTN: 829 2062 PO Box 245 - 7300 AE Apeldoorn - The Netherlands
--
 |   / o / /  _   Wilko Bulte               mail: wilko@idca.tds.philips.nl
 |/|/ / / /( (_)  |d|i|g|i|t|a|l| Equipment Corporation voice: +3155-432062
fax: +3155-432103 DTN: 829 2062 PO Box 245 - 7300 AE Apeldoorn - The Netherlands