Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 1 | #ifndef __WINBOND_CORE_H |
| 2 | #define __WINBOND_CORE_H |
| 3 | |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 4 | #include <linux/wireless.h> |
| 5 | |
Pekka Enberg | d2443c5 | 2009-03-02 12:19:56 +0200 | [diff] [blame] | 6 | #include "mlme_s.h" |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 7 | #include "wbhal_s.h" |
Pekka Enberg | 64328c8 | 2009-01-07 17:33:45 +0200 | [diff] [blame] | 8 | #include "mto.h" |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 9 | |
| 10 | #define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4) |
| 11 | |
| 12 | #define WB_MAX_LINK_NAME_LEN 40 |
Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 13 | |
| 14 | struct wbsoft_priv { |
Ruslan Pisarev | 5dcf8f6 | 2010-03-20 15:37:21 +0200 | [diff] [blame^] | 15 | u32 adapterIndex; /* 20060703.4 Add for using padapterContext |
| 16 | global adapter point */ |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 17 | |
Ruslan Pisarev | 5dcf8f6 | 2010-03-20 15:37:21 +0200 | [diff] [blame^] | 18 | struct wb_local_para sLocalPara; /* Myself connected |
| 19 | parameters */ |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 20 | |
Ruslan Pisarev | 5dcf8f6 | 2010-03-20 15:37:21 +0200 | [diff] [blame^] | 21 | MLME_FRAME sMlmeFrame; /* connect to peerSTA parameters */ |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 22 | |
Ruslan Pisarev | 5dcf8f6 | 2010-03-20 15:37:21 +0200 | [diff] [blame^] | 23 | struct wb35_mto_params sMtoPara; /* MTO_struct ... */ |
| 24 | struct hw_data sHwData; /*For HAL */ |
Pekka Enberg | b7caf94 | 2009-08-12 11:03:33 +0300 | [diff] [blame] | 25 | struct wb35_mds Mds; |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 26 | |
| 27 | spinlock_t SpinLock; |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 28 | |
| 29 | atomic_t ThreadCount; |
| 30 | |
| 31 | u32 RxByteCount; |
| 32 | u32 TxByteCount; |
| 33 | |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 34 | struct sk_buff *packet_return; |
Ruslan Pisarev | 5dcf8f6 | 2010-03-20 15:37:21 +0200 | [diff] [blame^] | 35 | s32 netif_state_stop; /* 1: stop 0: normal */ |
Pekka Enberg | 1e8a2b6 | 2008-10-30 16:14:38 +0200 | [diff] [blame] | 36 | struct iw_statistics iw_stats; |
| 37 | |
| 38 | u8 LinkName[WB_MAX_LINK_NAME_LEN]; |
Pekka Enberg | c930e0c0 | 2008-10-30 18:12:04 +0200 | [diff] [blame] | 39 | |
| 40 | bool enabled; |
Pekka Enberg | cc18071 | 2008-10-30 16:14:35 +0200 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | #endif /* __WINBOND_CORE_H */ |