]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/wlags-modules/files/kernel-pcmcia.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / wlags-modules / files / kernel-pcmcia.patch
1 Compiling against PCMCIA-CS is obsolete since more than one year.
2 Especially in Linux Kernel trees for embedded devices, the
3 kernel-based PCMCIA are working, whereas pcmcia-cs has usual problems.
4
5 This patch creates the necessary infrastructure to run the wlags
6 driver with kernel-pcmcia.
7
8 #
9 # Patch managed by http://www.holgerschurig.de/patcher.html
10 #
11
12 --- wlags/wl_version.h~kernel-pcmcia
13 +++ wlags/wl_version.h
14 @@ -161,23 +161,29 @@
15     the status of wireless extension support. Otherwise, including wireless
16     extension support will be switched on/off by the USE_WEXT condition */
17  #if defined BUS_PCMCIA
18 -#include <pcmcia/config.h>
19 -#include <pcmcia/k_compat.h>
20 +//#include <pcmcia/config.h>
21 +//#include <pcmcia/k_compat.h>
22  #elif defined BUS_PCI
23  #if USE_WEXT
24  #define HAS_WIRELESS_EXTENSIONS
25  #endif  // USE_WEXT
26 +#endif  // BUS_XXX
27  
28  
29  /* These are #defines you get "for free" with PCMCIA that I needed to add for 
30     PCI to build */
31 +#ifndef NEW_MULTICAST
32  #define NEW_MULTICAST
33 +#endif
34 +#ifndef ALLOC_SKB
35  #define ALLOC_SKB(len)   dev_alloc_skb(len+2)
36 +#endif
37 +#ifndef GET_PACKET
38  #define GET_PACKET(dev, skb, count)\
39                          skb_reserve((skb), 2); \
40                          BLOCK_INPUT(skb_put((skb), (count)), (count)); \
41                          (skb)->protocol = eth_type_trans((skb), (dev))
42 -#endif  // BUS_XXX
43 +#endif
44  
45  
46  
47 --- wlags/wl_internal.h~kernel-pcmcia
48 +++ wlags/wl_internal.h
49 @@ -85,8 +85,8 @@
50   *  include files
51   ******************************************************************************/
52  #ifdef BUS_PCMCIA
53 -#include <pcmcia/config.h>
54 -#include <pcmcia/k_compat.h>
55 +//#include <pcmcia/config.h>
56 +//#include <pcmcia/k_compat.h>
57  #include <pcmcia/version.h>
58  #include <pcmcia/cs_types.h>
59  #include <pcmcia/cs.h>
60 --- wlags/wl_netdev.c~kernel-pcmcia
61 +++ wlags/wl_netdev.c
62 @@ -1447,7 +1447,7 @@
63      dev->set_multicast_list = &wl_multicast;
64  
65  #ifdef BUS_PCMCIA
66 -    init_dev_name( dev, ( (struct wl_private *)dev->priv)->node );
67 +//HS    init_dev_name( dev, ( (struct wl_private *)dev->priv)->node );
68  #endif  // BUS_PCMCIA
69  
70      dev->init               = &wl_init;
71 --- wlags/wl_cs.c~kernel-pcmcia
72 +++ wlags/wl_cs.c
73 @@ -497,7 +497,7 @@
74              /* Perform device-specific removal */
75              wl_remove( dev );
76  
77 -            link->release.expires = RUN_AT( HZ/20 );
78 +            link->release.expires = jiffies + ( HZ/20 );
79              add_timer( &( link->release ));
80          }
81  
82 @@ -786,7 +786,7 @@
83  
84      if( link->state & DEV_STALE_CONFIG )
85      {
86 -        link->release.expires   = RUN_AT( HZ/20 );
87 +        link->release.expires   = jiffies + ( HZ/20 );
88          link->state             |= DEV_RELEASE_PENDING;
89          
90          add_timer( &link->release );