Staging: bcm: Add two products and remove an existing product.
[linux/fpc-iii.git] / drivers / staging / bcm / CmHost.h
blob1c5a07c7bbe2b6f39d7c57f251802a49b6c7747c
1 /// **************************************************************************
2 /// (c) Beceem Communications Inc.
3 /// All Rights Reserved
4 ///
5 /// \file : CmHost.h
6 /// \author : Rajeev Tirumala
7 /// \date : September 8 , 2006
8 /// \brief : Definitions for Connection Management Requests structure
9 /// which we will use to setup our connection structures.Its high
10 /// time we had a header file for CmHost.cpp to isolate the way
11 /// f/w sends DSx messages and the way we interpret them in code.
12 /// Revision History
13 ///
14 /// Date Author Version Description
15 /// 08-Sep-06 Rajeev 0.1 Created
16 /// **************************************************************************
17 #ifndef _CM_HOST_H
18 #define _CM_HOST_H
20 #pragma once
21 #pragma pack (push,4)
23 #define DSX_MESSAGE_EXCHANGE_BUFFER 0xBF60AC84 // This contains the pointer
24 #define DSX_MESSAGE_EXCHANGE_BUFFER_SIZE 72000 // 24 K Bytes
26 /// \brief structure stLocalSFAddRequest
27 typedef struct stLocalSFAddRequestAlt{
28 B_UINT8 u8Type;
29 B_UINT8 u8Direction;
31 B_UINT16 u16TID;
32 /// \brief 16bitCID
33 B_UINT16 u16CID;
34 /// \brief 16bitVCID
35 B_UINT16 u16VCID;
38 struct bcm_connect_mgr_params sfParameterSet;
40 //USE_MEMORY_MANAGER();
41 }stLocalSFAddRequestAlt;
43 /// \brief structure stLocalSFAddIndication
44 typedef struct stLocalSFAddIndicationAlt{
45 B_UINT8 u8Type;
46 B_UINT8 u8Direction;
47 B_UINT16 u16TID;
48 /// \brief 16bitCID
49 B_UINT16 u16CID;
50 /// \brief 16bitVCID
51 B_UINT16 u16VCID;
52 struct bcm_connect_mgr_params sfAuthorizedSet;
53 struct bcm_connect_mgr_params sfAdmittedSet;
54 struct bcm_connect_mgr_params sfActiveSet;
56 B_UINT8 u8CC; /**< Confirmation Code*/
57 B_UINT8 u8Padd; /**< 8-bit Padding */
58 B_UINT16 u16Padd; /**< 16 bit Padding */
59 // USE_MEMORY_MANAGER();
60 }stLocalSFAddIndicationAlt;
62 /// \brief structure stLocalSFAddConfirmation
63 typedef struct stLocalSFAddConfirmationAlt{
64 B_UINT8 u8Type;
65 B_UINT8 u8Direction;
66 B_UINT16 u16TID;
67 /// \brief 16bitCID
68 B_UINT16 u16CID;
69 /// \brief 16bitVCID
70 B_UINT16 u16VCID;
71 struct bcm_connect_mgr_params sfAuthorizedSet;
72 struct bcm_connect_mgr_params sfAdmittedSet;
73 struct bcm_connect_mgr_params sfActiveSet;
74 }stLocalSFAddConfirmationAlt;
77 /// \brief structure stLocalSFChangeRequest
78 typedef struct stLocalSFChangeRequestAlt{
79 B_UINT8 u8Type;
80 B_UINT8 u8Direction;
81 B_UINT16 u16TID;
82 /// \brief 16bitCID
83 B_UINT16 u16CID;
84 /// \brief 16bitVCID
85 B_UINT16 u16VCID;
87 //Pointer location at which following connection manager param Structure can be read
88 //from the target. We only get the address location and we need to read out the
89 //entire connection manager param structure at the given location on target
91 struct bcm_connect_mgr_params sfAuthorizedSet;
92 struct bcm_connect_mgr_params sfAdmittedSet;
93 struct bcm_connect_mgr_params sfActiveSet;
95 B_UINT8 u8CC; /**< Confirmation Code*/
96 B_UINT8 u8Padd; /**< 8-bit Padding */
97 B_UINT16 u16Padd; /**< 16 bit */
99 }stLocalSFChangeRequestAlt;
101 /// \brief structure stLocalSFChangeConfirmation
102 typedef struct stLocalSFChangeConfirmationAlt{
103 B_UINT8 u8Type;
104 B_UINT8 u8Direction;
105 B_UINT16 u16TID;
106 /// \brief 16bitCID
107 B_UINT16 u16CID;
108 /// \brief 16bitVCID
109 B_UINT16 u16VCID;
110 struct bcm_connect_mgr_params sfAuthorizedSet;
111 struct bcm_connect_mgr_params sfAdmittedSet;
112 struct bcm_connect_mgr_params sfActiveSet;
114 }stLocalSFChangeConfirmationAlt;
116 /// \brief structure stLocalSFChangeIndication
117 typedef struct stLocalSFChangeIndicationAlt{
118 B_UINT8 u8Type;
119 B_UINT8 u8Direction;
120 B_UINT16 u16TID;
121 /// \brief 16bitCID
122 B_UINT16 u16CID;
123 /// \brief 16bitVCID
124 B_UINT16 u16VCID;
125 struct bcm_connect_mgr_params sfAuthorizedSet;
126 struct bcm_connect_mgr_params sfAdmittedSet;
127 struct bcm_connect_mgr_params sfActiveSet;
129 B_UINT8 u8CC; /**< Confirmation Code*/
130 B_UINT8 u8Padd; /**< 8-bit Padding */
131 B_UINT16 u16Padd; /**< 16 bit */
133 }stLocalSFChangeIndicationAlt;
135 ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer,UINT *puBufferLength);
137 INT AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
139 INT FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
140 ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter);
142 BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer);
145 #pragma pack (pop)
147 #endif