diff options
author | Kevin McKinney <klmckinney1@gmail.com> | 2012-09-23 23:07:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-26 12:31:52 -0400 |
commit | b766fb15e1c489d1e5b5a80501593f61fae3a7eb (patch) | |
tree | 9967c86558b95fde8679546806da27fffa2955d2 | |
parent | fc1ad16277bd14c6a4f16a2e32cae186fd6d039e (diff) |
Staging: bcm: Remove typedef for _stServiceFlowParamSI and call directly.
This patch removes typedef for _stServiceFlowParamSI,
changes the name of the struct to
bcm_connect_mgr_params, and updates the
comments appropriately. In addition, any
calls to typedefs "stServiceFlowParamSI,
*pstServiceFlowParamSI, and CServiceFlowParamSI"
are changed to call the struct directly.
Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/bcm/CmHost.c | 26 | ||||
-rw-r--r-- | drivers/staging/bcm/CmHost.h | 54 | ||||
-rw-r--r-- | drivers/staging/bcm/Prototypes.h | 2 | ||||
-rw-r--r-- | drivers/staging/bcm/cntrl_SignalingInterface.h | 20 | ||||
-rw-r--r-- | drivers/staging/bcm/hostmibs.c | 2 |
5 files changed, 40 insertions, 64 deletions
diff --git a/drivers/staging/bcm/CmHost.c b/drivers/staging/bcm/CmHost.c index 96fd1586f085..af7f7c6e6f66 100644 --- a/drivers/staging/bcm/CmHost.c +++ b/drivers/staging/bcm/CmHost.c | |||
@@ -428,7 +428,7 @@ VOID DeleteAllClassifiersForSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRu | |||
428 | * @ingroup ctrl_pkt_functions | 428 | * @ingroup ctrl_pkt_functions |
429 | */ | 429 | */ |
430 | static VOID CopyToAdapter(register struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */ | 430 | static VOID CopyToAdapter(register struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */ |
431 | register pstServiceFlowParamSI psfLocalSet, /* <Pointer to the ServiceFlowParamSI structure */ | 431 | register struct bcm_connect_mgr_params *psfLocalSet, /* Pointer to the connection manager parameters structure */ |
432 | register UINT uiSearchRuleIndex, /* <Index of Queue, to which this data belongs */ | 432 | register UINT uiSearchRuleIndex, /* <Index of Queue, to which this data belongs */ |
433 | register UCHAR ucDsxType, | 433 | register UCHAR ucDsxType, |
434 | stLocalSFAddIndicationAlt *pstAddIndication) { | 434 | stLocalSFAddIndicationAlt *pstAddIndication) { |
@@ -1300,7 +1300,7 @@ static VOID DumpCmControlPacket(PVOID pvBuffer) | |||
1300 | 1300 | ||
1301 | static inline ULONG RestoreSFParam(struct bcm_mini_adapter *Adapter, ULONG ulAddrSFParamSet, PUCHAR pucDestBuffer) | 1301 | static inline ULONG RestoreSFParam(struct bcm_mini_adapter *Adapter, ULONG ulAddrSFParamSet, PUCHAR pucDestBuffer) |
1302 | { | 1302 | { |
1303 | UINT nBytesToRead = sizeof(stServiceFlowParamSI); | 1303 | UINT nBytesToRead = sizeof(struct bcm_connect_mgr_params); |
1304 | 1304 | ||
1305 | if (ulAddrSFParamSet == 0 || NULL == pucDestBuffer) { | 1305 | if (ulAddrSFParamSet == 0 || NULL == pucDestBuffer) { |
1306 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Got Param address as 0!!"); | 1306 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Got Param address as 0!!"); |
@@ -1317,7 +1317,7 @@ static inline ULONG RestoreSFParam(struct bcm_mini_adapter *Adapter, ULONG ulAdd | |||
1317 | 1317 | ||
1318 | static ULONG StoreSFParam(struct bcm_mini_adapter *Adapter, PUCHAR pucSrcBuffer, ULONG ulAddrSFParamSet) | 1318 | static ULONG StoreSFParam(struct bcm_mini_adapter *Adapter, PUCHAR pucSrcBuffer, ULONG ulAddrSFParamSet) |
1319 | { | 1319 | { |
1320 | UINT nBytesToWrite = sizeof(stServiceFlowParamSI); | 1320 | UINT nBytesToWrite = sizeof(struct bcm_connect_mgr_params); |
1321 | int ret = 0; | 1321 | int ret = 0; |
1322 | 1322 | ||
1323 | if (ulAddrSFParamSet == 0 || NULL == pucSrcBuffer) | 1323 | if (ulAddrSFParamSet == 0 || NULL == pucSrcBuffer) |
@@ -1370,7 +1370,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1370 | return 0; | 1370 | return 0; |
1371 | 1371 | ||
1372 | /* AUTHORIZED SET */ | 1372 | /* AUTHORIZED SET */ |
1373 | pstAddIndication->psfAuthorizedSet = (stServiceFlowParamSI *) | 1373 | pstAddIndication->psfAuthorizedSet = (struct bcm_connect_mgr_params *) |
1374 | GetNextTargetBufferLocation(Adapter, pstAddIndicationAlt->u16TID); | 1374 | GetNextTargetBufferLocation(Adapter, pstAddIndicationAlt->u16TID); |
1375 | if (!pstAddIndication->psfAuthorizedSet) { | 1375 | if (!pstAddIndication->psfAuthorizedSet) { |
1376 | kfree(pstAddIndication); | 1376 | kfree(pstAddIndication); |
@@ -1384,7 +1384,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1384 | } | 1384 | } |
1385 | 1385 | ||
1386 | /* this can't possibly be right */ | 1386 | /* this can't possibly be right */ |
1387 | pstAddIndication->psfAuthorizedSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfAuthorizedSet); | 1387 | pstAddIndication->psfAuthorizedSet = (struct bcm_connect_mgr_params *)ntohl((ULONG)pstAddIndication->psfAuthorizedSet); |
1388 | 1388 | ||
1389 | if (pstAddIndicationAlt->u8Type == DSA_REQ) { | 1389 | if (pstAddIndicationAlt->u8Type == DSA_REQ) { |
1390 | struct bcm_add_request AddRequest; | 1390 | struct bcm_add_request AddRequest; |
@@ -1412,7 +1412,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1412 | pstAddIndication->u8CC = pstAddIndicationAlt->u8CC; | 1412 | pstAddIndication->u8CC = pstAddIndicationAlt->u8CC; |
1413 | 1413 | ||
1414 | /* ADMITTED SET */ | 1414 | /* ADMITTED SET */ |
1415 | pstAddIndication->psfAdmittedSet = (stServiceFlowParamSI *) | 1415 | pstAddIndication->psfAdmittedSet = (struct bcm_connect_mgr_params *) |
1416 | GetNextTargetBufferLocation(Adapter, pstAddIndicationAlt->u16TID); | 1416 | GetNextTargetBufferLocation(Adapter, pstAddIndicationAlt->u16TID); |
1417 | if (!pstAddIndication->psfAdmittedSet) { | 1417 | if (!pstAddIndication->psfAdmittedSet) { |
1418 | kfree(pstAddIndication); | 1418 | kfree(pstAddIndication); |
@@ -1423,10 +1423,10 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1423 | return 0; | 1423 | return 0; |
1424 | } | 1424 | } |
1425 | 1425 | ||
1426 | pstAddIndication->psfAdmittedSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfAdmittedSet); | 1426 | pstAddIndication->psfAdmittedSet = (struct bcm_connect_mgr_params *)ntohl((ULONG)pstAddIndication->psfAdmittedSet); |
1427 | 1427 | ||
1428 | /* ACTIVE SET */ | 1428 | /* ACTIVE SET */ |
1429 | pstAddIndication->psfActiveSet = (stServiceFlowParamSI *) | 1429 | pstAddIndication->psfActiveSet = (struct bcm_connect_mgr_params *) |
1430 | GetNextTargetBufferLocation(Adapter, pstAddIndicationAlt->u16TID); | 1430 | GetNextTargetBufferLocation(Adapter, pstAddIndicationAlt->u16TID); |
1431 | if (!pstAddIndication->psfActiveSet) { | 1431 | if (!pstAddIndication->psfActiveSet) { |
1432 | kfree(pstAddIndication); | 1432 | kfree(pstAddIndication); |
@@ -1437,7 +1437,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu | |||
1437 | return 0; | 1437 | return 0; |
1438 | } | 1438 | } |
1439 | 1439 | ||
1440 | pstAddIndication->psfActiveSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfActiveSet); | 1440 | pstAddIndication->psfActiveSet = (struct bcm_connect_mgr_params *)ntohl((ULONG)pstAddIndication->psfActiveSet); |
1441 | 1441 | ||
1442 | (*puBufferLength) = sizeof(struct bcm_add_indication); | 1442 | (*puBufferLength) = sizeof(struct bcm_add_indication); |
1443 | *(struct bcm_add_indication *)pvBuffer = *pstAddIndication; | 1443 | *(struct bcm_add_indication *)pvBuffer = *pstAddIndication; |
@@ -1539,7 +1539,7 @@ ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter) | |||
1539 | if (Adapter->astTargetDsxBuffer[0].ulTargetDsxBuffer) | 1539 | if (Adapter->astTargetDsxBuffer[0].ulTargetDsxBuffer) |
1540 | return 1; | 1540 | return 1; |
1541 | 1541 | ||
1542 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Size of Each DSX Buffer(Also size of ServiceFlowParamSI): %zx ", sizeof(stServiceFlowParamSI)); | 1542 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Size of Each DSX Buffer(Also size of connection manager parameters): %zx ", sizeof(struct bcm_connect_mgr_params)); |
1543 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Reading DSX buffer From Target location %x ", DSX_MESSAGE_EXCHANGE_BUFFER); | 1543 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Reading DSX buffer From Target location %x ", DSX_MESSAGE_EXCHANGE_BUFFER); |
1544 | 1544 | ||
1545 | Status = rdmalt(Adapter, DSX_MESSAGE_EXCHANGE_BUFFER, (PUINT)&ulTargetDsxBuffersBase, sizeof(UINT)); | 1545 | Status = rdmalt(Adapter, DSX_MESSAGE_EXCHANGE_BUFFER, (PUINT)&ulTargetDsxBuffersBase, sizeof(UINT)); |
@@ -1550,7 +1550,7 @@ ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter) | |||
1550 | 1550 | ||
1551 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Base Address Of DSX Target Buffer : 0x%lx", ulTargetDsxBuffersBase); | 1551 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Base Address Of DSX Target Buffer : 0x%lx", ulTargetDsxBuffersBase); |
1552 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Tgt Buffer is Now %lx :", ulTargetDsxBuffersBase); | 1552 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Tgt Buffer is Now %lx :", ulTargetDsxBuffersBase); |
1553 | ulCntTargetBuffers = DSX_MESSAGE_EXCHANGE_BUFFER_SIZE / sizeof(stServiceFlowParamSI); | 1553 | ulCntTargetBuffers = DSX_MESSAGE_EXCHANGE_BUFFER_SIZE / sizeof(struct bcm_connect_mgr_params); |
1554 | 1554 | ||
1555 | Adapter->ulTotalTargetBuffersAvailable = | 1555 | Adapter->ulTotalTargetBuffersAvailable = |
1556 | ulCntTargetBuffers > MAX_TARGET_DSX_BUFFERS ? | 1556 | ulCntTargetBuffers > MAX_TARGET_DSX_BUFFERS ? |
@@ -1562,7 +1562,7 @@ ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter) | |||
1562 | Adapter->astTargetDsxBuffer[i].ulTargetDsxBuffer = ulTargetDsxBuffersBase; | 1562 | Adapter->astTargetDsxBuffer[i].ulTargetDsxBuffer = ulTargetDsxBuffersBase; |
1563 | Adapter->astTargetDsxBuffer[i].valid = 1; | 1563 | Adapter->astTargetDsxBuffer[i].valid = 1; |
1564 | Adapter->astTargetDsxBuffer[i].tid = 0; | 1564 | Adapter->astTargetDsxBuffer[i].tid = 0; |
1565 | ulTargetDsxBuffersBase += sizeof(stServiceFlowParamSI); | 1565 | ulTargetDsxBuffersBase += sizeof(struct bcm_connect_mgr_params); |
1566 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, " Target DSX Buffer %lx setup at 0x%lx", | 1566 | BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, " Target DSX Buffer %lx setup at 0x%lx", |
1567 | i, Adapter->astTargetDsxBuffer[i].ulTargetDsxBuffer); | 1567 | i, Adapter->astTargetDsxBuffer[i].ulTargetDsxBuffer); |
1568 | } | 1568 | } |
@@ -1633,7 +1633,7 @@ int FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter) | |||
1633 | BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */ | 1633 | BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */ |
1634 | PVOID pvBuffer /* Starting Address of the Buffer, that contains the AddIndication Data */) | 1634 | PVOID pvBuffer /* Starting Address of the Buffer, that contains the AddIndication Data */) |
1635 | { | 1635 | { |
1636 | stServiceFlowParamSI *psfLocalSet = NULL; | 1636 | struct bcm_connect_mgr_params *psfLocalSet = NULL; |
1637 | stLocalSFAddIndicationAlt *pstAddIndication = NULL; | 1637 | stLocalSFAddIndicationAlt *pstAddIndication = NULL; |
1638 | stLocalSFChangeIndicationAlt *pstChangeIndication = NULL; | 1638 | stLocalSFChangeIndicationAlt *pstChangeIndication = NULL; |
1639 | struct bcm_leader *pLeader = NULL; | 1639 | struct bcm_leader *pLeader = NULL; |
diff --git a/drivers/staging/bcm/CmHost.h b/drivers/staging/bcm/CmHost.h index 4cc6f93f2321..1c5a07c7bbe2 100644 --- a/drivers/staging/bcm/CmHost.h +++ b/drivers/staging/bcm/CmHost.h | |||
@@ -35,8 +35,7 @@ typedef struct stLocalSFAddRequestAlt{ | |||
35 | B_UINT16 u16VCID; | 35 | B_UINT16 u16VCID; |
36 | 36 | ||
37 | 37 | ||
38 | /// \brief structure ParameterSet | 38 | struct bcm_connect_mgr_params sfParameterSet; |
39 | stServiceFlowParamSI sfParameterSet; | ||
40 | 39 | ||
41 | //USE_MEMORY_MANAGER(); | 40 | //USE_MEMORY_MANAGER(); |
42 | }stLocalSFAddRequestAlt; | 41 | }stLocalSFAddRequestAlt; |
@@ -50,12 +49,9 @@ typedef struct stLocalSFAddIndicationAlt{ | |||
50 | B_UINT16 u16CID; | 49 | B_UINT16 u16CID; |
51 | /// \brief 16bitVCID | 50 | /// \brief 16bitVCID |
52 | B_UINT16 u16VCID; | 51 | B_UINT16 u16VCID; |
53 | /// \brief structure AuthorizedSet | 52 | struct bcm_connect_mgr_params sfAuthorizedSet; |
54 | stServiceFlowParamSI sfAuthorizedSet; | 53 | struct bcm_connect_mgr_params sfAdmittedSet; |
55 | /// \brief structure AdmittedSet | 54 | struct bcm_connect_mgr_params sfActiveSet; |
56 | stServiceFlowParamSI sfAdmittedSet; | ||
57 | /// \brief structure ActiveSet | ||
58 | stServiceFlowParamSI sfActiveSet; | ||
59 | 55 | ||
60 | B_UINT8 u8CC; /**< Confirmation Code*/ | 56 | B_UINT8 u8CC; /**< Confirmation Code*/ |
61 | B_UINT8 u8Padd; /**< 8-bit Padding */ | 57 | B_UINT8 u8Padd; /**< 8-bit Padding */ |
@@ -72,12 +68,9 @@ typedef struct stLocalSFAddConfirmationAlt{ | |||
72 | B_UINT16 u16CID; | 68 | B_UINT16 u16CID; |
73 | /// \brief 16bitVCID | 69 | /// \brief 16bitVCID |
74 | B_UINT16 u16VCID; | 70 | B_UINT16 u16VCID; |
75 | /// \brief structure AuthorizedSet | 71 | struct bcm_connect_mgr_params sfAuthorizedSet; |
76 | stServiceFlowParamSI sfAuthorizedSet; | 72 | struct bcm_connect_mgr_params sfAdmittedSet; |
77 | /// \brief structure AdmittedSet | 73 | struct bcm_connect_mgr_params sfActiveSet; |
78 | stServiceFlowParamSI sfAdmittedSet; | ||
79 | /// \brief structure ActiveSet | ||
80 | stServiceFlowParamSI sfActiveSet; | ||
81 | }stLocalSFAddConfirmationAlt; | 74 | }stLocalSFAddConfirmationAlt; |
82 | 75 | ||
83 | 76 | ||
@@ -91,16 +84,13 @@ typedef struct stLocalSFChangeRequestAlt{ | |||
91 | /// \brief 16bitVCID | 84 | /// \brief 16bitVCID |
92 | B_UINT16 u16VCID; | 85 | B_UINT16 u16VCID; |
93 | /* | 86 | /* |
94 | //Pointer location at which following Service Flow param Structure can be read | 87 | //Pointer location at which following connection manager param Structure can be read |
95 | //from the target. We get only the address location and we need to read out the | 88 | //from the target. We only get the address location and we need to read out the |
96 | //entire SF param structure at the given location on target | 89 | //entire connection manager param structure at the given location on target |
97 | */ | 90 | */ |
98 | /// \brief structure AuthorizedSet | 91 | struct bcm_connect_mgr_params sfAuthorizedSet; |
99 | stServiceFlowParamSI sfAuthorizedSet; | 92 | struct bcm_connect_mgr_params sfAdmittedSet; |
100 | /// \brief structure AdmittedSet | 93 | struct bcm_connect_mgr_params sfActiveSet; |
101 | stServiceFlowParamSI sfAdmittedSet; | ||
102 | /// \brief structure ParameterSet | ||
103 | stServiceFlowParamSI sfActiveSet; | ||
104 | 94 | ||
105 | B_UINT8 u8CC; /**< Confirmation Code*/ | 95 | B_UINT8 u8CC; /**< Confirmation Code*/ |
106 | B_UINT8 u8Padd; /**< 8-bit Padding */ | 96 | B_UINT8 u8Padd; /**< 8-bit Padding */ |
@@ -117,12 +107,9 @@ typedef struct stLocalSFChangeConfirmationAlt{ | |||
117 | B_UINT16 u16CID; | 107 | B_UINT16 u16CID; |
118 | /// \brief 16bitVCID | 108 | /// \brief 16bitVCID |
119 | B_UINT16 u16VCID; | 109 | B_UINT16 u16VCID; |
120 | /// \brief structure AuthorizedSet | 110 | struct bcm_connect_mgr_params sfAuthorizedSet; |
121 | stServiceFlowParamSI sfAuthorizedSet; | 111 | struct bcm_connect_mgr_params sfAdmittedSet; |
122 | /// \brief structure AdmittedSet | 112 | struct bcm_connect_mgr_params sfActiveSet; |
123 | stServiceFlowParamSI sfAdmittedSet; | ||
124 | /// \brief structure ActiveSet | ||
125 | stServiceFlowParamSI sfActiveSet; | ||
126 | 113 | ||
127 | }stLocalSFChangeConfirmationAlt; | 114 | }stLocalSFChangeConfirmationAlt; |
128 | 115 | ||
@@ -135,12 +122,9 @@ typedef struct stLocalSFChangeIndicationAlt{ | |||
135 | B_UINT16 u16CID; | 122 | B_UINT16 u16CID; |
136 | /// \brief 16bitVCID | 123 | /// \brief 16bitVCID |
137 | B_UINT16 u16VCID; | 124 | B_UINT16 u16VCID; |
138 | /// \brief structure AuthorizedSet | 125 | struct bcm_connect_mgr_params sfAuthorizedSet; |
139 | stServiceFlowParamSI sfAuthorizedSet; | 126 | struct bcm_connect_mgr_params sfAdmittedSet; |
140 | /// \brief structure AdmittedSet | 127 | struct bcm_connect_mgr_params sfActiveSet; |
141 | stServiceFlowParamSI sfAdmittedSet; | ||
142 | /// \brief structure ActiveSet | ||
143 | stServiceFlowParamSI sfActiveSet; | ||
144 | 128 | ||
145 | B_UINT8 u8CC; /**< Confirmation Code*/ | 129 | B_UINT8 u8CC; /**< Confirmation Code*/ |
146 | B_UINT8 u8Padd; /**< 8-bit Padding */ | 130 | B_UINT8 u8Padd; /**< 8-bit Padding */ |
diff --git a/drivers/staging/bcm/Prototypes.h b/drivers/staging/bcm/Prototypes.h index 3c8cc5ba2e2e..3ec8f800a5b0 100644 --- a/drivers/staging/bcm/Prototypes.h +++ b/drivers/staging/bcm/Prototypes.h | |||
@@ -95,7 +95,7 @@ void beceem_parse_target_struct(struct bcm_mini_adapter *Adapter); | |||
95 | int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo); | 95 | int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo); |
96 | 96 | ||
97 | void CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, | 97 | void CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, |
98 | CServiceFlowParamSI *psfLocalSet, UINT uiSearchRuleIndex); | 98 | struct bcm_connect_mgr_params *psfLocalSet, UINT uiSearchRuleIndex); |
99 | 99 | ||
100 | VOID ResetCounters(struct bcm_mini_adapter *Adapter); | 100 | VOID ResetCounters(struct bcm_mini_adapter *Adapter); |
101 | 101 | ||
diff --git a/drivers/staging/bcm/cntrl_SignalingInterface.h b/drivers/staging/bcm/cntrl_SignalingInterface.h index 43d462e59088..369425528e49 100644 --- a/drivers/staging/bcm/cntrl_SignalingInterface.h +++ b/drivers/staging/bcm/cntrl_SignalingInterface.h | |||
@@ -137,8 +137,7 @@ struct _stConvergenceSLTypes { | |||
137 | }; | 137 | }; |
138 | typedef struct _stConvergenceSLTypes stConvergenceSLTypes, CConvergenceSLTypes, *pstConvergenceSLTypes; | 138 | typedef struct _stConvergenceSLTypes stConvergenceSLTypes, CConvergenceSLTypes, *pstConvergenceSLTypes; |
139 | 139 | ||
140 | /* brief structure CServiceFlowParamSI */ | 140 | struct bcm_connect_mgr_params { |
141 | typedef struct _stServiceFlowParamSI { | ||
142 | /* 32bitSFID Of The Service Flow */ | 141 | /* 32bitSFID Of The Service Flow */ |
143 | B_UINT32 u32SFID; | 142 | B_UINT32 u32SFID; |
144 | /* 32bit Maximum Sustained Traffic Rate of the Service Flow */ | 143 | /* 32bit Maximum Sustained Traffic Rate of the Service Flow */ |
@@ -256,9 +255,7 @@ typedef struct _stServiceFlowParamSI { | |||
256 | * Structure for Convergence SubLayer Types with a maximum of 4 classifiers | 255 | * Structure for Convergence SubLayer Types with a maximum of 4 classifiers |
257 | */ | 256 | */ |
258 | stConvergenceSLTypes cConvergenceSLTypes[MAX_CLASSIFIERS_IN_SF]; | 257 | stConvergenceSLTypes cConvergenceSLTypes[MAX_CLASSIFIERS_IN_SF]; |
259 | 258 | }; | |
260 | } stServiceFlowParamSI, *pstServiceFlowParamSI; | ||
261 | typedef stServiceFlowParamSI CServiceFlowParamSI; | ||
262 | 259 | ||
263 | struct bcm_add_request { | 260 | struct bcm_add_request { |
264 | B_UINT8 u8Type; /* < Type */ | 261 | B_UINT8 u8Type; /* < Type */ |
@@ -269,8 +266,7 @@ struct bcm_add_request { | |||
269 | B_UINT16 u16CID; /* < 16bit CID */ | 266 | B_UINT16 u16CID; /* < 16bit CID */ |
270 | /* brief 16bitVCID */ | 267 | /* brief 16bitVCID */ |
271 | B_UINT16 u16VCID; /* < 16bit VCID */ | 268 | B_UINT16 u16VCID; /* < 16bit VCID */ |
272 | /* brief structure ParameterSet */ | 269 | struct bcm_connect_mgr_params *psfParameterSet; /* < connection manager parameters */ |
273 | stServiceFlowParamSI *psfParameterSet; /* < structure ParameterSet */ | ||
274 | }; | 270 | }; |
275 | 271 | ||
276 | struct bcm_add_indication { | 272 | struct bcm_add_indication { |
@@ -282,13 +278,9 @@ struct bcm_add_indication { | |||
282 | B_UINT16 u16CID; /* < 16bitCID */ | 278 | B_UINT16 u16CID; /* < 16bitCID */ |
283 | /* brief 16bitVCID */ | 279 | /* brief 16bitVCID */ |
284 | B_UINT16 u16VCID; /* < 16bitVCID */ | 280 | B_UINT16 u16VCID; /* < 16bitVCID */ |
285 | /* brief structure AuthorizedSet */ | 281 | struct bcm_connect_mgr_params *psfAuthorizedSet; /* Authorized set of connection manager parameters */ |
286 | /* brief structure AuthorizedSet */ | 282 | struct bcm_connect_mgr_params *psfAdmittedSet; /* Admitted set of connection manager parameters */ |
287 | stServiceFlowParamSI *psfAuthorizedSet; /* < AuthorizedSet of type stServiceFlowParamSI */ | 283 | struct bcm_connect_mgr_params *psfActiveSet; /* Activeset of connection manager parameters */ |
288 | /* brief structure AdmittedSet */ | ||
289 | stServiceFlowParamSI *psfAdmittedSet; /* < AdmittedSet of type stServiceFlowParamSI */ | ||
290 | /* brief structure ActiveSet */ | ||
291 | stServiceFlowParamSI *psfActiveSet; /* < sfActiveSet of type stServiceFlowParamSI */ | ||
292 | B_UINT8 u8CC; /* <Confirmation Code */ | 284 | B_UINT8 u8CC; /* <Confirmation Code */ |
293 | B_UINT8 u8Padd; /* < 8-bit Padding */ | 285 | B_UINT8 u8Padd; /* < 8-bit Padding */ |
294 | B_UINT16 u16Padd; /* < 16 bit Padding */ | 286 | B_UINT16 u16Padd; /* < 16 bit Padding */ |
diff --git a/drivers/staging/bcm/hostmibs.c b/drivers/staging/bcm/hostmibs.c index 08d13a4dfd70..10361bb35059 100644 --- a/drivers/staging/bcm/hostmibs.c +++ b/drivers/staging/bcm/hostmibs.c | |||
@@ -101,7 +101,7 @@ VOID GetDroppedAppCntrlPktMibs(S_MIBS_HOST_STATS_MIBS *pstHostMibs, struct bcm_t | |||
101 | sizeof(S_MIBS_DROPPED_APP_CNTRL_MESSAGES)); | 101 | sizeof(S_MIBS_DROPPED_APP_CNTRL_MESSAGES)); |
102 | } | 102 | } |
103 | 103 | ||
104 | VOID CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, CServiceFlowParamSI *psfLocalSet, UINT uiSearchRuleIndex) | 104 | VOID CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, struct bcm_connect_mgr_params *psfLocalSet, UINT uiSearchRuleIndex) |
105 | { | 105 | { |
106 | S_MIBS_EXTSERVICEFLOW_PARAMETERS *t = &Adapter->PackInfo[uiSearchRuleIndex].stMibsExtServiceFlowTable; | 106 | S_MIBS_EXTSERVICEFLOW_PARAMETERS *t = &Adapter->PackInfo[uiSearchRuleIndex].stMibsExtServiceFlowTable; |
107 | 107 | ||