Fix AutoLoad macro typos (#2765)
[openwrt.git] / package / rt61 / patches / 002-big_endian_fixes.patch
1 diff -ruN rt61-cvs-2007060307-old/Module/rt_config.h rt61-cvs-2007060307-new/Module/rt_config.h
2 --- rt61-cvs-2007060307-old/Module/rt_config.h 2007-06-03 14:35:29.000000000 +0200
3 +++ rt61-cvs-2007060307-new/Module/rt_config.h 2007-08-25 20:45:36.000000000 +0200
4 @@ -162,7 +162,6 @@
5 #endif
6
7 #ifdef __BIG_ENDIAN
8 -#warning Compiling for big endian machine.
9 #define BIG_ENDIAN TRUE
10 #endif /* __BIG_ENDIAN */
11
12 diff -ruN rt61-cvs-2007060307-old/Module/rtmp.h rt61-cvs-2007060307-new/Module/rtmp.h
13 --- rt61-cvs-2007060307-old/Module/rtmp.h 2007-05-19 19:19:17.000000000 +0200
14 +++ rt61-cvs-2007060307-new/Module/rtmp.h 2007-08-25 20:44:27.000000000 +0200
15 @@ -1617,14 +1617,8 @@
16 VOID RTMPFreeDMAMemory(IN PRTMP_ADAPTER pAdapter);
17 // Enable & Disable NIC interrupt via writing interrupt mask register
18 // Since it use ADAPTER structure, it have to be put after structure definition.
19 -#ifdef BIG_ENDIAN
20 -inline
21 -#endif
22 - VOID NICDisableInterrupt(IN PRTMP_ADAPTER pAdapter);
23 -#ifdef BIG_ENDIAN
24 -inline
25 -#endif
26 - VOID NICEnableInterrupt(IN PRTMP_ADAPTER pAdapter);
27 +VOID NICDisableInterrupt(IN PRTMP_ADAPTER pAdapter);
28 +VOID NICEnableInterrupt(IN PRTMP_ADAPTER pAdapter);
29 VOID NICInitTxRxRingAndBacklogQueue(IN PRTMP_ADAPTER pAdapter);
30 VOID NICReadEEPROMParameters(IN PRTMP_ADAPTER pAd);
31 VOID NICInitAsicFromEEPROM(IN PRTMP_ADAPTER pAd);
32 diff -ruN rt61-cvs-2007060307-old/Module/rtmp_init.c rt61-cvs-2007060307-new/Module/rtmp_init.c
33 --- rt61-cvs-2007060307-old/Module/rtmp_init.c 2007-05-23 14:14:23.000000000 +0200
34 +++ rt61-cvs-2007060307-new/Module/rtmp_init.c 2007-08-25 20:43:51.000000000 +0200
35 @@ -549,24 +549,14 @@
36
37 // By removing 'inline' directive from the function definitions.
38 // Then Driverloader is compiled and runs smooth after kernel 2.6.9
39 -#ifdef BIG_ENDIAN
40 -inline VOID
41 -#else
42 -VOID
43 -#endif
44 -NICDisableInterrupt(IN PRTMP_ADAPTER pAdapter)
45 +VOID NICDisableInterrupt(IN PRTMP_ADAPTER pAdapter)
46 {
47 RTMP_IO_WRITE32(pAdapter, INT_MASK_CSR, 0xffffff7f); // 0xffffff7f
48 RTMP_IO_WRITE32(pAdapter, MCU_INT_MASK_CSR, 0xffffffff);
49 RTMP_CLEAR_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_ACTIVE);
50 }
51
52 -#ifdef BIG_ENDIAN
53 -inline VOID
54 -#else
55 -VOID
56 -#endif
57 -NICEnableInterrupt(IN PRTMP_ADAPTER pAdapter)
58 +VOID NICEnableInterrupt(IN PRTMP_ADAPTER pAdapter)
59 {
60 //
61 // Flag "fOP_STATUS_DOZE" On, means ASIC put to sleep, else means ASIC WakeUp
This page took 0.040385 seconds and 5 git commands to generate.