Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Aug 2001 13:10:01 -0700 (PDT)
From:      Sam Habash <the@bestII.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/24854: NEWCARD support for Aironet driver an(4)
Message-ID:  <200108172010.f7HKA1p21554@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/24854; it has been noted by GNATS.

From: Sam Habash <the@bestII.com>
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




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