Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141153
b: refs/heads/master
c: 57a9444
h: refs/heads/master
i:
  141151: bb802aa
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent d955092 commit 5cad60c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 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: 8e41b4b65d20f1321bc969b5de6038d5be33c9bd
refs/heads/master: 57a944435fd0c56ffde42288d8515020b2859e30
14 changes: 7 additions & 7 deletions trunk/drivers/staging/winbond/mto.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ static int PeriodTotalTxPktRetry = 0;

static u8 boSparseTxTraffic = false;

void MTO_Init(MTO_FUNC_INPUT);
void TxRateReductionCtrl(MTO_FUNC_INPUT);
void MTO_Init(struct wbsoft_priv *adapter);
void TxRateReductionCtrl(struct wbsoft_priv *adapter);
/** 1.1.31.1000 Turbo modify */
void MTO_SetTxCount(MTO_FUNC_INPUT, u8 t0, u8 index);
void MTO_TxFailed(MTO_FUNC_INPUT);
void hal_get_dto_para(MTO_FUNC_INPUT, char *buffer);
void MTO_SetTxCount(struct wbsoft_priv *adapter, u8 t0, u8 index);
void MTO_TxFailed(struct wbsoft_priv *adapter);
void hal_get_dto_para(struct wbsoft_priv *adapter, char *buffer);

//===========================================================================
// MTO_Init --
Expand All @@ -74,7 +74,7 @@ void hal_get_dto_para(MTO_FUNC_INPUT, char *buffer);
// Return Value:
// None
//============================================================================
void MTO_Init(MTO_FUNC_INPUT)
void MTO_Init(struct wbsoft_priv *adapter)
{
int i;
//[WKCHEN]pMTOcore_data = pcore_data;
Expand Down Expand Up @@ -189,7 +189,7 @@ void MTO_Init(MTO_FUNC_INPUT)
// If we enable DTO, we will ignore the tx count with different tx rate from
// DTO rate. This is because when we adjust DTO tx rate, there could be some
// packets in the tx queue with previous tx rate
void MTO_SetTxCount(MTO_FUNC_INPUT, u8 tx_rate, u8 index)
void MTO_SetTxCount(struct wbsoft_priv *adapter, u8 tx_rate, u8 index)
{
MTO_TXFLOWCOUNT()++;
if ((MTO_ENABLE==1) && (MTO_RATE_CHANGE_ENABLE()==1))
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/staging/winbond/mto.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ typedef struct _MTO_PARAMETERS
} MTO_PARAMETERS, *PMTO_PARAMETERS;


#define MTO_FUNC_INPUT struct wbsoft_priv * adapter
#define MTO_FUNC_INPUT_DATA adapter
#define MTO_DATA() (adapter->sMtoPara)
#define MTO_HAL() (&adapter->sHwData)
#define MTO_SET_PREAMBLE_TYPE(x) // 20040511 Turbo mark LM_PREAMBLE_TYPE(&pcore_data->lm_data) = (x)
Expand Down Expand Up @@ -264,9 +262,9 @@ typedef struct _STATISTICS_INFO {
extern void MTO_Init(struct wbsoft_priv *);
extern void MTO_PeriodicTimerExpired(struct wbsoft_priv *);
extern void MTO_SetDTORateRange(struct wbsoft_priv *, u8 *, u8);
extern u8 MTO_GetTxRate(MTO_FUNC_INPUT, u32 fpdu_len);
extern u8 MTO_GetTxFallbackRate(MTO_FUNC_INPUT);
extern void MTO_SetTxCount(MTO_FUNC_INPUT, u8 t0, u8 index);
extern u8 MTO_GetTxRate(struct wbsoft_priv *adapter, u32 fpdu_len);
extern u8 MTO_GetTxFallbackRate(struct wbsoft_priv *adapter);
extern void MTO_SetTxCount(struct wbsoft_priv *adapter, u8 t0, u8 index);

#endif //__MTO_H__

Expand Down

0 comments on commit 5cad60c

Please sign in to comment.