[Aironet] Compiling for RedHat 6.2
Status: Inactive
Brought to you by:
breed
From: <br...@al...> - 2000-07-11 20:23:14
|
It is a tricky thing to support 2.0, 2.2, and 2.4 kernels plus the different versions of PCMCIA card services. Now that aironet is included in the PCMCIA distribution the versioning problem with PCMCIA goes away. However, RedHat 6.2 uses a very old version of PCMCIA card services which was before aironet was integrated. Since the old aironet sources weren't archived (does anyone have an archive BTW, there have been a couple of people asking me...), the best thing to do is use the code found in the latest PCMCIA dist and add the following lines: to airo.c right after the #include blocks: #define OLD_PCMCIA_DIST #ifdef OLD_PCMCIA_DIST #if (LINUX_VERSION_CODE < 0x2030e) #define net_device device #endif #if (LINUX_VERSION_CODE < 0x2032b) #define netif_stop_queue(dev) do { (dev)->tbusy = 1; } while (0) #define netif_start_queue(dev) do { (dev)->tbusy = 0; } while (0) #define netif_wake_queue(dev) \ do { (dev)->tbusy = 0; mark_bh(NET_BH); } while (0) #define netif_mark_up(dev) do { (dev)->start = 1; } while (0) #define netif_mark_down(dev) do { (dev)->start = 0; } while (0) #define netif_device_present(dev) ((dev)->start) #else #define netif_mark_up(dev) do { } while (0) #define netif_mark_down(dev) do { } while (0) #endif #endif to airo_cs.c right before #ifdef __IN_PCMCIA_PACKAGE__: #define __IN_PCMCIA_PACKAGE__ #define netif_stop_queue(dev) set_bit(0, (void *)&(dev)->tbusy) #define netif_start_queue(dev) clear_bit(0, (void *)&(dev)->tbusy) #define netif_wake_queue(dev) \ do { netif_start_queue(dev); mark_bh(NET_BH); } while (0) #define netif_device_attach(dev) \ do { (dev)->start = 1; netif_start_queue(dev); } while (0) #define netif_device_detach(dev) \ do { (dev)->start = 0; netif_stop_queue(dev); } while (0) put both airo.c and airo_cs.c in the modules subdirectory of the PCMCIA source and do make MODULES="airo.o airo_cs.o". ben Arif Eyeflf <ari...@ya...>@csl.cse.ucsc.edu on 07/11/2000 08:41:53 AM Sent by: air...@cs... To: ai...@en... cc: Subject: [Aironet] Aironet 4800 PCMCIA adapter > > Hello, > > I've seen questions on here before about Linux > support for the 340 > cards, but not seen an answer. Are there any > problems using the drivers > on B. Reed's site with the 340 card? > > Chris > I have not been able to compile the airo_cs.c source to airo_cs.o under RedHat 6.2 or Slackware 7. The airo.c file compiles fine, but when I compile the airo_cs.c I see a pile of variable redefinitions. I am curious if anyone else has been able to compile these under the 2.2.13 kernel or if I am doing something wrong? Scott __________________________________________________ Do You Yahoo!? Get Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com/ _______________________________________________ Aironet mailing list - Ai...@cs... http://csl.cse.ucsc.edu/mailman/listinfo/aironet |