xenbus_client.c: correct exit path for xenbus_map_ring_valloc_hvm
[linux/fpc-iii.git] / drivers / staging / bcm / CmHost.h
blob4ddfc3d45bc0145d9be4bb4d1efe936d3c5500e8
1 /***************************************************************************
2 * (c) Beceem Communications Inc.
3 * All Rights Reserved
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
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 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;
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;
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);
60 #pragma pack(pop)
62 #endif