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>
|
2010-09-19 03:28:41 -06:00
|
|
|
#include <linux/types.h>
|
2011-02-24 12:49:00 -07:00
|
|
|
#include <linux/delay.h>
|
2008-10-30 08:14:38 -06:00
|
|
|
|
2010-11-01 13:50:06 -06:00
|
|
|
#include "wbhal.h"
|
2009-01-07 08:33:45 -07:00
|
|
|
#include "mto.h"
|
2008-10-30 08:14:38 -06:00
|
|
|
|
2010-09-19 03:28:41 -06:00
|
|
|
#include "mac_structures.h"
|
|
|
|
#include "mds_s.h"
|
|
|
|
|
|
|
|
#define MAX_NUM_TX_MMPDU 2
|
|
|
|
#define MAX_MMPDU_SIZE 1512
|
|
|
|
#define MAX_NUM_RX_MMPDU 6
|
|
|
|
|
|
|
|
struct mlme_frame {
|
|
|
|
s8 *pMMPDU;
|
|
|
|
u16 len;
|
|
|
|
u8 DataType;
|
|
|
|
u8 IsInUsed;
|
|
|
|
|
|
|
|
u8 TxMMPDU[MAX_NUM_TX_MMPDU][MAX_MMPDU_SIZE];
|
|
|
|
u8 TxMMPDUInUse[(MAX_NUM_TX_MMPDU + 3) & ~0x03];
|
|
|
|
|
|
|
|
u16 wNumTxMMPDU;
|
|
|
|
u16 wNumTxMMPDUDiscarded;
|
|
|
|
|
|
|
|
u8 RxMMPDU[MAX_NUM_RX_MMPDU][MAX_MMPDU_SIZE];
|
|
|
|
u8 SaveRxBufSlotInUse[(MAX_NUM_RX_MMPDU + 3) & ~0x03];
|
|
|
|
|
|
|
|
u16 wNumRxMMPDU;
|
|
|
|
u16 wNumRxMMPDUDiscarded;
|
|
|
|
|
|
|
|
u16 wNumRxMMPDUInMLME; /* Number of the Rx MMPDU */
|
|
|
|
u16 reserved_1; /* in MLME. */
|
|
|
|
/* excluding the discarded */
|
|
|
|
};
|
|
|
|
|
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 {
|
2010-03-20 07:37:21 -06:00
|
|
|
struct wb_local_para sLocalPara; /* Myself connected
|
|
|
|
parameters */
|
2008-10-30 08:14:38 -06:00
|
|
|
|
2010-09-19 03:28:38 -06:00
|
|
|
struct mlme_frame sMlmeFrame; /* connect to peerSTA parameters */
|
2008-10-30 08:14:38 -06:00
|
|
|
|
2010-03-20 07:37:21 -06:00
|
|
|
struct wb35_mto_params sMtoPara; /* MTO_struct ... */
|
|
|
|
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
|
|
|
|
|
|
|
atomic_t ThreadCount;
|
|
|
|
|
|
|
|
u32 RxByteCount;
|
|
|
|
u32 TxByteCount;
|
|
|
|
|
|
|
|
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 */
|