Date: Wed, 16 Jul 1997 07:44:00 -0400 From: Paul Werkowski <pw@snoopy.mv.com> To: Michael Smith <msmith@atrad.adelaide.edu.au> Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: polling in sio.c Message-ID: <199707161144.HAA00452@snoopy.mv.com> In-Reply-To: Your message of "Wed, 16 Jul 1997 11:40:37 %2B0930." <199707160210.LAA19606@genesis.atrad.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Michael Smith <msmith@atrad.adelaide.edu.au> Message-Id: <199707160210.LAA19606@genesis.atrad.adelaide.edu.au> Subject: Re: polling in sio.c In-Reply-To: <199707151654.MAA00268@snoopy.mv.com> from Paul Werkowski at "Jul 15, 97 12:54:52 pm" To: pw@snoopy.mv.com (Paul Werkowski) Date: Wed, 16 Jul 1997 11:40:37 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, freebsd-mobile@FreeBSD.ORG .... Ok, 0x20-23 are sio0-3 > # Generally available IO ports > io 0x240-0x2e0 0x300-0x360 Er, you're not making any of the serial port address ranges available. This obviously isn't fatal, but it's Bad. I'd suggest changing the ranges to 0x240-0x2ef and 0x300-0x3ff I missed that, thanks. Changing it made no difference. > # Generally available IRQs > irq 3 4 5 9 11 Are you _sure_ that 3 and 4 are available on your notebook? I would assume that you have two internal serial ports already, so they shouldn't be listed above. If your system has internal sound, it's probably on 5 or maybe 9 as well. Check and make very sure that the IRQs listed above are available. COM2 is an IR port and is disabled via BIOS. There is an ESS1688 Audio chip assigned via BIOS to irq 10. FWIW Win95 runs the modem on irq 5. > card "Megahertz" "XJ-CC4288" > config 0x22 "sio2" 5 > insert echo Megahertz XJ-CC4288 inserted > remove echo Megahertz XJ-CC4288 removed Ok, you want it on com3. > ============================================================== > dmesg|grep irq > > pcic0 <O2micro PCI to PC-Card Bridge> rev 2 int a irq 11 on pci0:3:0 > sc0 at 0x60-0x6f irq 1 on motherboard > sio0 at 0x3f8-0x3ff irq 4 on isa > lpt0 at 0x378-0x37f irq 7 on isa > psm0 at 0x60-0x64 irq 12 on motherboard > fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa > wdc0 at 0x1f0-0x1f7 irq 14 on isa > wdc1 at 0x170-0x177 irq 15 on isa > pcic: controller irq 3 Erk. As long as you don't use the second onboard serial port, I guess that'll be OK. > Card inserted, slot 0 > sio2: Warning: irq_pending error1. <<< first one in sio.c Er, you must be using the PAO kernel. I don't recommend this unless you need it for something else; the pccard support in the standard kernels is good enough for this. I don't actually know what this is meant to be, but I suspect it's the "didn't generate interrupt" error. I went to PAO because I couldn't get anywhere with the standard code -- but maybe I was making different mistakes then. I could try reverting back. I find the sio code a bit hard to follow, but I believe interrupt is not being generated. If I try talking to the modem using something like seyon, I see that characters echo back delayed by one. That is, the first char typed does not echo until the second is entered. If I then go ahead and enter the AT dial sequence, every thing seems to work except I see no output until I type something at which time I get about 16 chars on the screen. It doesn't seem to lose anything, just something wrong with the interrupt. This would tend to reinforce my suspicion that you have an IRQ configuration problem. I have tried using different irq numbers to no avail. If it didn't work on Win95 I would think it was a hardware fault, but then I don't have the driver code to look at so maybe it is being polled there as well. Frustrating! Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707161144.HAA00452>