Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126569
b: refs/heads/master
c: 80aba53
h: refs/heads/master
i:
  126567: 07dea45
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 342ec1b commit 8dded30
Show file tree
Hide file tree
Showing 42 changed files with 209 additions and 95 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8971280fb21354b118956bed506f79a515759410
refs/heads/master: 80aba53616a5f2f97adf386a2a3ccd5fb0dbfdd6
11 changes: 11 additions & 0 deletions trunk/drivers/staging/winbond/adapter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#ifndef __WINBOND_ADAPTER_H
#define __WINBOND_ADAPTER_H

#include <linux/wireless.h>

#include "bssdscpt.h"
#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 )
Expand Down Expand Up @@ -45,3 +54,5 @@ struct wb35_adapter {

u8 LinkName[MAX_ANSI_STRING];
};

#endif
12 changes: 8 additions & 4 deletions trunk/drivers/staging/winbond/bss_f.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#ifndef __WINBOND_BSS_F_H
#define __WINBOND_BSS_F_H

#include "adapter.h"

struct PMKID_Information_Element;

//
// BSS descriptor DataBase management global function
//
Expand Down Expand Up @@ -53,7 +60,4 @@ u16 SearchPmkid(struct wb35_adapter * adapter, struct Management_Frame* msgHead
struct PMKID_Information_Element * AssoReq_PMKID );
#endif





#endif
10 changes: 9 additions & 1 deletion trunk/drivers/staging/winbond/bssdscpt.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#ifndef __WINBOND_BSSDSCPT_H
#define __WINBOND_BSSDSCPT_H

#include <linux/types.h>

#include "mds_s.h"
#include "mlme_s.h"

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// bssdscpt.c
// BSS descriptor data base
Expand Down Expand Up @@ -153,4 +161,4 @@ typedef struct BSSDescriptionElement

#define psBSS(i) (&(adapter->asBSSDescriptElement[(i)]))


#endif
8 changes: 6 additions & 2 deletions trunk/drivers/staging/winbond/ds_tkip.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#ifndef __WINBOND_DS_TKIP_H
#define __WINBOND_DS_TKIP_H

#include <linux/types.h>

// Rotation functions on 32 bit values
#define ROL32( A, n ) \
( ((A) << (n)) | ( ((A)>>(32-(n))) & ( (1UL << (n)) - 1 ) ) )
Expand Down Expand Up @@ -29,5 +34,4 @@ typedef struct tkip
void Mds_MicGet( void* adapter, void* pRxLayer1, u8 *pKey, u8 *pMic );
void Mds_MicFill( void* adapter, void* pDes, u8 *XmitBufAddress );



#endif
3 changes: 2 additions & 1 deletion trunk/drivers/staging/winbond/gl_80211.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#ifndef __GL_80211_H__
#define __GL_80211_H__

#include <linux/types.h>

/****************** CONSTANT AND MACRO SECTION ******************************/

/* BSS Type */
Expand Down
21 changes: 0 additions & 21 deletions trunk/drivers/staging/winbond/linux/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,6 @@
#ifndef COMMON_DEF
#define COMMON_DEF

#include <linux/version.h>
#include <linux/usb.h>
#include <linux/kernel.h> //need for kernel alert
#include <linux/autoconf.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/slab.h> //memory allocate
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/init.h>//need for init and exit modules marco
#include <linux/ctype.h>
#include <linux/wait.h>
#include <linux/list.h>
#include <linux/wireless.h>
#include <linux/if_arp.h>
#include <asm/uaccess.h>
#include <net/iw_handler.h>
#include <linux/skbuff.h>


//#define DEBUG_ENABLED 1

//==================================================================================================
Expand Down
29 changes: 0 additions & 29 deletions trunk/drivers/staging/winbond/linux/sysdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,36 +37,7 @@
#define _PE_USB_INI_DUMP_
#endif



#include "common.h" // Individual file depends on OS

#include "../wb35_ver.h"
#include "../mac_structures.h"
#include "../ds_tkip.h"
#include "../localpara.h"
#include "../sme_s.h"
#include "../scan_s.h"
#include "../mds_s.h"
#include "../mlme_s.h"
#include "../bssdscpt.h"
#include "../sme_api.h"
#include "../gl_80211.h"
#include "../mto.h"
#include "../wbhal_s.h"


#include "../adapter.h"

#include "../mlme_mib.h"
#include "../mds_f.h"
#include "../bss_f.h"
#include "../mlmetxrx_f.h"
#include "../mto_f.h"
#include "../wbhal_f.h"
#include "../wblinux_f.h"
// Kernel Timer resolution, NDIS is 10ms, 10000us
#define MIN_TIMEOUT_VAL (10) //ms


#endif
3 changes: 3 additions & 0 deletions trunk/drivers/staging/winbond/linux/wb35reg.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "sysdef.h"
#include "wb35reg_f.h"

#include <linux/usb.h>

extern void phy_calibration_winbond(hw_data_t *phw_data, u32 frequency);

Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/staging/winbond/linux/wb35reg_f.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#ifndef __WINBOND_WB35REG_F_H
#define __WINBOND_WB35REG_F_H

#include "../wbhal_s.h"

//====================================
// Interface function declare
//====================================
Expand Down Expand Up @@ -53,4 +58,4 @@ void Wb35Reg_phy_calibration( phw_data_t pHwData );
void Wb35Reg_Update( phw_data_t pHwData, u16 RegisterNo, u32 RegisterValue );
unsigned char adjust_TXVGA_for_iq_mag( phw_data_t pHwData );


#endif
9 changes: 8 additions & 1 deletion trunk/drivers/staging/winbond/linux/wb35reg_s.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#ifndef __WINBOND_WB35REG_S_H
#define __WINBOND_WB35REG_S_H

#include <linux/spinlock.h>
#include <linux/types.h>
#include <asm/atomic.h>

//=======================================================================================
/*
HAL setting function
Expand Down Expand Up @@ -162,4 +169,4 @@ struct wb35_reg {

};


#endif
3 changes: 3 additions & 0 deletions trunk/drivers/staging/winbond/linux/wb35rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
// Processing the Rx message from down layer
//
//============================================================================
#include <linux/usb.h>

#include "sysdef.h"
#include "wb35rx_f.h"

void Wb35Rx_start(phw_data_t pHwData)
{
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/staging/winbond/linux/wb35rx_f.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#ifndef __WINBOND_WB35RX_F_H
#define __WINBOND_WB35RX_F_H

#include "../wbhal_s.h"

//====================================
// Interface function declare
//====================================
Expand All @@ -12,6 +17,4 @@ void Wb35Rx_start( phw_data_t pHwData );
void Wb35Rx( phw_data_t pHwData );
void Wb35Rx_Complete(struct urb *urb);




#endif
5 changes: 4 additions & 1 deletion trunk/drivers/staging/winbond/linux/wb35tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
// Processing the Tx message and put into down layer
//
//============================================================================
#include "sysdef.h"
#include <linux/usb.h>

#include "wb35tx_f.h"
#include "../mds_f.h"
#include "sysdef.h"

unsigned char
Wb35Tx_get_tx_buffer(phw_data_t pHwData, u8 **pBuffer)
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/staging/winbond/linux/wb35tx_f.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#ifndef __WINBOND_WB35TX_F_H
#define __WINBOND_WB35TX_F_H

#include "../wbhal_f.h"

//====================================
// Interface function declare
//====================================
Expand All @@ -17,4 +22,4 @@ void Wb35Tx_reset_descriptor( phw_data_t pHwData );

void Wb35Tx_CurrentTime( phw_data_t pHwData, u32 TimeCount );


#endif
10 changes: 6 additions & 4 deletions trunk/drivers/staging/winbond/linux/wb35tx_s.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#ifndef __WINBOND_WB35_TX_S_H
#define __WINBOND_WB35_TX_S_H

#include "../mds_s.h"

//====================================
// IS89C35 Tx related definition
//====================================
Expand Down Expand Up @@ -41,7 +46,4 @@ typedef struct _WB35TX

} WB35TX, *PWB35TX;





#endif
6 changes: 5 additions & 1 deletion trunk/drivers/staging/winbond/linux/wbusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
*
* Distribute under GPLv2.
*/
#include "sysdef.h"
#include <net/mac80211.h>
#include <linux/usb.h>

#include "../mlmetxrx_f.h"
#include "../wbhal_f.h"
#include "../wblinux_f.h"

MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
Expand Down
12 changes: 7 additions & 5 deletions trunk/drivers/staging/winbond/linux/wbusb_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#ifndef __WINBOND_WBUSB_S_H
#define __WINBOND_WBUSB_S_H

#include <linux/types.h>

//---------------------------------------------------------------------------
// RW_CONTEXT --
//
Expand All @@ -23,16 +28,13 @@ typedef struct _RW_CONTEXT
void* pCallBackFunctionParameter;
} RW_CONTEXT, *PRW_CONTEXT;




#define DRIVER_AUTHOR "Original by: Jeff Lee<YY_Lee@issc.com.tw> Adapted to 2.6.x by Costantino Leandro (Rxart Desktop) <le_costantino@pixartargentina.com.ar>"
#define DRIVER_DESC "IS89C35 802.11bg WLAN USB Driver"



typedef struct _WBUSB {
u32 IsUsb20;
struct usb_device *udev;
u32 DetectCount;
} WBUSB, *PWBUSB;

#endif
8 changes: 7 additions & 1 deletion trunk/drivers/staging/winbond/localpara.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#ifndef __WINBOND_LOCALPARA_H
#define __WINBOND_LOCALPARA_H

//=============================================================
// LocalPara.h -
//=============================================================

#include "mac_structures.h"

//Define the local ability

#define LOCAL_DEFAULT_BEACON_PERIOD 100 //ms
Expand Down Expand Up @@ -272,4 +278,4 @@ typedef struct LOCAL_PARA

} WB_LOCALDESCRIPT, *PWB_LOCALDESCRIPT;


#endif
7 changes: 2 additions & 5 deletions trunk/drivers/staging/winbond/mac_structures.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef _MAC_Structures_H_
#define _MAC_Structures_H_

#include <linux/skbuff.h>

//=========================================================
// Some miscellaneous definitions
Expand Down Expand Up @@ -115,10 +116,6 @@
#define WLAN_MAX_PAIRWISE_CIPHER_SUITE_COUNT ((u16) 6)
#define WLAN_MAX_AUTH_KEY_MGT_SUITE_LIST_COUNT ((u16) 2)

#ifdef WB_LINUX
#define UNALIGNED
#endif

//========================================================
typedef enum enum_PowerManagementMode
{
Expand Down Expand Up @@ -464,7 +461,7 @@ struct RSN_Information_Element
{
u8 Element_ID;
u8 Length;
UNALIGNED SUITE_SELECTOR OuiWPAAdditional;//WPA version 2.0 additional field, and should be 00:50:F2:01
SUITE_SELECTOR OuiWPAAdditional;//WPA version 2.0 additional field, and should be 00:50:F2:01
u16 Version;
SUITE_SELECTOR GroupKeySuite;
u16 PairwiseKeySuiteCount;
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/staging/winbond/mds.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#include "ds_tkip.h"
#include "gl_80211.h"
#include "mds_f.h"
#include "mlmetxrx_f.h"
#include "mto_f.h"
#include "os_common.h"
#include "wbhal_f.h"
#include "wblinux_f.h"

void
Mds_reset_descriptor(struct wb35_adapter * adapter)
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/staging/winbond/mds_f.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#ifndef __WINBOND_MDS_F_H
#define __WINBOND_MDS_F_H

#include "wbhal_s.h"
#include "adapter.h"

unsigned char Mds_initial( struct wb35_adapter *adapter );
void Mds_Destroy( struct wb35_adapter *adapter );
void Mds_Tx( struct wb35_adapter *adapter );
Expand All @@ -24,4 +30,4 @@ void MDS_GetNextPacketComplete( struct wb35_adapter *adapter, PDESCRIPTOR pDes
void MDS_SendResult( struct wb35_adapter *adapter, u8 PacketId, unsigned char SendOK );
void MDS_EthernetPacketReceive( struct wb35_adapter *adapter, PRXLAYER1 pRxLayer1 );


#endif
Loading

0 comments on commit 8dded30

Please sign in to comment.