From owner-freebsd-bugs Fri Aug 17 13:10:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 66F5D37B407 for ; Fri, 17 Aug 2001 13:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7HKA1p21554; Fri, 17 Aug 2001 13:10:01 -0700 (PDT) (envelope-from gnats) Date: Fri, 17 Aug 2001 13:10:01 -0700 (PDT) Message-Id: <200108172010.f7HKA1p21554@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Sam Habash Subject: Re: kern/24854: NEWCARD support for Aironet driver an(4) Reply-To: Sam Habash Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/24854; it has been noted by GNATS. From: Sam Habash To: freebsd-gnats-submit@freebsd.org, gabriel@maquina.com Cc: Subject: Re: kern/24854: NEWCARD support for Aironet driver an(4) Date: Fri, 17 Aug 2001 13:03:55 -0700 For whatever reason, the calls to pccard_compat_probe|attach don't succeed in detecting my Aironet 350 series card. However, hacking if_an_pccard.c in the following way to change DEVMETHOD(device_[probe|attach] from 'pccard_compat' to 'an_pccard' works for me: --- 82,103 ---- /* * Support for PCMCIA cards. */ + static int an_pccard_match(device_t); static int an_pccard_probe(device_t); static int an_pccard_attach(device_t); static int an_pccard_detach(device_t); static device_method_t an_pccard_methods[] = { /* Device interface */ ! DEVMETHOD(device_probe, an_pccard_probe), ! DEVMETHOD(device_attach, an_pccard_attach), DEVMETHOD(device_detach, an_pccard_detach), DEVMETHOD(device_shutdown, an_shutdown), + /* Card interface */ + DEVMETHOD(card_compat_match, an_pccard_match), + DEVMETHOD(card_compat_probe, an_pccard_probe), + DEVMETHOD(card_compat_attach, an_pccard_attach), { 0, 0 } }; The updated patch is availabe at: http://www.bestII.com/freebsd/patch.an.new Take care, --Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message