GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / include / Common / CmHost.h
blob2c4072e3e40e69d3e2898d8bebfcc79f7fa7fd52
1 /*
2 * CmHost.h
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 ***********************************************************************/
30 #ifndef _CM_HOST_H
31 #define _CM_HOST_H
33 #pragma once
34 #pragma pack (push,4)
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{
41 B_UINT8 u8Type;
42 B_UINT8 u8Direction;
44 B_UINT16 u16TID;
45 /// \brief 16bitCID
46 B_UINT16 u16CID;
47 /// \brief 16bitVCID
48 B_UINT16 u16VCID;
51 /// \brief structure ParameterSet
52 stServiceFlowParamSI sfParameterSet;
54 //USE_MEMORY_MANAGER();
55 }stLocalSFAddRequestAlt;
57 /// \brief structure stLocalSFAddIndication
58 typedef struct stLocalSFAddIndicationAlt{
59 B_UINT8 u8Type;
60 B_UINT8 u8Direction;
61 B_UINT16 u16TID;
62 /// \brief 16bitCID
63 B_UINT16 u16CID;
64 /// \brief 16bitVCID
65 B_UINT16 u16VCID;
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{
81 B_UINT8 u8Type;
82 B_UINT8 u8Direction;
83 B_UINT16 u16TID;
84 /// \brief 16bitCID
85 B_UINT16 u16CID;
86 /// \brief 16bitVCID
87 B_UINT16 u16VCID;
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{
99 B_UINT8 u8Type;
100 B_UINT8 u8Direction;
101 B_UINT16 u16TID;
102 /// \brief 16bitCID
103 B_UINT16 u16CID;
104 /// \brief 16bitVCID
105 B_UINT16 u16VCID;
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{
126 B_UINT8 u8Type;
127 B_UINT8 u8Direction;
128 B_UINT16 u16TID;
129 /// \brief 16bitCID
130 B_UINT16 u16CID;
131 /// \brief 16bitVCID
132 B_UINT16 u16VCID;
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{
144 B_UINT8 u8Type;
145 B_UINT8 u8Direction;
146 B_UINT16 u16TID;
147 /// \brief 16bitCID
148 B_UINT16 u16CID;
149 /// \brief 16bitVCID
150 B_UINT16 u16VCID;
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);
177 #pragma pack (pop)
179 #endif