2008-10-30 08:14:35 -06:00
|
|
|
#ifndef __WINBOND_CORE_H
|
|
|
|
#define __WINBOND_CORE_H
|
|
|
|
|
2008-10-30 08:14:38 -06:00
|
|
|
#include <linux/wireless.h>
|
|
|
|
|
2009-03-02 03:19:56 -07:00
|
|
|
#include "mlme_s.h"
|
2008-10-30 08:14:38 -06:00
|
|
|
#include "wbhal_s.h"
|
2009-01-07 08:33:45 -07:00
|
|
|
#include "mto.h"
|
2008-10-30 08:14:38 -06:00
|
|
|
|
|
|
|
#define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4)
|
|
|
|
|
|
|
|
#define WB_MAX_LINK_NAME_LEN 40
|
2008-10-30 08:14:35 -06:00
|
|
|
|
|
|
|
struct wbsoft_priv {
|
2008-10-30 08:14:38 -06:00
|
|
|
u32 adapterIndex; // 20060703.4 Add for using padapterContext global adapter point
|
|
|
|
|
2009-12-18 14:08:15 -07:00
|
|
|
struct wb_local_para sLocalPara; // Myself connected parameters
|
2008-10-30 08:14:38 -06:00
|
|
|
|
|
|
|
MLME_FRAME sMlmeFrame; // connect to peerSTA parameters
|
|
|
|
|
2009-08-12 02:03:38 -06:00
|
|
|
struct wb35_mto_params sMtoPara; // MTO_struct ...
|
2009-01-12 09:02:47 -07:00
|
|
|
struct hw_data sHwData; //For HAL
|
2009-08-12 02:03:33 -06:00
|
|
|
struct wb35_mds Mds;
|
2008-10-30 08:14:38 -06:00
|
|
|
|
|
|
|
spinlock_t SpinLock;
|
|
|
|
|
|
|
|
atomic_t ThreadCount;
|
|
|
|
|
|
|
|
u32 RxByteCount;
|
|
|
|
u32 TxByteCount;
|
|
|
|
|
|
|
|
struct sk_buff *packet_return;
|
|
|
|
s32 netif_state_stop; // 1: stop 0: normal
|
|
|
|
struct iw_statistics iw_stats;
|
|
|
|
|
|
|
|
u8 LinkName[WB_MAX_LINK_NAME_LEN];
|
2008-10-30 10:12:04 -06:00
|
|
|
|
|
|
|
bool enabled;
|
2008-10-30 08:14:35 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __WINBOND_CORE_H */
|