mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Jeff Mahoney](/assets/img/avatar_default.png)
linux/delay.h is pulled in somehow on x86 but not on ia64 or powerpc. This fixes a build failure on those arches since they use [mu]delay. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
65 lines
1.3 KiB
C
65 lines
1.3 KiB
C
#ifndef __WINBOND_CORE_H
|
|
#define __WINBOND_CORE_H
|
|
|
|
#include <linux/wireless.h>
|
|
#include <linux/types.h>
|
|
#include <linux/delay.h>
|
|
|
|
#include "wbhal.h"
|
|
#include "mto.h"
|
|
|
|
#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 */
|
|
};
|
|
|
|
#define WBLINUX_PACKET_ARRAY_SIZE (ETHERNET_TX_DESCRIPTORS*4)
|
|
|
|
#define WB_MAX_LINK_NAME_LEN 40
|
|
|
|
struct wbsoft_priv {
|
|
struct wb_local_para sLocalPara; /* Myself connected
|
|
parameters */
|
|
|
|
struct mlme_frame sMlmeFrame; /* connect to peerSTA parameters */
|
|
|
|
struct wb35_mto_params sMtoPara; /* MTO_struct ... */
|
|
struct hw_data sHwData; /*For HAL */
|
|
struct wb35_mds Mds;
|
|
|
|
atomic_t ThreadCount;
|
|
|
|
u32 RxByteCount;
|
|
u32 TxByteCount;
|
|
|
|
u8 LinkName[WB_MAX_LINK_NAME_LEN];
|
|
|
|
bool enabled;
|
|
};
|
|
|
|
#endif /* __WINBOND_CORE_H */
|