Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 1997 11:40:37 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        pw@snoopy.mv.com (Paul Werkowski)
Cc:        msmith@atrad.adelaide.edu.au, freebsd-mobile@FreeBSD.ORG
Subject:   Re: polling in sio.c
Message-ID:  <199707160210.LAA19606@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199707151654.MAA00268@snoopy.mv.com> from Paul Werkowski at "Jul 15, 97 12:54:52 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Werkowski stands accused of saying:
> 
> Tuple #2, code = 0x15 (Version 1 info), length = 50
>     000:  05 00 4d 65 67 61 68 65 72 74 7a 00 58 4a 2d 43
>     010:  43 34 32 38 38 00 56 2e 33 34 20 44 61 74 61 2f
>     020:  46 61 78 2f 43 65 6c 6c 20 50 43 20 43 61 72 64
>     030:  00 ff
> 	Version = 5.0, Manuf = [Megahertz],card vers = [XJ-CC4288]
> 	Addit. info = [V.34 Data/Fax/Cell PC Card],[ÿ]

OK, looks like you've got this all right in your pccard.conf file.

> 	Config index = 0x20(default)
> 		I/O address # 1: block start = 0x3f8 block length = 0x8
> 	Config index = 0x21
> 		I/O address # 1: block start = 0x2f8 block length = 0x8
> 	Config index = 0x22
> 		I/O address # 1: block start = 0x3e8 block length = 0x8
> 	Config index = 0x23
> 		I/O address # 1: block start = 0x2e8 block length = 0x8

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

> # 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.

> 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.

This would tend to reinforce my suspicion that you have an IRQ
configuration problem.

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



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