Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 1997 09:49:03 -0700 (MST)
From:      Nate Williams <nate@mt.sri.com>
To:        Bernd Rosauer <br@schiele-ct.de>
Cc:        Nate Williams <nate@mt.sri.com>, freebsd-mobile@freebsd.org
Subject:   Re: PCCARD modem config? 
Message-ID:  <199710311649.JAA24488@rocky.mt.sri.com>
In-Reply-To: <199710310821.JAA06594@chuck.schiele-ct.de>
References:  <199710310027.RAA21621@rocky.mt.sri.com> <199710310821.JAA06594@chuck.schiele-ct.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > The next point is how to choose the driver and the interrupt flag.
> > > In the kernel I configured sio0 at irq4 and sio1 at irq3.  In
> > > /etc/pccard.conf.sample most entries for modems set the driver to
> > > sio2.  Would that be ok for a TP560?
> > 
> > Sure, but you need to choose the correct index which corresponds to
> > sio2, and a supported interrupt.
> 
> There is no line telling me something about a port.

Sure there is, from the output:

> Tuple #5, code = 0x1b (Configuration entry), length = 20
>     000:  f0 41 9d 6e 4d 5d 25 36 05 eb 17 aa 60 f8 03 07
>     010:  70 b8 86 28
> 	Config index = 0x30(default)
                       ^^^^
> 	Interface byte = 0x41 (I/O)  +RDY/-BSY active
> 	Vcc pwr:
> 		Minimum operating supply voltage: 4.5 x 1V
> 		Maximum operating supply voltage: 5.5 x 1V
> 		Continuous supply current: 2 x 10mA
> 		Max current average over 10 ms: 3 x 100mA
> 		Power down supply current: 1 x 10mA
> 	RDY/BSY scale Speed = 1.2 x 10 ms, scaled by 100
> 	Card decodes 10 address lines, 8 Bit I/O only
> 		I/O address # 1: block start = 0x3f8 block length = 0x8
                                               ^^^^^
> 		IRQ modes: Level, Pulse
> 		IRQs:  3 4 5 7 9 10 15
> 	Max twin cards = 0
> 	Misc attr: (Audio-BVD2) (Power down supported)

> Tuple #6, code = 0x1b (Configuration entry), length = 10
>     000:  31 18 aa 60 f8 02 07 70 b8 86
> 	Config index = 0x31
                       ^^^^

> 	Card decodes 10 address lines, 8 Bit I/O only
> 		I/O address # 1: block start = 0x2f8 block length = 0x8
                                               ^^^^^
> 		IRQ modes: Level, Pulse
> 		IRQs:  3 4 5 7 9 10 15

Anyway, you get the picture.  Let's go find the the entry for sio2,
which is what we decided to use.

I never remember these, so I go to /sys/i386/isa ,and grep from COM3
(remember that we start at sio0, which DOS starts at COM1, so sio2 ==
COM3).

$ fgrep COM3 *.h
isa.h:#define   IO_COM3         0x3E8           /* COM3 i/o address */

Ahh, we want 0x3e8.

>From the output:

> Tuple #9, code = 0x1b (Configuration entry), length = 10
>     000:  32 18 aa 60 e8 03 07 70 b8 86
> 	Config index = 0x32
                       ^^^^
> 	Card decodes 10 address lines, 8 Bit I/O only
> 		I/O address # 1: block start = 0x3e8 block length = 0x8
                                               ^^^^^
> 		IRQ modes: Level, Pulse
> 		IRQs:  3 4 5 7 9 10 15

OK, so far so good.  We know the index.  But, as long as we're here,
let's finish up everything for the card.

> Tuple #3, code = 0x15 (Version 1 info), length = 63
>     000:  04 01 45 4c 53 41 27 41 61 63 68 65 6e 27 47 65
>     010:  72 6d 61 6e 79 00 4d 69 63 72 6f 4c 69 6e 6b 20
>     020:  33 33 2e 36 4d 43 00 30 30 30 39 35 33 00 34 2e
>     030:  30 2e 39 00 00 00 00 00 00 00 00 00 00 00 ff
> 	Version = 4.1, Manuf = [ELSA'Aachen'Germany],card vers = [MicroLink 33.6MC]
> 	Addit. info = [000953],[4.0.9]

So, we've got everything we need for the card's pccard.conf entry,
except for the IRQ (which we'll hard-code for now to be one of the
available interrupts for that configuration index.  This will go away at
some point in the future, since we can simply 'fake' the card into
thinking it's using a valid interrupt while using any free interrupt
from the system.)

# Germany's famouse MicroLink modem card
card "ELSA'Aachen'Germany" "MicroLink 33.6MC"
	config	0x32 "sio2" 10
	insert	echo "Microlink 33.6 modem inserted"
	removed	echo "Microlink 33.6 modem removed"

Done!

> For configuration
> index 0x31 the entrys say that the "Card decodes 10 address lines".
> Would that index make a good choice?

You tell me.  Seriously, can you answer that question on your own now
with the information just posted?  If so, send the list an email saying
so, or else *please* ask some more questions!


Nate



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