• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19 
20 #pragma once
21 #pragma pack(push, 4)
22 
23 #define DSX_MESSAGE_EXCHANGE_BUFFER        0xBF60AC84 /* This contains the pointer */
24 #define DSX_MESSAGE_EXCHANGE_BUFFER_SIZE   72000      /* 24 K Bytes */
25 
26 struct bcm_add_indication_alt {
27 	u8	u8Type;
28 	u8	u8Direction;
29 	u16	u16TID;
30 	u16	u16CID;
31 	u16	u16VCID;
32 	struct bcm_connect_mgr_params sfAuthorizedSet;
33 	struct bcm_connect_mgr_params sfAdmittedSet;
34 	struct bcm_connect_mgr_params sfActiveSet;
35 	u8	u8CC;    /* < Confirmation Code */
36 	u8	u8Padd;
37 	u16	u16Padd;
38 };
39 
40 struct bcm_change_indication {
41 	u8	u8Type;
42 	u8	u8Direction;
43 	u16	u16TID;
44 	u16	u16CID;
45 	u16	u16VCID;
46 	struct bcm_connect_mgr_params sfAuthorizedSet;
47 	struct bcm_connect_mgr_params sfAdmittedSet;
48 	struct bcm_connect_mgr_params sfActiveSet;
49 	u8	u8CC;    /* < Confirmation Code */
50 	u8	u8Padd;
51 	u16	u16Padd;
52 };
53 
54 unsigned long StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, void *pvBuffer, unsigned int *puBufferLength);
55 int AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
56 int FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
57 unsigned long SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter);
58 BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, void *pvBuffer);
59 
60 #pragma pack(pop)
61 
62 #endif
63