From owner-freebsd-mobile Thu Oct 2 08:41:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA03078 for mobile-outgoing; Thu, 2 Oct 1997 08:41:52 -0700 (PDT) Received: from horton.iaces.com (proot@horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA03073 for ; Thu, 2 Oct 1997 08:41:50 -0700 (PDT) Received: (from proot@localhost) by horton.iaces.com (8.8.5/8.8.5) id KAA09985; Thu, 2 Oct 1997 10:41:37 -0500 (CDT) From: "Paul T. Root" Message-Id: <199710021541.KAA09985@horton.iaces.com> Subject: Re: problems with PCMCIA cards To: mike@smith.net.au (Mike Smith) Date: Thu, 2 Oct 1997 10:41:37 -0500 (CDT) Cc: mobile@freebsd.org In-Reply-To: <199710020454.OAA00331@word.smith.net.au> from Mike Smith at "Oct 2, 97 02:24:21 pm" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a previous message, Mike Smith said: > > pccard.conf: > > > > # Generally available IO ports > > io 0x240-0x2e0 0x300-0x360 > > # Generally available IRQs > > irq 10 11 > ... > > # Megahertz CC3288 > > card "MEGAHERTZ" "CC3288" > > config 0x23 "sio1" 11 > > Um, on my XJ4336-CC4336 config index 0x23 looks like this : > > Tuple #8, code = 0x1b (Configuration entry), length = 7 > 000: 23 08 aa 60 e8 02 07 > Config index = 0x23 > Card decodes 10 address lines, 8 Bit I/O only > I/O address # 1: block start = 0x2e8 block length = 0x8 > > But that's not allowed by your 'io' declaration above. I'd just leave > the whole 0x240-0x360 range open and pick your config indexes carefully. Ok. I guess I'm a slow learner. I changed io to be 0x240-0x360 like you said (I'd just taken whatever pao had given me). The megahertz card was not in the pccard.conf.sample, so I just copied one (XJ2288 I think). So what I want to do is pick an index that has an io address inside the io range in the pccard.conf file. And a free irq, or do I want to use irq 3 since that's sio1? Wouldn't I want to use the io range of sio1? That's 0x2f8 isn't it? The errors I get are: Oct 2 10:23:45 fievel pccardd[285]: Card "MEGAHERTZ"("CC3288") matched "MEGAHERTZ" ("CC3288") Oct 2 10:23:49 fievel pccardd[285]: driver allocations failed for MEGAHERTZ (Invalid argument) when I try: config 0x23 "sio1" 3 or Oct 2 10:25:25 fievel pccardd[311]: Card "MEGAHERTZ"("CC3288") matched "MEGAHERTZ" ("CC3288") Oct 2 10:25:28 fievel /kernel: Return IRQ=11 Oct 2 10:25:28 fievel /kernel: stray irq 11 Oct 2 10:25:28 fievel pccardd[311]: driver allocations failed for MEGAHERTZ (Operations not supported by device) Here's the pccardc dumpcis info on the CC3288: Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 3 000: 00 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = 512b, 1 units Tuple #2, code = 0x11 (Long link to attribute memory), length = 4 000: 10 01 00 00 Long link to attribute memory, address 0x110 Tuple #3, code = 0x15 (Version 1 info), length = 38 000: 04 01 4d 45 47 41 48 45 52 54 5a 00 43 43 33 32 010: 38 38 00 56 2e 33 34 20 50 43 4d 43 49 41 20 4d 020: 4f 44 45 4d 00 ff Version = 4.1, Manuf = [MEGAHERTZ],card vers = [CC3288] Addit. info = [V.34 PCMCIA MODEM],[ÿ] Tuple #4, code = 0x21 (Functional ID), length = 2 000: 02 01 Serial port/modem - POST initialize Tuple #5, code = 0x1a (Configuration map), length = 5 000: 01 23 00 01 0f Reg len = 2, config register addr = 0x100, last config = 0x23 Registers: XXXX---- Tuple #6, code = 0x1b (Configuration entry), length = 16 000: e0 41 99 49 55 2e 55 aa 60 f8 03 07 70 ff ff 28 Config index = 0x20(default) Interface byte = 0x41 (I/O) +RDY/-BSY active Vcc pwr: Nominal operating supply voltage: 5 x 1V Continuous supply current: 2.5 x 100mA Power down supply current: 5 x 10mA 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: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Max twin cards = 0 Misc attr: (Audio-BVD2) (Power down supported) Tuple #7, code = 0x1b (Configuration entry), length = 7 000: 21 08 aa 60 f8 02 07 Config index = 0x21 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2f8 block length = 0x8 Tuple #8, code = 0x1b (Configuration entry), length = 7 000: 22 08 aa 60 e8 03 07 Config index = 0x22 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3e8 block length = 0x8 Tuple #9, code = 0x1b (Configuration entry), length = 7 000: 23 08 aa 60 e8 02 07 Config index = 0x23 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2e8 block length = 0x8 Tuple #10, code = 0xff (Terminator), length = 0 Tuple #11, code = 0x13 (Link target), length = 3 000: 43 49 53 Tuple #12, code = 0x20 (Manufacturer ID), length = 4 000: 02 01 00 00 PCMCIA ID = 0x102, OEM ID = 0x0 Tuple #13, code = 0x22 (Functional EXT), length = 4 000: 00 02 0f 5c Serial interface extension: 16550 UART, Parity - Space,Mark,Odd,Even, Tuple #14, code = 0x22 (Functional EXT), length = 9 000: 01 1f 1f ff 03 00 ff 03 00 Modem interface capabilities: Tuple #15, code = 0x22 (Functional EXT), length = 12 000: 02 00 06 1f 3f 03 03 08 07 00 02 b5 Data modem services available: Tuple #16, code = 0x22 (Functional EXT), length = 8 000: 13 00 06 0f 00 02 00 b5 Tuple #17, code = 0x22 (Functional EXT), length = 8 000: 23 00 06 0f 00 02 00 b5 Tuple #18, code = 0xff (Terminator), length = 0 2 slots found -- "Heavier-than-air flying machines are impossible." --Lord Kelvin, president, Royal Society, 1895.