From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 15 12:01:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E77B016A41F for ; Tue, 15 Nov 2005 12:01:48 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CC1E43D55 for ; Tue, 15 Nov 2005 12:01:46 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45] (may be forged)) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id jAFC1j9H046449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 15 Nov 2005 04:01:45 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost) by skutsje.san.webweaving.org (8.12.9/8.12.9/Submit) with ESMTP id jAFC1jQu046446 for ; Tue, 15 Nov 2005 04:01:45 -0800 (PST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Tue, 15 Nov 2005 04:01:45 -0800 (PST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: freebsd-hackers@freebsd.org In-Reply-To: <20051112072658.Q14448@skutsje.san.webweaving.org> Message-ID: <20051115034742.Q40829@skutsje.san.webweaving.org> References: <20051112072658.Q14448@skutsje.san.webweaving.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Sierra Wireless / AC775 / Loading an external cisfile as a 'quirck' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 12:01:49 -0000 After a hint from Warner - with the quirck from OpenBSD, see below; I am getting the AC775 nicely detected and showing sensible values; but the attaching of the expected sio(4) driver failes with a: pccard0: check_cis_quirks pccard0: using CIS quirks for Sierra Wireless, AC775, EDGE Network Adapter, R1 pccard0: CIS version PC Card Standard 7.0 pccard0: CIS info: Sierra Wireless, AC775, EDGE Network Adapter, R1 pccard0: Manufacturer code 0x192, product 0x710 pccard0: function 1: serial port, ccr addr 700 mask 73 pccard0: function 1, config table entry 32: I/O card; irq mask 3fbc; iomask 0, iospace 3f8-3ff; io8 irqlevel pccard0: functions scanning pccard0: Card has 1 functions. pccard_mfc is 0 pccard0: (dirkx) values on Mac/Windows: index 0x20 Vcc 5.0 irq 255 io 0x03f8-3ff pccard0: I/O rid 0 start 3f8 end 3ff pccard0: (dirkx) bus_alloc_resource on 452 failed for SYS_RES_IOPORT pccard0: Allocation failed for cfe 32 pccard0: No config entry could be allocated. (complete verbose dmesg on http://people.apache.org/~dirkx/ac775/) on a Soekris, a normal PC and a Sony VAIO. Can anyone give me a hint as to where to start debugging this ? Is there a subtle netbsd quirck difference biting me ? Does any of the above values look suspicious ? Thanks, Dw diff pccard_cis_quirks.c.org pccard_cis_quirks.c > static struct pccard_function pcmcia_sierra_a555_func1 = { > 1, /* function number */ > PCCARD_FUNCTION_SERIAL, > 0x24, /* last cfe number */ > 0x700, /* ccr_base */ > 0x73, /* ccr_mask */ > }; > > static struct pccard_config_entry pcmcia_sierra_a555_func1_cfe0 = { > 0x20, /* cfe number */ > PCCARD_CFE_IO8 | PCCARD_CFE_IRQLEVEL, PCCARD_IFTYPE_IO, > 1, /* num_iospace */ > 0, /* iomask */ > { { 0x0008, 0x3f8 } }, /* iospace */ > 0x3fbc, /* irqmask */ > 0, /* num_memspace */ > { }, /* memspace */ > 0, /* maxtwins */ > }; > /* Sierra */ > #define PCMCIA_VENDOR_SIERRA 0x0192 > #define PCMCIA_CIS_SIERRA_AC710 { NULL, NULL, NULL, NULL } > #define PCMCIA_PRODUCT_SIERRA_AC710 0x0710 > #define PCMCIA_CIS_SIERRA_A550 { NULL, NULL, NULL, NULL } > #define PCMCIA_PRODUCT_SIERRA_A550 0xa550 > #define PCMCIA_CIS_SIERRA_A555 { NULL, NULL, NULL, NULL } > #define PCMCIA_PRODUCT_SIERRA_A555 0xa555 > #define PCMCIA_CIS_SIERRA_A710 { NULL, NULL, NULL, NULL } > #define PCMCIA_PRODUCT_SIERRA_A710 0xa710 > 183a214,225 > { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_A550, > PCMCIA_CIS_INVALID, > &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, > { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_A555, > PCMCIA_CIS_INVALID, > &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, > { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_A710, > PCMCIA_CIS_INVALID, > &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 }, > { PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC710, > PCMCIA_CIS_INVALID, > &pcmcia_sierra_a555_func1, &pcmcia_sierra_a555_func1_cfe0 },