Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 1995 10:51:36 +0900
From:      hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi)
To:        brian@mediacity.com
Cc:        freebsd-current@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp
Subject:   Re: problem PCMCIA sio fails probe
Message-ID:  <199505060151.KAA22597@remington.mt.cs.keio.ac.jp>
In-Reply-To: Your message of Fri, 5 May 1995 13:34:29 -0700 (PDT). <m0s7U4z-000rdDC@easynet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <m0s7U4z-000rdDC@easynet.com>
brian@mediacity.com writes:

>> The sioprobe of the Cardinal 16550A fails on test 5.  If just commented
>> out test 5 and now it is detected and works properly, or
>> at least, I can dialout via tip/xc at 57600 and do the things I used
>> to (admittedly a little faster 8-)) and ppp to my internet provider
>> works fine to.

I heard the problem like that happens on IBM ThinkPad 230Cs.  Please
try the following modification to sio.c

        failures[0] = inb(iobase + com_cfcr) - CFCR_8BITS;
        failures[1] = inb(iobase + com_ier) - IER_ETXRDY;
        failures[2] = inb(iobase + com_mcr) - mcr_image;
        if (idev->id_irq != 0)
                failures[3] = isa_irq_pending(idev) ? 0 : 1;
+ #ifdef TP230
+        /*
+         * Following line(outb()) is only for IBM ThinkPad 230Cs
+         *                      by tomi@esvgw.esv.co.jp
+         */
+        outb(IO_ICU1 + 1, idev->id_irq ^ 0xff);
+ #endif /* TP230 */
        failures[4] = (inb(iobase + com_iir) & IIR_IMASK) - IIR_TXRDY;
        if (idev->id_irq != 0)
                failures[5] = isa_irq_pending(idev) ? 1 : 0;
        failures[6] = (inb(iobase + com_iir) & IIR_IMASK) - IIR_NOPEND;

BTW, are you using new sio.c with our patch to use PCMCIA card?  If
you're using it, above patch has been incorporated.

--
	HOSOKAWA, Tatsumi              E-mail: hosokawa@mt.cs.keio.ac.jp
	  WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html
	Department of Computer Science, Keio University, Yokohama, Japan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505060151.KAA22597>