]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: w35und: clean up adapter.h a bit
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 30 Oct 2008 14:14:37 +0000 (16:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:51:48 +0000 (13:51 -0800)
This patch cleans up adapter.h a bit in preparation for merging struct
wb35_adapter to struct wbsoft_priv.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/winbond/adapter.h
drivers/staging/winbond/common.h
drivers/staging/winbond/mds_s.h
drivers/staging/winbond/wbhal.c

index 11df483c8900f481f82839808a0ef0e439816173..239cc3a5fa29db0b4e4b911d3080c1d29de5d0f7 100644 (file)
@@ -7,20 +7,9 @@
 #include "mto.h"
 #include "wbhal_s.h"
 
-#define OS_SET_SHUTDOWN( _A )          _A->shutdown=1
-#define OS_SET_RESUME( _A )            _A->shutdown=0
-#define OS_STOP( _A )  WBLINUX_stop( _A )
+#define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4)
 
-#define OS_CURRENT_RX_BYTE( _A )               _A->RxByteCount
-#define OS_CURRENT_TX_BYTE( _A )               _A->TxByteCount
-#define OS_EVENT_INDICATE( _A, _B, _F )
-#define OS_PMKID_STATUS_EVENT( _A )
-#define OS_RECEIVE_802_1X_PACKET_INDICATE( _A, _D )    EAP_ReceivePacket( _A, _D )
-#define OS_SEND_RESULT( _A, _ID, _R )
-
-#define WBLINUX_PACKET_ARRAY_SIZE      (ETHERNET_TX_DESCRIPTORS*4)
-
-#define MAX_ANSI_STRING                40
+#define WB_MAX_LINK_NAME_LEN 40
 
 struct wb35_adapter {
        u32 adapterIndex;       // 20060703.4 Add for using padapterContext global adapter point
@@ -49,7 +38,7 @@ struct wb35_adapter {
        s32 netif_state_stop;   // 1: stop  0: normal
        struct iw_statistics iw_stats;
 
-       u8 LinkName[MAX_ANSI_STRING];
+       u8 LinkName[WB_MAX_LINK_NAME_LEN];
 };
 
 #endif
index 2badc2984a38764f1f5d7e4f19c26ba1db23bfe7..c4d96041e9ac64a24bab79b9ed729b3fefe371af 100644 (file)
@@ -23,8 +23,5 @@
 #define WBDEBUG( _M )  0
 #endif
 
-#define OS_EVENT_INDICATE( _A, _B, _F )
-#define OS_PMKID_STATUS_EVENT( _A )
-
 #endif // COMMON_DEF
 
index 02b11822b2cf39c887af73667b3005b947feb832..29f15689dcc0bb503345f9d42433b084236caeb7 100644 (file)
@@ -14,7 +14,6 @@
 #define MAX_USB_TX_BUFFER_NUMBER       4               // Virtual pre-buffer number of MAX_USB_TX_BUFFER
 #define MAX_USB_TX_BUFFER                      4096    // IS89C35 ability 4n alignment is required for hardware
 
-#define MDS_EVENT_INDICATE( _A, _B, _F )       OS_EVENT_INDICATE( _A, _B, _F )
 #define AUTH_REQUEST_PAIRWISE_ERROR                    0               // _F flag setting
 #define AUTH_REQUEST_GROUP_ERROR                       1               // _F flag setting
 
index da39eef7dce4c959a2a1d0564905732f13221b10..1fb8c3d78467b02816d1462301c295bf964e61f4 100644 (file)
@@ -223,8 +223,8 @@ static void hal_led_control(unsigned long data)
                                else
                                {
                                        // Is transmitting/receiving ??
-                                       if( (OS_CURRENT_RX_BYTE( adapter ) != pHwData->RxByteCountLast ) ||
-                                               (OS_CURRENT_TX_BYTE( adapter ) != pHwData->TxByteCountLast ) )
+                                       if( (adapter->RxByteCount != pHwData->RxByteCountLast ) ||
+                                               (adapter->TxByteCount != pHwData->TxByteCountLast ) )
                                        {
                                                if( (reg->U1BC_LEDConfigure & 0x3000) != 0x3000 )
                                                {
@@ -233,8 +233,8 @@ static void hal_led_control(unsigned long data)
                                                }
 
                                                // Update variable
-                                               pHwData->RxByteCountLast = OS_CURRENT_RX_BYTE( adapter );
-                                               pHwData->TxByteCountLast = OS_CURRENT_TX_BYTE( adapter );
+                                               pHwData->RxByteCountLast = adapter->RxByteCount;
+                                               pHwData->TxByteCountLast = adapter->TxByteCount;
                                                TimeInterval = 200;
                                        }
                                        else
@@ -849,7 +849,7 @@ void hal_surprise_remove(struct wb35_adapter *adapter)
                #ifdef _PE_STATE_DUMP_
                WBDEBUG(("Calling hal_surprise_remove\n"));
                #endif
-               OS_STOP( adapter );
+               WBLINUX_stop( adapter );
        }
 }