First Support on Ginger and OMAP TI
[linux-ginger.git] / drivers / staging / rt3090 / mlme_ex.h
blobb3e94dc8837568caca64f4556315bf6b3ae91069
1 /*
2 *************************************************************************
3 * Ralink Tech Inc.
4 * 5F., No.36, Taiyuan St., Jhubei City,
5 * Hsinchu County 302,
6 * Taiwan, R.O.C.
8 * (c) Copyright 2002-2007, Ralink Technology, Inc.
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 * This program is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program; if not, write to the *
22 * Free Software Foundation, Inc., *
23 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
24 * *
25 *************************************************************************
27 Module Name:
28 mlme_ex.h
30 Abstract:
31 Miniport generic portion header file
33 Revision History:
34 Who When What
35 -------- ---------- ----------------------------------------------
36 Fonchi 2007-06-25 Extend original mlme APIs to support multi-entries
38 #ifndef __MLME_EX_H__
39 #define __MLME_EX_H__
41 #include "mlme_ex_def.h"
44 VOID StateMachineInitEx(
45 IN STATE_MACHINE_EX *S,
46 IN STATE_MACHINE_FUNC_EX Trans[],
47 IN ULONG StNr,
48 IN ULONG MsgNr,
49 IN STATE_MACHINE_FUNC_EX DefFunc,
50 IN ULONG InitState,
51 IN ULONG Base);
53 VOID StateMachineSetActionEx(
54 IN STATE_MACHINE_EX *S,
55 IN ULONG St,
56 IN ULONG Msg,
57 IN STATE_MACHINE_FUNC_EX Func);
59 BOOLEAN isValidApCliIf(
60 SHORT Idx);
62 VOID StateMachinePerformActionEx(
63 IN PRTMP_ADAPTER pAd,
64 IN STATE_MACHINE_EX *S,
65 IN MLME_QUEUE_ELEM *Elem,
66 USHORT Idx,
67 PULONG pCurrState);
69 BOOLEAN MlmeEnqueueEx(
70 IN PRTMP_ADAPTER pAd,
71 IN ULONG Machine,
72 IN ULONG MsgType,
73 IN ULONG MsgLen,
74 IN VOID *Msg,
75 IN USHORT Idx);
77 VOID DropEx(
78 IN PRTMP_ADAPTER pAd,
79 IN MLME_QUEUE_ELEM *Elem,
80 PULONG pCurrState,
81 USHORT Idx);
83 #endif /* __MLME_EX_H__ */