4 *Copyright (C) 2010 Beceem Communications, Inc.
6 *This program is free software: you can redistribute it and/or modify
7 *it under the terms of the GNU General Public License version 2 as
8 *published by the Free Software Foundation.
10 *This program is distributed in the hope that it will be useful,but
11 *WITHOUT ANY WARRANTY; without even the implied warranty of
12 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *See the GNU General Public License for more details.
15 *You should have received a copy of the GNU General Public License
16 *along with this program. If not, write to the Free Software Foundation, Inc.,
17 *51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 /**********************************************************************
23 * Definitions for Connection Management Requests structure
24 * which we will use to setup our connection structures.Its high
25 * time we had a header file for CmHost.cpp to isolate the way
26 * f/w sends DSx messages and the way we interpret them in code.
27 ***********************************************************************/
36 #define DSX_MESSAGE_EXCHANGE_BUFFER 0xBF60AC84 // This contains the pointer
37 #define DSX_MESSAGE_EXCHANGE_BUFFER_SIZE 72000 // 24 K Bytes
39 /// \brief structure stLocalSFAddRequest
40 typedef struct stLocalSFAddRequestAlt
{
51 /// \brief structure ParameterSet
52 stServiceFlowParamSI sfParameterSet
;
54 //USE_MEMORY_MANAGER();
55 }stLocalSFAddRequestAlt
;
57 /// \brief structure stLocalSFAddIndication
58 typedef struct stLocalSFAddIndicationAlt
{
66 /// \brief structure AuthorizedSet
67 stServiceFlowParamSI sfAuthorizedSet
;
68 /// \brief structure AdmittedSet
69 stServiceFlowParamSI sfAdmittedSet
;
70 /// \brief structure ActiveSet
71 stServiceFlowParamSI sfActiveSet
;
73 B_UINT8 u8CC
; /**< Confirmation Code*/
74 B_UINT8 u8Padd
; /**< 8-bit Padding */
75 B_UINT16 u16Padd
; /**< 16 bit Padding */
76 // USE_MEMORY_MANAGER();
77 }stLocalSFAddIndicationAlt
;
79 /// \brief structure stLocalSFAddConfirmation
80 typedef struct stLocalSFAddConfirmationAlt
{
88 /// \brief structure AuthorizedSet
89 stServiceFlowParamSI sfAuthorizedSet
;
90 /// \brief structure AdmittedSet
91 stServiceFlowParamSI sfAdmittedSet
;
92 /// \brief structure ActiveSet
93 stServiceFlowParamSI sfActiveSet
;
94 }stLocalSFAddConfirmationAlt
;
97 /// \brief structure stLocalSFChangeRequest
98 typedef struct stLocalSFChangeRequestAlt
{
107 //Pointer location at which following Service Flow param Structure can be read
108 //from the target. We get only the address location and we need to read out the
109 //entire SF param structure at the given location on target
111 /// \brief structure AuthorizedSet
112 stServiceFlowParamSI sfAuthorizedSet
;
113 /// \brief structure AdmittedSet
114 stServiceFlowParamSI sfAdmittedSet
;
115 /// \brief structure ParameterSet
116 stServiceFlowParamSI sfActiveSet
;
118 B_UINT8 u8CC
; /**< Confirmation Code*/
119 B_UINT8 u8Padd
; /**< 8-bit Padding */
120 B_UINT16 u16Padd
; /**< 16 bit */
122 }stLocalSFChangeRequestAlt
;
124 /// \brief structure stLocalSFChangeConfirmation
125 typedef struct stLocalSFChangeConfirmationAlt
{
133 /// \brief structure AuthorizedSet
134 stServiceFlowParamSI sfAuthorizedSet
;
135 /// \brief structure AdmittedSet
136 stServiceFlowParamSI sfAdmittedSet
;
137 /// \brief structure ActiveSet
138 stServiceFlowParamSI sfActiveSet
;
140 }stLocalSFChangeConfirmationAlt
;
142 /// \brief structure stLocalSFChangeIndication
143 typedef struct stLocalSFChangeIndicationAlt
{
151 /// \brief structure AuthorizedSet
152 stServiceFlowParamSI sfAuthorizedSet
;
153 /// \brief structure AdmittedSet
154 stServiceFlowParamSI sfAdmittedSet
;
155 /// \brief structure ActiveSet
156 stServiceFlowParamSI sfActiveSet
;
158 B_UINT8 u8CC
; /**< Confirmation Code*/
159 B_UINT8 u8Padd
; /**< 8-bit Padding */
160 B_UINT16 u16Padd
; /**< 16 bit */
162 }stLocalSFChangeIndicationAlt
;
164 ULONG
StoreCmControlResponseMessage(PMINI_ADAPTER Adapter
,PVOID pvBuffer
,UINT
*puBufferLength
);
166 ULONG
GetNextTargetBufferLocation(PMINI_ADAPTER Adapter
,B_UINT16 tid
);
168 INT
AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter
);
170 INT
FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter
);
171 ULONG
SetUpTargetDsxBuffers(PMINI_ADAPTER Adapter
);
173 BOOLEAN
CmControlResponseMessage(PMINI_ADAPTER Adapter
,PVOID pvBuffer
);
175 VOID
deleteSFBySfid(PMINI_ADAPTER Adapter
, UINT uiSearchRuleIndex
);