From owner-freebsd-current Fri May 5 18:52:00 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA20059 for current-outgoing; Fri, 5 May 1995 18:52:00 -0700 Received: from remington.mt.cs.keio.ac.jp (remington.mt.cs.keio.ac.jp [131.113.82.33]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id SAA20046 for ; Fri, 5 May 1995 18:51:57 -0700 Received: (from hosokawa@localhost) by remington.mt.cs.keio.ac.jp (8.6.12+2.4W/3.4Wbeta3) id KAA22597; Sat, 6 May 1995 10:51:36 +0900 Date: Sat, 6 May 1995 10:51:36 +0900 Message-Id: <199505060151.KAA22597@remington.mt.cs.keio.ac.jp> To: brian@mediacity.com Cc: freebsd-current@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp Subject: Re: problem PCMCIA sio fails probe In-Reply-To: Your message of Fri, 5 May 1995 13:34:29 -0700 (PDT). From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.18PL3] 1994-08/01(Mon) Sender: current-owner@FreeBSD.org Precedence: bulk In article 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