Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: bcm: Remove typedef for _MINI_ADAPTER and call directly.

This patch removes typedef for _MINI_ADAPTER, changes the
name of the struct from _MINI_ADAPTER to bcm_mini_adapter.
In addition, any calls to the following typedefs
"MINI_ADAPTER, *PMINI_ADAPTER" are changed to call
the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kevin McKinney and committed by
Greg Kroah-Hartman
2979460d ff352042

+404 -405
+6 -7
drivers/staging/bcm/Adapter.h
··· 192 192 193 193 struct bcm_tarang_data { 194 194 struct bcm_tarang_data *next; 195 - struct _MINI_ADAPTER *Adapter; 195 + struct bcm_mini_adapter *Adapter; 196 196 struct sk_buff *RxAppControlHead; 197 197 struct sk_buff *RxAppControlTail; 198 198 int AppCtrlQueueLen; ··· 208 208 BOOLEAN valid; 209 209 }; 210 210 211 - typedef int (*FP_FLASH_WRITE)(struct _MINI_ADAPTER *, UINT, PVOID); 211 + typedef int (*FP_FLASH_WRITE)(struct bcm_mini_adapter *, UINT, PVOID); 212 212 213 - typedef int (*FP_FLASH_WRITE_STATUS)(struct _MINI_ADAPTER *, UINT, PVOID); 213 + typedef int (*FP_FLASH_WRITE_STATUS)(struct bcm_mini_adapter *, UINT, PVOID); 214 214 215 215 /* 216 216 * Driver adapter data structure 217 217 */ 218 - struct _MINI_ADAPTER { 219 - struct _MINI_ADAPTER *next; 218 + struct bcm_mini_adapter { 219 + struct bcm_mini_adapter *next; 220 220 struct net_device *dev; 221 221 u32 msg_enable; 222 222 CHAR *caDsxReqResp; ··· 394 394 UINT gpioBitMap; 395 395 S_BCM_DEBUG_STATE stDebugState; 396 396 }; 397 - typedef struct _MINI_ADAPTER MINI_ADAPTER, *PMINI_ADAPTER; 398 397 399 398 #define GET_BCM_ADAPTER(net_dev) netdev_priv(net_dev) 400 399 ··· 416 417 UINT ulRegAddress; 417 418 UINT ulRegValue; 418 419 }; 419 - int InitAdapter(PMINI_ADAPTER psAdapter); 420 + int InitAdapter(struct bcm_mini_adapter *psAdapter); 420 421 421 422 /* ===================================================================== 422 423 * Beceem vendor request codes for EP0
+6 -6
drivers/staging/bcm/Bcmchar.c
··· 15 15 16 16 static int bcm_char_open(struct inode *inode, struct file * filp) 17 17 { 18 - PMINI_ADAPTER Adapter = NULL; 18 + struct bcm_mini_adapter *Adapter = NULL; 19 19 struct bcm_tarang_data *pTarang = NULL; 20 20 21 21 Adapter = GET_BCM_ADAPTER(gblpnetdev); ··· 44 44 static int bcm_char_release(struct inode *inode, struct file *filp) 45 45 { 46 46 struct bcm_tarang_data *pTarang, *tmp, *ptmp; 47 - PMINI_ADAPTER Adapter = NULL; 47 + struct bcm_mini_adapter *Adapter = NULL; 48 48 struct sk_buff *pkt, *npkt; 49 49 50 50 pTarang = (struct bcm_tarang_data *)filp->private_data; ··· 98 98 loff_t *f_pos) 99 99 { 100 100 struct bcm_tarang_data *pTarang = filp->private_data; 101 - PMINI_ADAPTER Adapter = pTarang->Adapter; 101 + struct bcm_mini_adapter *Adapter = pTarang->Adapter; 102 102 struct sk_buff *Packet = NULL; 103 103 ssize_t PktLen = 0; 104 104 int wait_ret_val = 0; ··· 157 157 { 158 158 struct bcm_tarang_data *pTarang = filp->private_data; 159 159 void __user *argp = (void __user *)arg; 160 - PMINI_ADAPTER Adapter = pTarang->Adapter; 160 + struct bcm_mini_adapter *Adapter = pTarang->Adapter; 161 161 INT Status = STATUS_FAILURE; 162 162 int timeout = 0; 163 163 IOCTL_BUFFER IoBuffer; ··· 2014 2014 .llseek = no_llseek, 2015 2015 }; 2016 2016 2017 - int register_control_device_interface(PMINI_ADAPTER Adapter) 2017 + int register_control_device_interface(struct bcm_mini_adapter *Adapter) 2018 2018 { 2019 2019 2020 2020 if (Adapter->major > 0) ··· 2039 2039 return 0; 2040 2040 } 2041 2041 2042 - void unregister_control_device_interface(PMINI_ADAPTER Adapter) 2042 + void unregister_control_device_interface(struct bcm_mini_adapter *Adapter) 2043 2043 { 2044 2044 if (Adapter->major > 0) { 2045 2045 device_destroy(bcm_class, MKDEV(Adapter->major, 0));
+9 -9
drivers/staging/bcm/Bcmnet.c
··· 4 4 5 5 static INT bcm_open(struct net_device *dev) 6 6 { 7 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 7 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 8 8 9 9 if (Adapter->fw_download_done == FALSE) { 10 10 pr_notice(PFX "%s: link up failed (download in progress)\n", ··· 28 28 29 29 static INT bcm_close(struct net_device *dev) 30 30 { 31 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 31 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 32 32 33 33 if (netif_msg_ifdown(Adapter)) 34 34 pr_info(PFX "%s: disabling interface\n", dev->name); ··· 59 59 60 60 static netdev_tx_t bcm_transmit(struct sk_buff *skb, struct net_device *dev) 61 61 { 62 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 62 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 63 63 u16 qindex = skb_get_queue_mapping(skb); 64 64 65 65 ··· 141 141 static void bcm_get_drvinfo(struct net_device *dev, 142 142 struct ethtool_drvinfo *info) 143 143 { 144 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 144 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 145 145 PS_INTERFACE_ADAPTER psIntfAdapter = Adapter->pvInterfaceAdapter; 146 146 struct usb_device *udev = interface_to_usbdev(psIntfAdapter->interface); 147 147 ··· 156 156 157 157 static u32 bcm_get_link(struct net_device *dev) 158 158 { 159 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 159 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 160 160 161 161 return Adapter->LinkUpStatus; 162 162 } 163 163 164 164 static u32 bcm_get_msglevel(struct net_device *dev) 165 165 { 166 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 166 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 167 167 168 168 return Adapter->msg_enable; 169 169 } 170 170 171 171 static void bcm_set_msglevel(struct net_device *dev, u32 level) 172 172 { 173 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev); 173 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 174 174 175 175 Adapter->msg_enable = level; 176 176 } ··· 183 183 .set_msglevel = bcm_set_msglevel, 184 184 }; 185 185 186 - int register_networkdev(PMINI_ADAPTER Adapter) 186 + int register_networkdev(struct bcm_mini_adapter *Adapter) 187 187 { 188 188 struct net_device *net = Adapter->dev; 189 189 PS_INTERFACE_ADAPTER IntfAdapter = Adapter->pvInterfaceAdapter; ··· 224 224 return 0; 225 225 } 226 226 227 - void unregister_networkdev(PMINI_ADAPTER Adapter) 227 + void unregister_networkdev(struct bcm_mini_adapter *Adapter) 228 228 { 229 229 struct net_device *net = Adapter->dev; 230 230 PS_INTERFACE_ADAPTER IntfAdapter = Adapter->pvInterfaceAdapter;
+25 -25
drivers/staging/bcm/CmHost.c
··· 14 14 eDeleteClassifier 15 15 }; 16 16 17 - static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter, B_UINT16 tid); 17 + static ULONG GetNextTargetBufferLocation(struct bcm_mini_adapter *Adapter, B_UINT16 tid); 18 18 19 19 /************************************************************ 20 20 * Function - SearchSfid ··· 28 28 * Returns - Queue index for this SFID(If matched) 29 29 * Else Invalid Queue Index(If Not matched) 30 30 ************************************************************/ 31 - int SearchSfid(PMINI_ADAPTER Adapter, UINT uiSfid) 31 + int SearchSfid(struct bcm_mini_adapter *Adapter, UINT uiSfid) 32 32 { 33 33 int i; 34 34 ··· 49 49 * Returns - Queue index for the free SFID 50 50 * Else returns Invalid Index. 51 51 ****************************************************************/ 52 - static int SearchFreeSfid(PMINI_ADAPTER Adapter) 52 + static int SearchFreeSfid(struct bcm_mini_adapter *Adapter) 53 53 { 54 54 int i; 55 55 ··· 63 63 /* 64 64 * Function: SearchClsid 65 65 * Description: This routinue would search Classifier having specified ClassifierID as input parameter 66 - * Input parameters: PMINI_ADAPTER Adapter - Adapter Context 66 + * Input parameters: struct bcm_mini_adapter *Adapter - Adapter Context 67 67 * unsigned int uiSfid - The SF in which the classifier is to searched 68 68 * B_UINT16 uiClassifierID - The classifier ID to be searched 69 69 * Return: int :Classifier table index of matching entry 70 70 */ 71 - static int SearchClsid(PMINI_ADAPTER Adapter, ULONG ulSFID, B_UINT16 uiClassifierID) 71 + static int SearchClsid(struct bcm_mini_adapter *Adapter, ULONG ulSFID, B_UINT16 uiClassifierID) 72 72 { 73 73 int i; 74 74 ··· 87 87 * This routinue would search Free available Classifier entry in classifier table. 88 88 * @return free Classifier Entry index in classifier table for specified SF 89 89 */ 90 - static int SearchFreeClsid(PMINI_ADAPTER Adapter /**Adapter Context*/) 90 + static int SearchFreeClsid(struct bcm_mini_adapter *Adapter /**Adapter Context*/) 91 91 { 92 92 int i; 93 93 ··· 99 99 return MAX_CLASSIFIERS+1; 100 100 } 101 101 102 - static VOID deleteSFBySfid(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex) 102 + static VOID deleteSFBySfid(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex) 103 103 { 104 104 /* deleting all the packet held in the SF */ 105 105 flush_queue(Adapter, uiSearchRuleIndex); ··· 120 120 UINT nSizeOfIPAddressInBytes = IP_LENGTH_OF_ADDRESS; 121 121 UCHAR *ptrClassifierIpAddress = NULL; 122 122 UCHAR *ptrClassifierIpMask = NULL; 123 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 123 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 124 124 125 125 if (bIpVersion6) 126 126 nSizeOfIPAddressInBytes = IPV6_ADDRESS_SIZEINBYTES; ··· 214 214 } 215 215 } 216 216 217 - void ClearTargetDSXBuffer(PMINI_ADAPTER Adapter, B_UINT16 TID, BOOLEAN bFreeAll) 217 + void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter, B_UINT16 TID, BOOLEAN bFreeAll) 218 218 { 219 219 int i; 220 220 ··· 236 236 * @ingroup ctrl_pkt_functions 237 237 * copy classifier rule into the specified SF index 238 238 */ 239 - static inline VOID CopyClassifierRuleToSF(PMINI_ADAPTER Adapter, stConvergenceSLTypes *psfCSType, UINT uiSearchRuleIndex, UINT nClassifierIndex) 239 + static inline VOID CopyClassifierRuleToSF(struct bcm_mini_adapter *Adapter, stConvergenceSLTypes *psfCSType, UINT uiSearchRuleIndex, UINT nClassifierIndex) 240 240 { 241 241 struct bcm_classifier_rule *pstClassifierEntry = NULL; 242 242 /* VOID *pvPhsContext = NULL; */ ··· 365 365 /* 366 366 * @ingroup ctrl_pkt_functions 367 367 */ 368 - static inline VOID DeleteClassifierRuleFromSF(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex, UINT nClassifierIndex) 368 + static inline VOID DeleteClassifierRuleFromSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex, UINT nClassifierIndex) 369 369 { 370 370 struct bcm_classifier_rule *pstClassifierEntry = NULL; 371 371 B_UINT16 u16PacketClassificationRuleIndex; ··· 396 396 /* 397 397 * @ingroup ctrl_pkt_functions 398 398 */ 399 - VOID DeleteAllClassifiersForSF(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex) 399 + VOID DeleteAllClassifiersForSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex) 400 400 { 401 401 struct bcm_classifier_rule *pstClassifierEntry = NULL; 402 402 int i; ··· 428 428 * related data into the Adapter structure. 429 429 * @ingroup ctrl_pkt_functions 430 430 */ 431 - static VOID CopyToAdapter(register PMINI_ADAPTER Adapter, /* <Pointer to the Adapter structure */ 431 + static VOID CopyToAdapter(register struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */ 432 432 register pstServiceFlowParamSI psfLocalSet, /* <Pointer to the ServiceFlowParamSI structure */ 433 433 register UINT uiSearchRuleIndex, /* <Index of Queue, to which this data belongs */ 434 434 register UCHAR ucDsxType, ··· 836 836 int nIndex; 837 837 stLocalSFAddIndicationAlt *pstAddIndication; 838 838 UINT nCurClassifierCnt; 839 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 839 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 840 840 841 841 pstAddIndication = (stLocalSFAddIndicationAlt *)pvBuffer; 842 842 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "======>"); ··· 1325 1325 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " bValid: 0x%X", pstAddIndication->sfActiveSet.bValid); 1326 1326 } 1327 1327 1328 - static inline ULONG RestoreSFParam(PMINI_ADAPTER Adapter, ULONG ulAddrSFParamSet, PUCHAR pucDestBuffer) 1328 + static inline ULONG RestoreSFParam(struct bcm_mini_adapter *Adapter, ULONG ulAddrSFParamSet, PUCHAR pucDestBuffer) 1329 1329 { 1330 1330 UINT nBytesToRead = sizeof(stServiceFlowParamSI); 1331 1331 ··· 1342 1342 return 1; 1343 1343 } 1344 1344 1345 - static ULONG StoreSFParam(PMINI_ADAPTER Adapter, PUCHAR pucSrcBuffer, ULONG ulAddrSFParamSet) 1345 + static ULONG StoreSFParam(struct bcm_mini_adapter *Adapter, PUCHAR pucSrcBuffer, ULONG ulAddrSFParamSet) 1346 1346 { 1347 1347 UINT nBytesToWrite = sizeof(stServiceFlowParamSI); 1348 1348 int ret = 0; ··· 1358 1358 return 1; 1359 1359 } 1360 1360 1361 - ULONG StoreCmControlResponseMessage(PMINI_ADAPTER Adapter, PVOID pvBuffer, UINT *puBufferLength) 1361 + ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer, UINT *puBufferLength) 1362 1362 { 1363 1363 stLocalSFAddIndicationAlt *pstAddIndicationAlt = NULL; 1364 1364 stLocalSFAddIndication *pstAddIndication = NULL; ··· 1473 1473 } 1474 1474 1475 1475 static inline stLocalSFAddIndicationAlt 1476 - *RestoreCmControlResponseMessage(register PMINI_ADAPTER Adapter, register PVOID pvBuffer) 1476 + *RestoreCmControlResponseMessage(register struct bcm_mini_adapter *Adapter, register PVOID pvBuffer) 1477 1477 { 1478 1478 ULONG ulStatus = 0; 1479 1479 stLocalSFAddIndication *pstAddIndication = NULL; ··· 1551 1551 return NULL; 1552 1552 } 1553 1553 1554 - ULONG SetUpTargetDsxBuffers(PMINI_ADAPTER Adapter) 1554 + ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter) 1555 1555 { 1556 1556 ULONG ulTargetDsxBuffersBase = 0; 1557 1557 ULONG ulCntTargetBuffers; ··· 1598 1598 return 1; 1599 1599 } 1600 1600 1601 - static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter, B_UINT16 tid) 1601 + static ULONG GetNextTargetBufferLocation(struct bcm_mini_adapter *Adapter, B_UINT16 tid) 1602 1602 { 1603 1603 ULONG ulTargetDSXBufferAddress; 1604 1604 ULONG ulTargetDsxBufferIndexToUse, ulMaxTry; ··· 1632 1632 return ulTargetDSXBufferAddress; 1633 1633 } 1634 1634 1635 - int AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter) 1635 + int AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter) 1636 1636 { 1637 1637 /* 1638 1638 * Need to Allocate memory to contain the SUPER Large structures ··· 1645 1645 return 0; 1646 1646 } 1647 1647 1648 - int FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter) 1648 + int FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter) 1649 1649 { 1650 1650 kfree(Adapter->caDsxReqResp); 1651 1651 return 0; ··· 1657 1657 * for the Connection Management. 1658 1658 * @return - Queue index for the free SFID else returns Invalid Index. 1659 1659 */ 1660 - BOOLEAN CmControlResponseMessage(PMINI_ADAPTER Adapter, /* <Pointer to the Adapter structure */ 1660 + BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */ 1661 1661 PVOID pvBuffer /* Starting Address of the Buffer, that contains the AddIndication Data */) 1662 1662 { 1663 1663 stServiceFlowParamSI *psfLocalSet = NULL; ··· 1915 1915 return TRUE; 1916 1916 } 1917 1917 1918 - int get_dsx_sf_data_to_application(PMINI_ADAPTER Adapter, UINT uiSFId, void __user *user_buffer) 1918 + int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user *user_buffer) 1919 1919 { 1920 1920 int status = 0; 1921 1921 struct bcm_packet_info *psSfInfo = NULL; ··· 1937 1937 return STATUS_SUCCESS; 1938 1938 } 1939 1939 1940 - VOID OverrideServiceFlowParams(PMINI_ADAPTER Adapter, PUINT puiBuffer) 1940 + VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter, PUINT puiBuffer) 1941 1941 { 1942 1942 B_UINT32 u32NumofSFsinMsg = ntohl(*(puiBuffer + 1)); 1943 1943 stIM_SFHostNotify *pHostInfo = NULL;
+5 -5
drivers/staging/bcm/CmHost.h
··· 148 148 149 149 }stLocalSFChangeIndicationAlt; 150 150 151 - ULONG StoreCmControlResponseMessage(PMINI_ADAPTER Adapter,PVOID pvBuffer,UINT *puBufferLength); 151 + ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer,UINT *puBufferLength); 152 152 153 - INT AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter); 153 + INT AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter); 154 154 155 - INT FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter); 156 - ULONG SetUpTargetDsxBuffers(PMINI_ADAPTER Adapter); 155 + INT FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter); 156 + ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter); 157 157 158 - BOOLEAN CmControlResponseMessage(PMINI_ADAPTER Adapter,PVOID pvBuffer); 158 + BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer); 159 159 160 160 161 161 #pragma pack (pop)
+2 -2
drivers/staging/bcm/DDRInit.c
··· 772 772 }; 773 773 774 774 775 - int ddr_init(MINI_ADAPTER *Adapter) 775 + int ddr_init(struct bcm_mini_adapter *Adapter) 776 776 { 777 777 struct bcm_ddr_setting *psDDRSetting=NULL; 778 778 ULONG RegCount=0; ··· 1099 1099 return retval; 1100 1100 } 1101 1101 1102 - int download_ddr_settings(PMINI_ADAPTER Adapter) 1102 + int download_ddr_settings(struct bcm_mini_adapter *Adapter) 1103 1103 { 1104 1104 struct bcm_ddr_setting *psDDRSetting=NULL; 1105 1105 ULONG RegCount=0;
+2 -2
drivers/staging/bcm/DDRInit.h
··· 3 3 4 4 5 5 6 - int ddr_init(PMINI_ADAPTER psAdapter); 7 - int download_ddr_settings(PMINI_ADAPTER psAdapter); 6 + int ddr_init(struct bcm_mini_adapter *psAdapter); 7 + int download_ddr_settings(struct bcm_mini_adapter *psAdapter); 8 8 9 9 #endif
+3 -3
drivers/staging/bcm/HandleControlPacket.c
··· 11 11 * Enqueue the control packet for Application. 12 12 * @return None 13 13 */ 14 - static VOID handle_rx_control_packet(PMINI_ADAPTER Adapter, struct sk_buff *skb) 14 + static VOID handle_rx_control_packet(struct bcm_mini_adapter *Adapter, struct sk_buff *skb) 15 15 { 16 16 struct bcm_tarang_data *pTarang = NULL; 17 17 BOOLEAN HighPriorityMessage = FALSE; ··· 154 154 * @ingroup ctrl_pkt_functions 155 155 * Thread to handle control pkt reception 156 156 */ 157 - int control_packet_handler(PMINI_ADAPTER Adapter /* pointer to adapter object*/) 157 + int control_packet_handler(struct bcm_mini_adapter *Adapter /* pointer to adapter object*/) 158 158 { 159 159 struct sk_buff *ctrl_packet = NULL; 160 160 unsigned long flags = 0; ··· 213 213 214 214 INT flushAllAppQ(void) 215 215 { 216 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 216 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 217 217 struct bcm_tarang_data *pTarang = NULL; 218 218 struct sk_buff *PacketToDrop = NULL; 219 219 for (pTarang = Adapter->pTarangs; pTarang; pTarang = pTarang->next) {
+8 -8
drivers/staging/bcm/IPv6Protocol.c
··· 12 12 UCHAR *pucRetHeaderPtr = NULL; 13 13 UCHAR *pucPayloadPtr = NULL; 14 14 USHORT usNextHeaderOffset = 0 ; 15 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 15 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 16 16 17 17 if ((ppucPayload == NULL) || (*pusPayloadLength == 0) || 18 18 (*bParseDone)) { ··· 147 147 BOOLEAN bDone = FALSE; 148 148 UCHAR ucHeaderType = 0; 149 149 UCHAR *pucNextHeader = NULL; 150 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 150 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 151 151 152 152 if (!pucPayload || (usPayloadLength == 0)) 153 153 return 0; ··· 177 177 178 178 179 179 /* 180 - * Arg 1 PMINI_ADAPTER Adapter is a pointer ot the driver contorl structure 180 + * Arg 1 struct bcm_mini_adapter *Adapter is a pointer ot the driver contorl structure 181 181 * Arg 2 PVOID pcIpHeader is a pointer to the IP header of the packet 182 182 */ 183 - USHORT IpVersion6(PMINI_ADAPTER Adapter, PVOID pcIpHeader, 183 + USHORT IpVersion6(struct bcm_mini_adapter *Adapter, PVOID pcIpHeader, 184 184 struct bcm_classifier_rule *pstClassifierRule) 185 185 { 186 186 USHORT ushDestPort = 0; ··· 295 295 UINT uiIpv6AddIndex = 0; 296 296 UINT uiIpv6AddrNoLongWords = 4; 297 297 ULONG aulSrcIP[4]; 298 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 298 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 299 299 /* 300 300 * This is the no. of Src Addresses ie Range of IP Addresses contained 301 301 * in the classifier rule for which we need to match ··· 351 351 UINT uiIpv6AddIndex = 0; 352 352 UINT uiIpv6AddrNoLongWords = 4; 353 353 ULONG aulDestIP[4]; 354 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 354 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 355 355 /* 356 356 * This is the no. of Destination Addresses 357 357 * ie Range of IP Addresses contained in the classifier rule ··· 406 406 { 407 407 UINT uiIpv6AddrNoLongWords = 4; 408 408 UINT uiIpv6AddIndex = 0; 409 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 409 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 410 410 for (uiIpv6AddIndex = 0; uiIpv6AddIndex < uiIpv6AddrNoLongWords; uiIpv6AddIndex++) { 411 411 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, DBG_LVL_ALL, 412 412 ":%lx", puIpv6Address[uiIpv6AddIndex]); ··· 418 418 { 419 419 UCHAR ucVersion; 420 420 UCHAR ucPrio; 421 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 421 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 422 422 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, DBG_LVL_ALL, 423 423 "----Ipv6 Header---"); 424 424 ucVersion = pstIpv6Header->ucVersionPrio & 0xf0;
+1 -1
drivers/staging/bcm/IPv6ProtocolHdr.h
··· 102 102 103 103 //Function Prototypes 104 104 105 - USHORT IpVersion6(PMINI_ADAPTER Adapter, /**< Pointer to the driver control structure */ 105 + USHORT IpVersion6(struct bcm_mini_adapter *Adapter, /**< Pointer to the driver control structure */ 106 106 PVOID pcIpHeader, /**<Pointer to the IP Hdr of the packet*/ 107 107 struct bcm_classifier_rule *pstClassifierRule ); 108 108
+1 -1
drivers/staging/bcm/InterfaceAdapter.h
··· 85 85 atomic_t uNumRcbUsed; 86 86 atomic_t uCurrRcb; 87 87 88 - PMINI_ADAPTER psAdapter; 88 + struct bcm_mini_adapter *psAdapter; 89 89 BOOLEAN bFlashBoot; 90 90 BOOLEAN bHighSpeedDevice ; 91 91
+7 -7
drivers/staging/bcm/InterfaceDld.c
··· 7 7 int errno = 0, len = 0; /* ,is_config_file = 0 */ 8 8 loff_t pos = 0; 9 9 PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)arg; 10 - /* PMINI_ADAPTER Adapter = psIntfAdapter->psAdapter; */ 10 + /* struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter; */ 11 11 char *buff = kmalloc(MAX_TRANSFER_CTRL_BYTE_USB, GFP_KERNEL); 12 12 13 13 if (!buff) ··· 132 132 return Status; 133 133 } 134 134 135 - static int bcm_download_config_file(PMINI_ADAPTER Adapter, struct bcm_firmware_info *psFwInfo) 135 + static int bcm_download_config_file(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo) 136 136 { 137 137 int retval = STATUS_SUCCESS; 138 138 B_UINT32 value = 0; ··· 208 208 static int bcm_compare_buff_contents(unsigned char *readbackbuff, unsigned char *buff, unsigned int len) 209 209 { 210 210 int retval = STATUS_SUCCESS; 211 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 211 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 212 212 if ((len-sizeof(unsigned int)) < 4) { 213 213 if (memcmp(readbackbuff , buff, len)) 214 214 retval = -EINVAL; ··· 229 229 return retval; 230 230 } 231 231 232 - int bcm_ioctl_fw_download(PMINI_ADAPTER Adapter, struct bcm_firmware_info *psFwInfo) 232 + int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo) 233 233 { 234 234 int retval = STATUS_SUCCESS; 235 235 PUCHAR buff = NULL; ··· 278 278 return retval; 279 279 } 280 280 281 - static INT buffDnld(PMINI_ADAPTER Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress) 281 + static INT buffDnld(struct bcm_mini_adapter *Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress) 282 282 { 283 283 unsigned int len = 0; 284 284 int retval = STATUS_SUCCESS; ··· 299 299 return retval; 300 300 } 301 301 302 - static INT buffRdbkVerify(PMINI_ADAPTER Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress) 302 + static INT buffRdbkVerify(struct bcm_mini_adapter *Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress) 303 303 { 304 304 UINT len = u32FirmwareLength; 305 305 INT retval = STATUS_SUCCESS; ··· 334 334 return retval; 335 335 } 336 336 337 - INT buffDnldVerify(PMINI_ADAPTER Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, unsigned long u32StartingAddress) 337 + INT buffDnldVerify(struct bcm_mini_adapter *Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, unsigned long u32StartingAddress) 338 338 { 339 339 INT status = STATUS_SUCCESS; 340 340
+6 -6
drivers/staging/bcm/InterfaceIdleMode.c
··· 7 7 A software abort pattern is written to the device to wake it and necessary power state 8 8 transitions from host are performed here. 9 9 10 - Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context 10 + Input parameters: IN struct bcm_mini_adapter *Adapter - Miniport Adapter Context 11 11 12 12 13 13 Return: BCM_STATUS_SUCCESS - If Wakeup of the HW Interface was successful. ··· 22 22 Necessary power state transitions from host for idle mode or other device specific 23 23 initializations are performed here. 24 24 25 - Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context 25 + Input parameters: IN struct bcm_mini_adapter * Adapter - Miniport Adapter Context 26 26 27 27 28 28 Return: BCM_STATUS_SUCCESS - If Idle mode response related HW configuration was successful. ··· 42 42 */ 43 43 44 44 45 - int InterfaceIdleModeRespond(PMINI_ADAPTER Adapter, unsigned int* puiBuffer) 45 + int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, unsigned int* puiBuffer) 46 46 { 47 47 int status = STATUS_SUCCESS; 48 48 unsigned int uiRegRead = 0; ··· 147 147 return status; 148 148 } 149 149 150 - static int InterfaceAbortIdlemode(PMINI_ADAPTER Adapter, unsigned int Pattern) 150 + static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned int Pattern) 151 151 { 152 152 int status = STATUS_SUCCESS; 153 153 unsigned int value; ··· 246 246 } 247 247 return status; 248 248 } 249 - int InterfaceIdleModeWakeup(PMINI_ADAPTER Adapter) 249 + int InterfaceIdleModeWakeup(struct bcm_mini_adapter *Adapter) 250 250 { 251 251 ULONG Status = 0; 252 252 if(Adapter->bTriedToWakeUpFromlowPowerMode) ··· 263 263 return Status; 264 264 } 265 265 266 - void InterfaceHandleShutdownModeWakeup(PMINI_ADAPTER Adapter) 266 + void InterfaceHandleShutdownModeWakeup(struct bcm_mini_adapter *Adapter) 267 267 { 268 268 unsigned int uiRegVal = 0; 269 269 INT Status = 0;
+5 -5
drivers/staging/bcm/InterfaceIdleMode.h
··· 1 1 #ifndef _INTERFACE_IDLEMODE_H 2 2 #define _INTERFACE_IDLEMODE_H 3 3 4 - INT InterfaceIdleModeWakeup(PMINI_ADAPTER Adapter); 4 + INT InterfaceIdleModeWakeup(struct bcm_mini_adapter *Adapter); 5 5 6 - INT InterfaceIdleModeRespond(PMINI_ADAPTER Adapter, unsigned int *puiBuffer); 6 + INT InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, unsigned int *puiBuffer); 7 7 8 - VOID InterfaceWriteIdleModeWakePattern(PMINI_ADAPTER Adapter); 8 + VOID InterfaceWriteIdleModeWakePattern(struct bcm_mini_adapter *Adapter); 9 9 10 - INT InterfaceWakeUp(PMINI_ADAPTER Adapter); 10 + INT InterfaceWakeUp(struct bcm_mini_adapter * Adapter); 11 11 12 - VOID InterfaceHandleShutdownModeWakeup(PMINI_ADAPTER Adapter); 12 + VOID InterfaceHandleShutdownModeWakeup(struct bcm_mini_adapter *Adapter); 13 13 #endif 14 14
+4 -4
drivers/staging/bcm/InterfaceInit.c
··· 65 65 AdapterFree(psIntfAdapter->psAdapter); 66 66 } 67 67 68 - static void ConfigureEndPointTypesThroughEEPROM(PMINI_ADAPTER Adapter) 68 + static void ConfigureEndPointTypesThroughEEPROM(struct bcm_mini_adapter *Adapter) 69 69 { 70 70 unsigned long ulReg = 0; 71 71 int bytes; ··· 143 143 { 144 144 struct usb_device *udev = interface_to_usbdev(intf); 145 145 int retval; 146 - PMINI_ADAPTER psAdapter; 146 + struct bcm_mini_adapter *psAdapter; 147 147 PS_INTERFACE_ADAPTER psIntfAdapter; 148 148 struct net_device *ndev; 149 149 150 150 /* Reserve one extra queue for the bit-bucket */ 151 - ndev = alloc_etherdev_mq(sizeof(MINI_ADAPTER), NO_OF_QUEUES+1); 151 + ndev = alloc_etherdev_mq(sizeof(struct bcm_mini_adapter), NO_OF_QUEUES+1); 152 152 if (ndev == NULL) { 153 153 dev_err(&udev->dev, DRV_NAME ": no memory for device\n"); 154 154 return -ENOMEM; ··· 257 257 static void usbbcm_disconnect(struct usb_interface *intf) 258 258 { 259 259 PS_INTERFACE_ADAPTER psIntfAdapter = usb_get_intfdata(intf); 260 - PMINI_ADAPTER psAdapter; 260 + struct bcm_mini_adapter *psAdapter; 261 261 struct usb_device *udev = interface_to_usbdev(intf); 262 262 263 263 if (psIntfAdapter == NULL)
+1 -1
drivers/staging/bcm/InterfaceIsr.c
··· 5 5 { 6 6 int status = urb->status; 7 7 PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)urb->context; 8 - PMINI_ADAPTER Adapter = psIntfAdapter->psAdapter ; 8 + struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter ; 9 9 10 10 if (netif_msg_intr(Adapter)) 11 11 pr_info(PFX "%s: interrupt status %d\n",
+2 -2
drivers/staging/bcm/InterfaceIsr.h
··· 7 7 INT StartInterruptUrb(PS_INTERFACE_ADAPTER psIntfAdapter); 8 8 9 9 10 - VOID InterfaceEnableInterrupt(PMINI_ADAPTER Adapter); 10 + VOID InterfaceEnableInterrupt(struct bcm_mini_adapter *Adapter); 11 11 12 - VOID InterfaceDisableInterrupt(PMINI_ADAPTER Adapter); 12 + VOID InterfaceDisableInterrupt(struct bcm_mini_adapter *Adapter); 13 13 14 14 #endif 15 15
+1 -1
drivers/staging/bcm/InterfaceMisc.c
··· 133 133 return InterfaceWRM((PS_INTERFACE_ADAPTER)arg, addr, buff, len); 134 134 } 135 135 136 - INT Bcm_clear_halt_of_endpoints(PMINI_ADAPTER Adapter) 136 + INT Bcm_clear_halt_of_endpoints(struct bcm_mini_adapter *Adapter) 137 137 { 138 138 PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)(Adapter->pvInterfaceAdapter); 139 139 INT status = STATUS_SUCCESS;
+1 -1
drivers/staging/bcm/InterfaceMisc.h
··· 33 33 PVOID buff, 34 34 INT len); 35 35 36 - INT Bcm_clear_halt_of_endpoints(PMINI_ADAPTER Adapter); 36 + INT Bcm_clear_halt_of_endpoints(struct bcm_mini_adapter *Adapter); 37 37 38 38 VOID Bcm_kill_all_URBs(PS_INTERFACE_ADAPTER psIntfAdapter); 39 39
+3 -3
drivers/staging/bcm/InterfaceRx.c
··· 1 1 #include "headers.h" 2 2 3 - static int SearchVcid(PMINI_ADAPTER Adapter,unsigned short usVcid) 3 + static int SearchVcid(struct bcm_mini_adapter *Adapter,unsigned short usVcid) 4 4 { 5 5 int iIndex=0; 6 6 ··· 45 45 //int idleflag = 0 ; 46 46 PUSB_RCB pRcb = (PUSB_RCB)urb->context; 47 47 PS_INTERFACE_ADAPTER psIntfAdapter = pRcb->psIntfAdapter; 48 - PMINI_ADAPTER Adapter = psIntfAdapter->psAdapter; 48 + struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter; 49 49 struct bcm_leader *pLeader = urb->transfer_buffer; 50 50 51 51 if (unlikely(netif_msg_rx_status(Adapter))) ··· 232 232 Description: This is the hardware specific Function for Receiving 233 233 data packet/control packets from the device. 234 234 235 - Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context 235 + Input parameters: IN struct bcm_mini_adapter *Adapter - Miniport Adapter Context 236 236 237 237 238 238
+2 -2
drivers/staging/bcm/InterfaceTx.c
··· 6 6 PUSB_TCB pTcb= (PUSB_TCB)urb->context; 7 7 PS_INTERFACE_ADAPTER psIntfAdapter = pTcb->psIntfAdapter; 8 8 struct bcm_link_request *pControlMsg = (struct bcm_link_request *)urb->transfer_buffer; 9 - PMINI_ADAPTER psAdapter = psIntfAdapter->psAdapter ; 9 + struct bcm_mini_adapter *psAdapter = psIntfAdapter->psAdapter ; 10 10 BOOLEAN bpowerDownMsg = FALSE ; 11 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 11 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 12 12 13 13 if (unlikely(netif_msg_tx_done(Adapter))) 14 14 pr_info(PFX "%s: transmit status %d\n", Adapter->dev->name, urb->status);
+5 -5
drivers/staging/bcm/LeakyBucket.c
··· 15 15 * Returns - None 16 16 **********************************************************************/ 17 17 18 - static VOID UpdateTokenCount(register PMINI_ADAPTER Adapter) 18 + static VOID UpdateTokenCount(register struct bcm_mini_adapter *Adapter) 19 19 { 20 20 ULONG liCurrentTime; 21 21 INT i = 0; ··· 75 75 * Returns - The number of bytes allowed for transmission. 76 76 * 77 77 ***********************************************************************/ 78 - static ULONG GetSFTokenCount(PMINI_ADAPTER Adapter, struct bcm_packet_info *psSF) 78 + static ULONG GetSFTokenCount(struct bcm_mini_adapter *Adapter, struct bcm_packet_info *psSF) 79 79 { 80 80 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, TOKEN_COUNTS, DBG_LVL_ALL, "IsPacketAllowedForFlow ===>"); 81 81 /* Validate the parameters */ ··· 112 112 This function despatches packet from the specified queue. 113 113 @return Zero(success) or Negative value(failure) 114 114 */ 115 - static INT SendPacketFromQueue(PMINI_ADAPTER Adapter,/**<Logical Adapter*/ 115 + static INT SendPacketFromQueue(struct bcm_mini_adapter *Adapter,/**<Logical Adapter*/ 116 116 struct bcm_packet_info *psSF, /**<Queue identifier*/ 117 117 struct sk_buff* Packet) /**<Pointer to the packet to be sent*/ 118 118 { ··· 156 156 * Returns - None. 157 157 * 158 158 ****************************************************************************/ 159 - static VOID CheckAndSendPacketFromIndex(PMINI_ADAPTER Adapter, struct bcm_packet_info *psSF) 159 + static VOID CheckAndSendPacketFromIndex(struct bcm_mini_adapter *Adapter, struct bcm_packet_info *psSF) 160 160 { 161 161 struct sk_buff *QueuePacket=NULL; 162 162 char *pControlPacket = NULL; ··· 273 273 * 274 274 * Returns - None. 275 275 ********************************************************************/ 276 - VOID transmit_packets(PMINI_ADAPTER Adapter) 276 + VOID transmit_packets(struct bcm_mini_adapter *Adapter) 277 277 { 278 278 UINT uiPrevTotalCount = 0; 279 279 int iIndex = 0;
+44 -44
drivers/staging/bcm/Misc.c
··· 1 1 #include "headers.h" 2 2 3 - static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int loc); 4 - static VOID doPowerAutoCorrection(PMINI_ADAPTER psAdapter); 5 - static void HandleShutDownModeRequest(PMINI_ADAPTER Adapter, PUCHAR pucBuffer); 6 - static int bcm_parse_target_params(PMINI_ADAPTER Adapter); 7 - static void beceem_protocol_reset(PMINI_ADAPTER Adapter); 3 + static int BcmFileDownload(struct bcm_mini_adapter *Adapter, const char *path, unsigned int loc); 4 + static VOID doPowerAutoCorrection(struct bcm_mini_adapter *psAdapter); 5 + static void HandleShutDownModeRequest(struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer); 6 + static int bcm_parse_target_params(struct bcm_mini_adapter *Adapter); 7 + static void beceem_protocol_reset(struct bcm_mini_adapter *Adapter); 8 8 9 - static VOID default_wimax_protocol_initialize(PMINI_ADAPTER Adapter) 9 + static VOID default_wimax_protocol_initialize(struct bcm_mini_adapter *Adapter) 10 10 { 11 11 UINT uiLoopIndex; 12 12 ··· 24 24 return; 25 25 } 26 26 27 - INT InitAdapter(PMINI_ADAPTER psAdapter) 27 + INT InitAdapter(struct bcm_mini_adapter *psAdapter) 28 28 { 29 29 int i = 0; 30 30 INT Status = STATUS_SUCCESS; ··· 93 93 return STATUS_SUCCESS; 94 94 } 95 95 96 - VOID AdapterFree(PMINI_ADAPTER Adapter) 96 + VOID AdapterFree(struct bcm_mini_adapter *Adapter) 97 97 { 98 98 int count; 99 99 beceem_protocol_reset(Adapter); ··· 134 134 free_netdev(Adapter->dev); 135 135 } 136 136 137 - static int create_worker_threads(PMINI_ADAPTER psAdapter) 137 + static int create_worker_threads(struct bcm_mini_adapter *psAdapter) 138 138 { 139 139 /* Rx Control Packets Processing */ 140 140 psAdapter->control_packet_handler = kthread_run((int (*)(void *)) ··· 155 155 return 0; 156 156 } 157 157 158 - static struct file *open_firmware_file(PMINI_ADAPTER Adapter, const char *path) 158 + static struct file *open_firmware_file(struct bcm_mini_adapter *Adapter, const char *path) 159 159 { 160 160 struct file *flp = NULL; 161 161 mm_segment_t oldfs; ··· 179 179 * Path to image file 180 180 * Download Address on the chip 181 181 */ 182 - static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int loc) 182 + static int BcmFileDownload(struct bcm_mini_adapter *Adapter, const char *path, unsigned int loc) 183 183 { 184 184 int errorno = 0; 185 185 struct file *flp = NULL; ··· 231 231 * Logical Adapter 232 232 * Control Packet Buffer 233 233 */ 234 - INT CopyBufferToControlPacket(PMINI_ADAPTER Adapter, PVOID ioBuffer) 234 + INT CopyBufferToControlPacket(struct bcm_mini_adapter *Adapter, PVOID ioBuffer) 235 235 { 236 236 struct bcm_leader *pLeader = NULL; 237 237 INT Status = 0; ··· 414 414 * 415 415 * Returns - None. 416 416 *****************************************************************/ 417 - static VOID SendStatisticsPointerRequest(PMINI_ADAPTER Adapter, struct bcm_link_request *pstStatisticsPtrRequest) 417 + static VOID SendStatisticsPointerRequest(struct bcm_mini_adapter *Adapter, struct bcm_link_request *pstStatisticsPtrRequest) 418 418 { 419 419 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "======>"); 420 420 pstStatisticsPtrRequest->Leader.Status = STATS_POINTER_REQ_STATUS; ··· 436 436 * 437 437 * Returns - None. 438 438 *******************************************************************/ 439 - VOID LinkMessage(PMINI_ADAPTER Adapter) 439 + VOID LinkMessage(struct bcm_mini_adapter *Adapter) 440 440 { 441 441 struct bcm_link_request *pstLinkRequest = NULL; 442 442 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, LINK_UP_MSG, DBG_LVL_ALL, "=====>"); ··· 487 487 * 488 488 * Returns - None. 489 489 ************************************************************************/ 490 - VOID StatisticsResponse(PMINI_ADAPTER Adapter, PVOID pvBuffer) 490 + VOID StatisticsResponse(struct bcm_mini_adapter *Adapter, PVOID pvBuffer) 491 491 { 492 492 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "%s====>", __func__); 493 493 Adapter->StatisticsPointer = ntohl(*(__be32 *)pvBuffer); ··· 506 506 * 507 507 * Returns - None. 508 508 ***********************************************************************/ 509 - VOID LinkControlResponseMessage(PMINI_ADAPTER Adapter, PUCHAR pucBuffer) 509 + VOID LinkControlResponseMessage(struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer) 510 510 { 511 511 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "=====>"); 512 512 ··· 580 580 return; 581 581 } 582 582 583 - void SendIdleModeResponse(PMINI_ADAPTER Adapter) 583 + void SendIdleModeResponse(struct bcm_mini_adapter *Adapter) 584 584 { 585 585 INT status = 0, NVMAccess = 0, lowPwrAbortMsg = 0; 586 586 struct timeval tv; ··· 679 679 * 680 680 * Returns - None. 681 681 *******************************************************************/ 682 - VOID DumpPackInfo(PMINI_ADAPTER Adapter) 682 + VOID DumpPackInfo(struct bcm_mini_adapter *Adapter) 683 683 { 684 684 UINT uiLoopIndex = 0; 685 685 UINT uiIndex = 0; ··· 808 808 return; 809 809 } 810 810 811 - int reset_card_proc(PMINI_ADAPTER ps_adapter) 811 + int reset_card_proc(struct bcm_mini_adapter *ps_adapter) 812 812 { 813 813 int retval = STATUS_SUCCESS; 814 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 814 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 815 815 PS_INTERFACE_ADAPTER psIntfAdapter = NULL; 816 816 unsigned int value = 0, uiResetValue = 0; 817 817 int bytes; ··· 926 926 return retval; 927 927 } 928 928 929 - int run_card_proc(PMINI_ADAPTER ps_adapter) 929 + int run_card_proc(struct bcm_mini_adapter *ps_adapter) 930 930 { 931 931 int status = STATUS_SUCCESS; 932 932 int bytes; ··· 953 953 return status; 954 954 } 955 955 956 - int InitCardAndDownloadFirmware(PMINI_ADAPTER ps_adapter) 956 + int InitCardAndDownloadFirmware(struct bcm_mini_adapter *ps_adapter) 957 957 { 958 958 int status; 959 959 UINT value = 0; ··· 1077 1077 return status; 1078 1078 } 1079 1079 1080 - static int bcm_parse_target_params(PMINI_ADAPTER Adapter) 1080 + static int bcm_parse_target_params(struct bcm_mini_adapter *Adapter) 1081 1081 { 1082 1082 struct file *flp = NULL; 1083 1083 mm_segment_t oldfs = {0}; ··· 1128 1128 return STATUS_SUCCESS; 1129 1129 } 1130 1130 1131 - void beceem_parse_target_struct(PMINI_ADAPTER Adapter) 1131 + void beceem_parse_target_struct(struct bcm_mini_adapter *Adapter) 1132 1132 { 1133 1133 UINT uiHostDrvrCfg6 = 0, uiEEPROMFlag = 0; 1134 1134 ··· 1186 1186 doPowerAutoCorrection(Adapter); 1187 1187 } 1188 1188 1189 - static VOID doPowerAutoCorrection(PMINI_ADAPTER psAdapter) 1189 + static VOID doPowerAutoCorrection(struct bcm_mini_adapter *psAdapter) 1190 1190 { 1191 1191 UINT reporting_mode; 1192 1192 ··· 1218 1218 } 1219 1219 1220 1220 #if 0 1221 - static unsigned char *ReadMacAddrEEPROM(PMINI_ADAPTER Adapter, ulong dwAddress) 1221 + static unsigned char *ReadMacAddrEEPROM(struct bcm_mini_adapter *Adapter, ulong dwAddress) 1222 1222 { 1223 1223 int status = 0, i = 0; 1224 1224 unsigned int temp = 0; ··· 1272 1272 #define CACHE_ADDRESS_MASK 0x80000000 1273 1273 #define UNCACHE_ADDRESS_MASK 0xa0000000 1274 1274 1275 - int rdm(PMINI_ADAPTER Adapter, UINT uiAddress, PCHAR pucBuff, size_t sSize) 1275 + int rdm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t sSize) 1276 1276 { 1277 1277 return Adapter->interface_rdm(Adapter->pvInterfaceAdapter, 1278 1278 uiAddress, pucBuff, sSize); 1279 1279 } 1280 1280 1281 - int wrm(PMINI_ADAPTER Adapter, UINT uiAddress, PCHAR pucBuff, size_t sSize) 1281 + int wrm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t sSize) 1282 1282 { 1283 1283 int iRetVal; 1284 1284 ··· 1287 1287 return iRetVal; 1288 1288 } 1289 1289 1290 - int wrmalt(PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1290 + int wrmalt(struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1291 1291 { 1292 1292 convertEndian(RWM_WRITE, pucBuff, size); 1293 1293 return wrm(Adapter, uiAddress, (PUCHAR)pucBuff, size); 1294 1294 } 1295 1295 1296 - int rdmalt(PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1296 + int rdmalt(struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1297 1297 { 1298 1298 INT uiRetVal = 0; 1299 1299 ··· 1303 1303 return uiRetVal; 1304 1304 } 1305 1305 1306 - int wrmWithLock(PMINI_ADAPTER Adapter, UINT uiAddress, PCHAR pucBuff, size_t sSize) 1306 + int wrmWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t sSize) 1307 1307 { 1308 1308 INT status = STATUS_SUCCESS; 1309 1309 down(&Adapter->rdmwrmsync); ··· 1322 1322 return status; 1323 1323 } 1324 1324 1325 - int wrmaltWithLock(PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1325 + int wrmaltWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1326 1326 { 1327 1327 int iRetVal = STATUS_SUCCESS; 1328 1328 ··· 1342 1342 return iRetVal; 1343 1343 } 1344 1344 1345 - int rdmaltWithLock(PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1345 + int rdmaltWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t size) 1346 1346 { 1347 1347 INT uiRetVal = STATUS_SUCCESS; 1348 1348 ··· 1361 1361 return uiRetVal; 1362 1362 } 1363 1363 1364 - static VOID HandleShutDownModeWakeup(PMINI_ADAPTER Adapter) 1364 + static VOID HandleShutDownModeWakeup(struct bcm_mini_adapter *Adapter) 1365 1365 { 1366 1366 int clear_abort_pattern = 0, Status = 0; 1367 1367 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, MP_SHUTDOWN, DBG_LVL_ALL, "====>\n"); ··· 1390 1390 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, MP_SHUTDOWN, DBG_LVL_ALL, "<====\n"); 1391 1391 } 1392 1392 1393 - static VOID SendShutModeResponse(PMINI_ADAPTER Adapter) 1393 + static VOID SendShutModeResponse(struct bcm_mini_adapter *Adapter) 1394 1394 { 1395 1395 struct bcm_link_request stShutdownResponse; 1396 1396 UINT NVMAccess = 0, lowPwrAbortMsg = 0; ··· 1474 1474 } 1475 1475 } 1476 1476 1477 - static void HandleShutDownModeRequest(PMINI_ADAPTER Adapter, PUCHAR pucBuffer) 1477 + static void HandleShutDownModeRequest(struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer) 1478 1478 { 1479 1479 B_UINT32 uiResetValue = 0; 1480 1480 ··· 1503 1503 return; 1504 1504 } 1505 1505 1506 - VOID ResetCounters(PMINI_ADAPTER Adapter) 1506 + VOID ResetCounters(struct bcm_mini_adapter *Adapter) 1507 1507 { 1508 1508 beceem_protocol_reset(Adapter); 1509 1509 Adapter->CurrNumRecvDescs = 0; ··· 1519 1519 Adapter->bShutStatus = FALSE; 1520 1520 } 1521 1521 1522 - struct bcm_classifier_rule *GetFragIPClsEntry(PMINI_ADAPTER Adapter, USHORT usIpIdentification, ULONG SrcIP) 1522 + struct bcm_classifier_rule *GetFragIPClsEntry(struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIP) 1523 1523 { 1524 1524 UINT uiIndex = 0; 1525 1525 for (uiIndex = 0; uiIndex < MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES; uiIndex++) { ··· 1533 1533 return NULL; 1534 1534 } 1535 1535 1536 - void AddFragIPClsEntry(PMINI_ADAPTER Adapter, struct bcm_fragmented_packet_info *psFragPktInfo) 1536 + void AddFragIPClsEntry(struct bcm_mini_adapter *Adapter, struct bcm_fragmented_packet_info *psFragPktInfo) 1537 1537 { 1538 1538 UINT uiIndex = 0; 1539 1539 for (uiIndex = 0; uiIndex < MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES; uiIndex++) { ··· 1544 1544 } 1545 1545 } 1546 1546 1547 - void DelFragIPClsEntry(PMINI_ADAPTER Adapter, USHORT usIpIdentification, ULONG SrcIp) 1547 + void DelFragIPClsEntry(struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIp) 1548 1548 { 1549 1549 UINT uiIndex = 0; 1550 1550 for (uiIndex = 0; uiIndex < MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES; uiIndex++) { ··· 1556 1556 } 1557 1557 } 1558 1558 1559 - void update_per_cid_rx(PMINI_ADAPTER Adapter) 1559 + void update_per_cid_rx(struct bcm_mini_adapter *Adapter) 1560 1560 { 1561 1561 UINT qindex = 0; 1562 1562 ··· 1580 1580 Adapter->liDrainCalculated = jiffies; 1581 1581 } 1582 1582 1583 - void update_per_sf_desc_cnts(PMINI_ADAPTER Adapter) 1583 + void update_per_sf_desc_cnts(struct bcm_mini_adapter *Adapter) 1584 1584 { 1585 1585 INT iIndex = 0; 1586 1586 u32 uibuff[MAX_TARGET_DSX_BUFFERS]; ··· 1606 1606 atomic_set(&Adapter->uiMBupdate, FALSE); 1607 1607 } 1608 1608 1609 - void flush_queue(PMINI_ADAPTER Adapter, UINT iQIndex) 1609 + void flush_queue(struct bcm_mini_adapter *Adapter, UINT iQIndex) 1610 1610 { 1611 1611 struct sk_buff *PacketToDrop = NULL; 1612 1612 struct net_device_stats *netstats = &Adapter->dev->stats; ··· 1630 1630 spin_unlock_bh(&Adapter->PackInfo[iQIndex].SFQueueLock); 1631 1631 } 1632 1632 1633 - static void beceem_protocol_reset(PMINI_ADAPTER Adapter) 1633 + static void beceem_protocol_reset(struct bcm_mini_adapter *Adapter) 1634 1634 { 1635 1635 int i; 1636 1636 if (netif_msg_link(Adapter))
+19 -19
drivers/staging/bcm/PHSModule.c
··· 58 58 The header data after supression is copied back to the NDIS_PACKET. 59 59 60 60 61 - Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context 61 + Input parameters: IN struct bcm_mini_adapter *Adapter - Miniport Adapter Context 62 62 IN Packet - NDIS packet containing data to be transmitted 63 63 IN USHORT Vcid - vcid pertaining to connection on which the packet is being sent.Used to 64 64 identify PHS rule to be applied. ··· 69 69 Other - If an error occured. 70 70 */ 71 71 72 - int PHSTransmit(PMINI_ADAPTER Adapter, 72 + int PHSTransmit(struct bcm_mini_adapter *Adapter, 73 73 struct sk_buff **pPacket, 74 74 USHORT Vcid, 75 75 B_UINT16 uiClassifierRuleID, ··· 209 209 return STATUS_SUCCESS; 210 210 } 211 211 212 - int PHSReceive(PMINI_ADAPTER Adapter, 212 + int PHSReceive(struct bcm_mini_adapter *Adapter, 213 213 USHORT usVcid, 214 214 struct sk_buff *packet, 215 215 UINT *punPacketLen, ··· 273 273 274 274 void DumpFullPacket(UCHAR *pBuf,UINT nPktLen) 275 275 { 276 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 276 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 277 277 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL,"Dumping Data Packet"); 278 278 BCM_DEBUG_PRINT_BUFFER(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL,pBuf,nPktLen); 279 279 } ··· 291 291 // TRUE(1) -If allocation of memory was success full. 292 292 // FALSE -If allocation of memory fails. 293 293 //----------------------------------------------------------------------------- 294 - int phs_init(PPHS_DEVICE_EXTENSION pPhsdeviceExtension,PMINI_ADAPTER Adapter) 294 + int phs_init(PPHS_DEVICE_EXTENSION pPhsdeviceExtension, struct bcm_mini_adapter *Adapter) 295 295 { 296 296 int i; 297 297 S_SERVICEFLOW_TABLE *pstServiceFlowTable; ··· 398 398 ULONG lStatus =0; 399 399 UINT nSFIndex =0 ; 400 400 S_SERVICEFLOW_ENTRY *pstServiceFlowEntry = NULL; 401 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 401 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 402 402 403 403 404 404 ··· 462 462 UINT nSFIndex =0, nClsidIndex =0 ; 463 463 S_SERVICEFLOW_ENTRY *pstServiceFlowEntry = NULL; 464 464 S_CLASSIFIER_TABLE *pstClassifierRulesTable = NULL; 465 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 465 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 466 466 467 467 468 468 PPHS_DEVICE_EXTENSION pDeviceExtension= (PPHS_DEVICE_EXTENSION)pvContext; ··· 528 528 UINT nSFIndex =0, nClsidIndex =0 ; 529 529 S_SERVICEFLOW_ENTRY *pstServiceFlowEntry = NULL; 530 530 S_CLASSIFIER_ENTRY *pstClassifierEntry = NULL; 531 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 531 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 532 532 PPHS_DEVICE_EXTENSION pDeviceExtension= (PPHS_DEVICE_EXTENSION)pvContext; 533 533 534 534 if(pDeviceExtension) ··· 592 592 UINT nSFIndex =0, nClsidIndex =0 ; 593 593 S_SERVICEFLOW_ENTRY *pstServiceFlowEntry = NULL; 594 594 S_CLASSIFIER_TABLE *pstClassifierRulesTable = NULL; 595 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 595 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 596 596 PPHS_DEVICE_EXTENSION pDeviceExtension= (PPHS_DEVICE_EXTENSION)pvContext; 597 597 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_DISPATCH, DBG_LVL_ALL,"====> \n"); 598 598 ··· 684 684 S_CLASSIFIER_ENTRY *pstClassifierEntry = NULL; 685 685 S_PHS_RULE *pstPhsRule = NULL; 686 686 ULONG lStatus =0; 687 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 687 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 688 688 689 689 690 690 ··· 778 778 S_SERVICEFLOW_ENTRY *pstServiceFlowEntry = NULL; 779 779 S_PHS_RULE *pstPhsRule = NULL; 780 780 UINT phsi; 781 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 781 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 782 782 PPHS_DEVICE_EXTENSION pDeviceExtension= 783 783 (PPHS_DEVICE_EXTENSION)pvContext; 784 784 ··· 847 847 static void free_phs_serviceflow_rules(S_SERVICEFLOW_TABLE *psServiceFlowRulesTable) 848 848 { 849 849 int i,j; 850 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 850 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 851 851 852 852 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_DISPATCH, DBG_LVL_ALL, "=======>\n"); 853 853 if(psServiceFlowRulesTable) ··· 1057 1057 UINT uiStatus =PHS_SUCCESS; 1058 1058 UINT nClassifierIndex = 0; 1059 1059 S_CLASSIFIER_TABLE *psaClassifiertable = NULL; 1060 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1060 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1061 1061 psaClassifiertable = pstServiceFlowEntry->pstClassifierTable; 1062 1062 1063 1063 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_DISPATCH, DBG_LVL_ALL, "==>"); ··· 1148 1148 BOOLEAN bFreeEntryFound = FALSE; 1149 1149 S_CLASSIFIER_ENTRY *psClassifierRules = NULL; 1150 1150 UINT nStatus = PHS_SUCCESS; 1151 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1151 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1152 1152 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_DISPATCH, DBG_LVL_ALL,"Inside CreateClassifierPHSRule"); 1153 1153 if(psaClassifiertable == NULL) 1154 1154 { ··· 1259 1259 S_PHS_RULE *pstAddPhsRule = NULL; 1260 1260 UINT nPhsRuleIndex = 0; 1261 1261 BOOLEAN bPHSRuleOrphaned = FALSE; 1262 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1262 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1263 1263 psPhsRule->u8RefCnt =0; 1264 1264 1265 1265 /* Step 1 Deref Any Exisiting PHS Rule in this classifier Entry*/ ··· 1334 1334 void DumpPhsRules(PPHS_DEVICE_EXTENSION pDeviceExtension) 1335 1335 { 1336 1336 int i,j,k,l; 1337 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1337 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1338 1338 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "\n Dumping PHS Rules : \n"); 1339 1339 for(i=0;i<MAX_SERVICEFLOWS;i++) 1340 1340 { ··· 1415 1415 int bit,i=0; 1416 1416 unsigned char *phsf,*phsm; 1417 1417 int in_buf_len = *header_size-1; 1418 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1418 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1419 1419 in_buf++; 1420 1420 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_RECEIVE,DBG_LVL_ALL,"====>\n"); 1421 1421 *header_size = 0; ··· 1495 1495 { 1496 1496 unsigned char *old_addr = out_buf; 1497 1497 int supress = 0; 1498 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1498 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1499 1499 if(phs_rule == NULL) 1500 1500 { 1501 1501 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_SEND, DBG_LVL_ALL,"\nphs_compress(): phs_rule null!"); ··· 1557 1557 { 1558 1558 unsigned int size=0; 1559 1559 int bit,i=0; 1560 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 1560 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1561 1561 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, PHS_SEND, DBG_LVL_ALL,"\nCOMP:In verify_phsf PHSM - 0x%X",*phsm); 1562 1562 1563 1563
+3 -3
drivers/staging/bcm/PHSModule.h
··· 1 1 #ifndef BCM_MINIPORT_PHSMODULE_H 2 2 #define BCM_MINIPORT_PHSMODULE_H 3 3 4 - int PHSTransmit(PMINI_ADAPTER Adapter, 4 + int PHSTransmit(struct bcm_mini_adapter *Adapter, 5 5 struct sk_buff **pPacket, 6 6 USHORT Vcid, 7 7 B_UINT16 uiClassifierRuleID, ··· 9 9 PUINT PacketLen, 10 10 UCHAR bEthCSSupport); 11 11 12 - int PHSReceive(PMINI_ADAPTER Adapter, 12 + int PHSReceive(struct bcm_mini_adapter *Adapter, 13 13 USHORT usVcid, 14 14 struct sk_buff *packet, 15 15 UINT *punPacketLen, ··· 25 25 void DumpPhsRules(PPHS_DEVICE_EXTENSION pDeviceExtension); 26 26 27 27 28 - int phs_init(PPHS_DEVICE_EXTENSION pPhsdeviceExtension,PMINI_ADAPTER Adapter); 28 + int phs_init(PPHS_DEVICE_EXTENSION pPhsdeviceExtension,struct bcm_mini_adapter *Adapter); 29 29 30 30 int PhsCleanup(PPHS_DEVICE_EXTENSION pPHSDeviceExt); 31 31
+90 -90
drivers/staging/bcm/Prototypes.h
··· 1 1 #ifndef _PROTOTYPES_H_ 2 2 #define _PROTOTYPES_H_ 3 3 4 - VOID LinkControlResponseMessage(PMINI_ADAPTER Adapter, PUCHAR pucBuffer); 4 + VOID LinkControlResponseMessage(struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer); 5 5 6 - VOID StatisticsResponse(PMINI_ADAPTER Adapter,PVOID pvBuffer); 6 + VOID StatisticsResponse(struct bcm_mini_adapter *Adapter,PVOID pvBuffer); 7 7 8 - VOID IdleModeResponse(PMINI_ADAPTER Adapter,PUINT puiBuffer); 8 + VOID IdleModeResponse(struct bcm_mini_adapter *Adapter,PUINT puiBuffer); 9 9 10 - int control_packet_handler (PMINI_ADAPTER Adapter); 10 + int control_packet_handler (struct bcm_mini_adapter *Adapter); 11 11 12 - VOID DeleteAllClassifiersForSF(PMINI_ADAPTER Adapter,UINT uiSearchRuleIndex); 12 + VOID DeleteAllClassifiersForSF(struct bcm_mini_adapter *Adapter,UINT uiSearchRuleIndex); 13 13 14 - VOID flush_all_queues(PMINI_ADAPTER Adapter); 14 + VOID flush_all_queues(struct bcm_mini_adapter *Adapter); 15 15 16 - int register_control_device_interface(PMINI_ADAPTER ps_adapter); 16 + int register_control_device_interface(struct bcm_mini_adapter *ps_adapter); 17 17 18 - void unregister_control_device_interface(PMINI_ADAPTER Adapter); 18 + void unregister_control_device_interface(struct bcm_mini_adapter *Adapter); 19 19 20 - INT CopyBufferToControlPacket(PMINI_ADAPTER Adapter,/**<Logical Adapter*/ 20 + INT CopyBufferToControlPacket(struct bcm_mini_adapter *Adapter,/**<Logical Adapter*/ 21 21 PVOID ioBuffer/**<Control Packet Buffer*/ 22 22 ); 23 23 24 - VOID SortPackInfo(PMINI_ADAPTER Adapter); 24 + VOID SortPackInfo(struct bcm_mini_adapter *Adapter); 25 25 26 - VOID SortClassifiers(PMINI_ADAPTER Adapter); 26 + VOID SortClassifiers(struct bcm_mini_adapter *Adapter); 27 27 28 - VOID flush_all_queues(PMINI_ADAPTER Adapter); 28 + VOID flush_all_queues(struct bcm_mini_adapter *Adapter); 29 29 30 - VOID PruneQueueAllSF(PMINI_ADAPTER Adapter); 30 + VOID PruneQueueAllSF(struct bcm_mini_adapter *Adapter); 31 31 32 - INT SearchSfid(PMINI_ADAPTER Adapter,UINT uiSfid); 32 + INT SearchSfid(struct bcm_mini_adapter *Adapter,UINT uiSfid); 33 33 34 - USHORT ClassifyPacket(PMINI_ADAPTER Adapter,struct sk_buff* skb); 34 + USHORT ClassifyPacket(struct bcm_mini_adapter *Adapter,struct sk_buff* skb); 35 35 36 36 BOOLEAN MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushSrcPort); 37 37 BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushSrcPort); 38 38 BOOLEAN MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,UCHAR ucProtocol); 39 39 40 40 41 - INT SetupNextSend(PMINI_ADAPTER Adapter, /**<Logical Adapter*/ 41 + INT SetupNextSend(struct bcm_mini_adapter *Adapter, /**<Logical Adapter*/ 42 42 struct sk_buff *Packet, /**<data buffer*/ 43 43 USHORT Vcid) ; 44 44 45 - VOID LinkMessage(PMINI_ADAPTER Adapter); 45 + VOID LinkMessage(struct bcm_mini_adapter *Adapter); 46 46 47 - VOID transmit_packets(PMINI_ADAPTER Adapter); 47 + VOID transmit_packets(struct bcm_mini_adapter *Adapter); 48 48 49 - INT SendControlPacket(PMINI_ADAPTER Adapter, /**<Logical Adapter*/ 49 + INT SendControlPacket(struct bcm_mini_adapter *Adapter, /**<Logical Adapter*/ 50 50 char *pControlPacket/**<Control Packet*/ 51 51 ); 52 52 53 53 54 - int register_networkdev(PMINI_ADAPTER Adapter); 55 - void unregister_networkdev(PMINI_ADAPTER Adapter); 54 + int register_networkdev(struct bcm_mini_adapter *Adapter); 55 + void unregister_networkdev(struct bcm_mini_adapter *Adapter); 56 56 57 - INT AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter); 57 + INT AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter); 58 58 59 - VOID AdapterFree(PMINI_ADAPTER Adapter); 59 + VOID AdapterFree(struct bcm_mini_adapter *Adapter); 60 60 61 - INT FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter); 61 + INT FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter); 62 62 63 - int tx_pkt_handler(PMINI_ADAPTER Adapter); 63 + int tx_pkt_handler(struct bcm_mini_adapter *Adapter); 64 64 65 - int reset_card_proc(PMINI_ADAPTER Adapter ); 65 + int reset_card_proc(struct bcm_mini_adapter *Adapter ); 66 66 67 - int run_card_proc(PMINI_ADAPTER Adapter ); 67 + int run_card_proc(struct bcm_mini_adapter *Adapter ); 68 68 69 - int InitCardAndDownloadFirmware(PMINI_ADAPTER ps_adapter); 70 - 71 - 72 - INT ReadMacAddressFromNVM(PMINI_ADAPTER Adapter); 73 - 74 - int register_control_device_interface(PMINI_ADAPTER ps_adapter); 75 - 76 - void DumpPackInfo(PMINI_ADAPTER Adapter); 77 - 78 - int rdm(PMINI_ADAPTER Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); 79 - 80 - int wrm(PMINI_ADAPTER Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); 81 - 82 - int wrmalt (PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 83 - 84 - int rdmalt (PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 85 - 86 - int get_dsx_sf_data_to_application(PMINI_ADAPTER Adapter, UINT uiSFId, void __user * user_buffer); 87 - 88 - void SendIdleModeResponse(PMINI_ADAPTER Adapter); 69 + int InitCardAndDownloadFirmware(struct bcm_mini_adapter *ps_adapter); 89 70 90 71 91 - int ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *buf); 72 + INT ReadMacAddressFromNVM(struct bcm_mini_adapter *Adapter); 73 + 74 + int register_control_device_interface(struct bcm_mini_adapter *ps_adapter); 75 + 76 + void DumpPackInfo(struct bcm_mini_adapter *Adapter); 77 + 78 + int rdm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); 79 + 80 + int wrm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); 81 + 82 + int wrmalt (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 83 + 84 + int rdmalt (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 85 + 86 + int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user * user_buffer); 87 + 88 + void SendIdleModeResponse(struct bcm_mini_adapter *Adapter); 89 + 90 + 91 + int ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, S_MIBS_HOST_STATS_MIBS *buf); 92 92 void GetDroppedAppCntrlPktMibs(S_MIBS_HOST_STATS_MIBS *ioBuffer, struct bcm_tarang_data *pTarang); 93 - void beceem_parse_target_struct(PMINI_ADAPTER Adapter); 93 + void beceem_parse_target_struct(struct bcm_mini_adapter *Adapter); 94 94 95 - int bcm_ioctl_fw_download(PMINI_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(PMINI_ADAPTER Adapter, 97 + void CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, 98 98 CServiceFlowParamSI *psfLocalSet, UINT uiSearchRuleIndex); 99 99 100 - VOID ResetCounters(PMINI_ADAPTER Adapter); 100 + VOID ResetCounters(struct bcm_mini_adapter *Adapter); 101 101 102 - int InitLedSettings(PMINI_ADAPTER Adapter); 102 + int InitLedSettings(struct bcm_mini_adapter *Adapter); 103 103 104 - struct bcm_classifier_rule *GetFragIPClsEntry(PMINI_ADAPTER Adapter,USHORT usIpIdentification,ULONG SrcIP); 104 + struct bcm_classifier_rule *GetFragIPClsEntry(struct bcm_mini_adapter *Adapter,USHORT usIpIdentification,ULONG SrcIP); 105 105 106 - void AddFragIPClsEntry(PMINI_ADAPTER Adapter, struct bcm_fragmented_packet_info *psFragPktInfo); 106 + void AddFragIPClsEntry(struct bcm_mini_adapter *Adapter, struct bcm_fragmented_packet_info *psFragPktInfo); 107 107 108 - void DelFragIPClsEntry(PMINI_ADAPTER Adapter,USHORT usIpIdentification,ULONG SrcIp); 108 + void DelFragIPClsEntry(struct bcm_mini_adapter *Adapter,USHORT usIpIdentification,ULONG SrcIp); 109 109 110 - void update_per_cid_rx (PMINI_ADAPTER Adapter); 110 + void update_per_cid_rx (struct bcm_mini_adapter *Adapter); 111 111 112 - void update_per_sf_desc_cnts( PMINI_ADAPTER Adapter); 112 + void update_per_sf_desc_cnts( struct bcm_mini_adapter *Adapter); 113 113 114 - void ClearTargetDSXBuffer(PMINI_ADAPTER Adapter,B_UINT16 TID,BOOLEAN bFreeAll); 114 + void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter,B_UINT16 TID,BOOLEAN bFreeAll); 115 115 116 116 117 - void flush_queue(PMINI_ADAPTER Adapter, UINT iQIndex); 117 + void flush_queue(struct bcm_mini_adapter *Adapter, UINT iQIndex); 118 118 119 119 120 120 INT flushAllAppQ(VOID); 121 121 122 122 123 123 INT BeceemEEPROMBulkRead( 124 - PMINI_ADAPTER Adapter, 124 + struct bcm_mini_adapter *Adapter, 125 125 PUINT pBuffer, 126 126 UINT uiOffset, 127 127 UINT uiNumBytes); 128 128 129 129 130 130 131 - INT WriteBeceemEEPROM(PMINI_ADAPTER Adapter,UINT uiEEPROMOffset, UINT uiData); 131 + INT WriteBeceemEEPROM(struct bcm_mini_adapter *Adapter,UINT uiEEPROMOffset, UINT uiData); 132 132 133 - INT PropagateCalParamsFromFlashToMemory(PMINI_ADAPTER Adapter); 133 + INT PropagateCalParamsFromFlashToMemory(struct bcm_mini_adapter *Adapter); 134 134 135 135 136 136 INT BeceemEEPROMBulkWrite( 137 - PMINI_ADAPTER Adapter, 137 + struct bcm_mini_adapter *Adapter, 138 138 PUCHAR pBuffer, 139 139 UINT uiOffset, 140 140 UINT uiNumBytes, 141 141 BOOLEAN bVerify); 142 142 143 143 144 - INT ReadBeceemEEPROM(PMINI_ADAPTER Adapter,UINT dwAddress, UINT *pdwData); 144 + INT ReadBeceemEEPROM(struct bcm_mini_adapter *Adapter,UINT dwAddress, UINT *pdwData); 145 145 146 146 147 147 INT BeceemNVMRead( 148 - PMINI_ADAPTER Adapter, 148 + struct bcm_mini_adapter *Adapter, 149 149 PUINT pBuffer, 150 150 UINT uiOffset, 151 151 UINT uiNumBytes); 152 152 153 153 INT BeceemNVMWrite( 154 - PMINI_ADAPTER Adapter, 154 + struct bcm_mini_adapter *Adapter, 155 155 PUINT pBuffer, 156 156 UINT uiOffset, 157 157 UINT uiNumBytes, 158 158 BOOLEAN bVerify); 159 159 160 160 161 - INT BcmInitNVM(PMINI_ADAPTER Adapter); 161 + INT BcmInitNVM(struct bcm_mini_adapter *Adapter); 162 162 163 - INT BcmUpdateSectorSize(PMINI_ADAPTER Adapter,UINT uiSectorSize); 164 - BOOLEAN IsSectionExistInFlash(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL section); 163 + INT BcmUpdateSectorSize(struct bcm_mini_adapter *Adapter,UINT uiSectorSize); 164 + BOOLEAN IsSectionExistInFlash(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL section); 165 165 166 - INT BcmGetFlash2xSectionalBitMap(PMINI_ADAPTER Adapter, PFLASH2X_BITMAP psFlash2xBitMap); 166 + INT BcmGetFlash2xSectionalBitMap(struct bcm_mini_adapter *Adapter, PFLASH2X_BITMAP psFlash2xBitMap); 167 167 168 168 INT BcmFlash2xBulkWrite( 169 - PMINI_ADAPTER Adapter, 169 + struct bcm_mini_adapter *Adapter, 170 170 PUINT pBuffer, 171 171 FLASH2X_SECTION_VAL eFlashSectionVal, 172 172 UINT uiOffset, ··· 174 174 UINT bVerify); 175 175 176 176 INT BcmFlash2xBulkRead( 177 - PMINI_ADAPTER Adapter, 177 + struct bcm_mini_adapter *Adapter, 178 178 PUINT pBuffer, 179 179 FLASH2X_SECTION_VAL eFlashSectionVal, 180 180 UINT uiOffsetWithinSectionVal, 181 181 UINT uiNumBytes); 182 182 183 - INT BcmGetSectionValStartOffset(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlashSectionVal); 183 + INT BcmGetSectionValStartOffset(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlashSectionVal); 184 184 185 - INT BcmSetActiveSection(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectVal); 186 - INT BcmAllocFlashCSStructure(PMINI_ADAPTER psAdapter); 187 - INT BcmDeAllocFlashCSStructure(PMINI_ADAPTER psAdapter); 185 + INT BcmSetActiveSection(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectVal); 186 + INT BcmAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter); 187 + INT BcmDeAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter); 188 188 189 - INT BcmCopyISO(PMINI_ADAPTER Adapter, FLASH2X_COPY_SECTION sCopySectStrut); 190 - INT BcmFlash2xCorruptSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 191 - INT BcmFlash2xWriteSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlashSectionVal); 192 - INT validateFlash2xReadWrite(PMINI_ADAPTER Adapter, PFLASH2X_READWRITE psFlash2xReadWrite); 193 - INT IsFlash2x(PMINI_ADAPTER Adapter); 194 - INT BcmCopySection(PMINI_ADAPTER Adapter, 189 + INT BcmCopyISO(struct bcm_mini_adapter *Adapter, FLASH2X_COPY_SECTION sCopySectStrut); 190 + INT BcmFlash2xCorruptSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 191 + INT BcmFlash2xWriteSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlashSectionVal); 192 + INT validateFlash2xReadWrite(struct bcm_mini_adapter *Adapter, PFLASH2X_READWRITE psFlash2xReadWrite); 193 + INT IsFlash2x(struct bcm_mini_adapter *Adapter); 194 + INT BcmCopySection(struct bcm_mini_adapter *Adapter, 195 195 FLASH2X_SECTION_VAL SrcSection, 196 196 FLASH2X_SECTION_VAL DstSection, 197 197 UINT offset, 198 198 UINT numOfBytes); 199 199 200 200 201 - BOOLEAN IsNonCDLessDevice(PMINI_ADAPTER Adapter); 201 + BOOLEAN IsNonCDLessDevice(struct bcm_mini_adapter *Adapter); 202 202 203 203 204 - VOID OverrideServiceFlowParams(PMINI_ADAPTER Adapter,PUINT puiBuffer); 204 + VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter,PUINT puiBuffer); 205 205 206 - int wrmaltWithLock (PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 207 - int rdmaltWithLock (PMINI_ADAPTER Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 206 + int wrmaltWithLock (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 207 + int rdmaltWithLock (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize); 208 208 209 - int wrmWithLock(PMINI_ADAPTER Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); 210 - INT buffDnldVerify(PMINI_ADAPTER Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, 209 + int wrmWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); 210 + INT buffDnldVerify(struct bcm_mini_adapter *Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, 211 211 unsigned long u32StartingAddress); 212 212 213 213 214 214 VOID putUsbSuspend(struct work_struct *work); 215 - BOOLEAN IsReqGpioIsLedInNVM(PMINI_ADAPTER Adapter, UINT gpios); 215 + BOOLEAN IsReqGpioIsLedInNVM(struct bcm_mini_adapter *Adapter, UINT gpios); 216 216 217 217 218 218 #endif
+21 -21
drivers/staging/bcm/Qos.c
··· 4 4 */ 5 5 #include "headers.h" 6 6 7 - static void EThCSGetPktInfo(PMINI_ADAPTER Adapter,PVOID pvEthPayload,PS_ETHCS_PKT_INFO pstEthCsPktInfo); 8 - static BOOLEAN EThCSClassifyPkt(PMINI_ADAPTER Adapter,struct sk_buff* skb,PS_ETHCS_PKT_INFO pstEthCsPktInfo,struct bcm_classifier_rule *pstClassifierRule, B_UINT8 EthCSCupport); 7 + static void EThCSGetPktInfo(struct bcm_mini_adapter *Adapter,PVOID pvEthPayload,PS_ETHCS_PKT_INFO pstEthCsPktInfo); 8 + static BOOLEAN EThCSClassifyPkt(struct bcm_mini_adapter *Adapter,struct sk_buff* skb,PS_ETHCS_PKT_INFO pstEthCsPktInfo,struct bcm_classifier_rule *pstClassifierRule, B_UINT8 EthCSCupport); 9 9 10 - static USHORT IpVersion4(PMINI_ADAPTER Adapter, struct iphdr *iphd, 10 + static USHORT IpVersion4(struct bcm_mini_adapter *Adapter, struct iphdr *iphd, 11 11 struct bcm_classifier_rule *pstClassifierRule ); 12 12 13 - static VOID PruneQueue(PMINI_ADAPTER Adapter, INT iIndex); 13 + static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex); 14 14 15 15 16 16 /******************************************************************* ··· 28 28 { 29 29 UCHAR ucLoopIndex=0; 30 30 31 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 31 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 32 32 33 33 ulSrcIP=ntohl(ulSrcIP); 34 34 if(0 == pstClassifierRule->ucIPSourceAddressLength) ··· 61 61 BOOLEAN MatchDestIpAddress(struct bcm_classifier_rule *pstClassifierRule,ULONG ulDestIP) 62 62 { 63 63 UCHAR ucLoopIndex=0; 64 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 64 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 65 65 66 66 ulDestIP=ntohl(ulDestIP); 67 67 if(0 == pstClassifierRule->ucIPDestinationAddressLength) ··· 94 94 BOOLEAN MatchTos(struct bcm_classifier_rule *pstClassifierRule,UCHAR ucTypeOfService) 95 95 { 96 96 97 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 97 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 98 98 if( 3 != pstClassifierRule->ucIPTypeOfServiceLength ) 99 99 return TRUE; 100 100 ··· 120 120 BOOLEAN MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,UCHAR ucProtocol) 121 121 { 122 122 UCHAR ucLoopIndex=0; 123 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 123 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 124 124 if(0 == pstClassifierRule->ucProtocolLength) 125 125 return TRUE; 126 126 for(ucLoopIndex=0;ucLoopIndex<pstClassifierRule->ucProtocolLength;ucLoopIndex++) ··· 150 150 { 151 151 UCHAR ucLoopIndex=0; 152 152 153 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 153 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 154 154 155 155 156 156 if(0 == pstClassifierRule->ucSrcPortRangeLength) ··· 181 181 BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushDestPort) 182 182 { 183 183 UCHAR ucLoopIndex=0; 184 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 184 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 185 185 186 186 if(0 == pstClassifierRule->ucDestPortRangeLength) 187 187 return TRUE; ··· 204 204 Compares IPV4 Ip address and port number 205 205 @return Queue Index. 206 206 */ 207 - static USHORT IpVersion4(PMINI_ADAPTER Adapter, 207 + static USHORT IpVersion4(struct bcm_mini_adapter *Adapter, 208 208 struct iphdr *iphd, 209 209 struct bcm_classifier_rule *pstClassifierRule) 210 210 { ··· 302 302 return bClassificationSucceed; 303 303 } 304 304 305 - VOID PruneQueueAllSF(PMINI_ADAPTER Adapter) 305 + VOID PruneQueueAllSF(struct bcm_mini_adapter *Adapter) 306 306 { 307 307 UINT iIndex = 0; 308 308 ··· 323 323 drops packets from the Head till the number of bytes is 324 324 less than or equal to max queue size for the queue. 325 325 */ 326 - static VOID PruneQueue(PMINI_ADAPTER Adapter, INT iIndex) 326 + static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex) 327 327 { 328 328 struct sk_buff* PacketToDrop=NULL; 329 329 struct net_device_stats *netstats; ··· 392 392 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "<====="); 393 393 } 394 394 395 - VOID flush_all_queues(PMINI_ADAPTER Adapter) 395 + VOID flush_all_queues(struct bcm_mini_adapter *Adapter) 396 396 { 397 397 INT iQIndex; 398 398 UINT uiTotalPacketLength; ··· 442 442 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "<====="); 443 443 } 444 444 445 - USHORT ClassifyPacket(PMINI_ADAPTER Adapter,struct sk_buff* skb) 445 + USHORT ClassifyPacket(struct bcm_mini_adapter *Adapter,struct sk_buff* skb) 446 446 { 447 447 INT uiLoopIndex=0; 448 448 struct bcm_classifier_rule *pstClassifierRule = NULL; ··· 652 652 static BOOLEAN EthCSMatchSrcMACAddress(struct bcm_classifier_rule *pstClassifierRule,PUCHAR Mac) 653 653 { 654 654 UINT i=0; 655 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 655 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 656 656 if(pstClassifierRule->ucEthCSSrcMACLen==0) 657 657 return TRUE; 658 658 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s \n",__FUNCTION__); ··· 669 669 static BOOLEAN EthCSMatchDestMACAddress(struct bcm_classifier_rule *pstClassifierRule,PUCHAR Mac) 670 670 { 671 671 UINT i=0; 672 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 672 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 673 673 if(pstClassifierRule->ucEthCSDestMACLen==0) 674 674 return TRUE; 675 675 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s \n",__FUNCTION__); ··· 685 685 686 686 static BOOLEAN EthCSMatchEThTypeSAP(struct bcm_classifier_rule *pstClassifierRule,struct sk_buff* skb,PS_ETHCS_PKT_INFO pstEthCsPktInfo) 687 687 { 688 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 688 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 689 689 if((pstClassifierRule->ucEtherTypeLen==0)|| 690 690 (pstClassifierRule->au8EthCSEtherType[0] == 0)) 691 691 return TRUE; ··· 723 723 BOOLEAN bClassificationSucceed = FALSE; 724 724 USHORT usVLANID; 725 725 B_UINT8 uPriority = 0; 726 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 726 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 727 727 728 728 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s CLS UserPrio:%x CLS VLANID:%x\n",__FUNCTION__,ntohs(*((USHORT *)pstClassifierRule->usUserPriority)),pstClassifierRule->usVLANID); 729 729 ··· 768 768 } 769 769 770 770 771 - static BOOLEAN EThCSClassifyPkt(PMINI_ADAPTER Adapter,struct sk_buff* skb, 771 + static BOOLEAN EThCSClassifyPkt(struct bcm_mini_adapter *Adapter,struct sk_buff* skb, 772 772 PS_ETHCS_PKT_INFO pstEthCsPktInfo, 773 773 struct bcm_classifier_rule *pstClassifierRule, 774 774 B_UINT8 EthCSCupport) ··· 801 801 return bClassificationSucceed; 802 802 } 803 803 804 - static void EThCSGetPktInfo(PMINI_ADAPTER Adapter,PVOID pvEthPayload, 804 + static void EThCSGetPktInfo(struct bcm_mini_adapter *Adapter,PVOID pvEthPayload, 805 805 PS_ETHCS_PKT_INFO pstEthCsPktInfo) 806 806 { 807 807 USHORT u16Etype = ntohs(((struct bcm_eth_header *)pvEthPayload)->u16Etype);
+4 -4
drivers/staging/bcm/Transmit.c
··· 41 41 This function dispatches control packet to the h/w interface 42 42 @return zero(success) or -ve value(failure) 43 43 */ 44 - INT SendControlPacket(PMINI_ADAPTER Adapter, char *pControlPacket) 44 + INT SendControlPacket(struct bcm_mini_adapter *Adapter, char *pControlPacket) 45 45 { 46 46 struct bcm_leader *PLeader = (struct bcm_leader *)pControlPacket; 47 47 ··· 84 84 to the target via the host h/w interface. 85 85 @return zero(success) or -ve value(failure) 86 86 */ 87 - INT SetupNextSend(PMINI_ADAPTER Adapter, struct sk_buff *Packet, USHORT Vcid) 87 + INT SetupNextSend(struct bcm_mini_adapter *Adapter, struct sk_buff *Packet, USHORT Vcid) 88 88 { 89 89 int status=0; 90 90 BOOLEAN bHeaderSupressionEnabled = FALSE; ··· 180 180 return status; 181 181 } 182 182 183 - static int tx_pending(PMINI_ADAPTER Adapter) 183 + static int tx_pending(struct bcm_mini_adapter *Adapter) 184 184 { 185 185 return (atomic_read(&Adapter->TxPktAvail) 186 186 && MINIMUM_PENDING_DESCRIPTORS < atomic_read(&Adapter->CurrNumFreeTxDesc)) ··· 191 191 @ingroup tx_functions 192 192 Transmit thread 193 193 */ 194 - int tx_pkt_handler(PMINI_ADAPTER Adapter /**< pointer to adapter object*/ 194 + int tx_pkt_handler(struct bcm_mini_adapter *Adapter /**< pointer to adapter object*/ 195 195 ) 196 196 { 197 197 int status = 0;
+2 -2
drivers/staging/bcm/hostmibs.c
··· 9 9 10 10 #include "headers.h" 11 11 12 - INT ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMibs) 12 + INT ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMibs) 13 13 { 14 14 S_SERVICEFLOW_ENTRY *pstServiceFlowEntry = NULL; 15 15 S_PHS_RULE *pstPhsRule = NULL; ··· 101 101 sizeof(S_MIBS_DROPPED_APP_CNTRL_MESSAGES)); 102 102 } 103 103 104 - VOID CopyMIBSExtendedSFParameters(PMINI_ADAPTER Adapter, CServiceFlowParamSI *psfLocalSet, UINT uiSearchRuleIndex) 104 + VOID CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, CServiceFlowParamSI *psfLocalSet, UINT uiSearchRuleIndex) 105 105 { 106 106 S_MIBS_EXTSERVICEFLOW_PARAMETERS *t = &Adapter->PackInfo[uiSearchRuleIndex].stMibsExtServiceFlowTable; 107 107
+11 -11
drivers/staging/bcm/led_control.c
··· 13 13 return u16CheckSum; 14 14 } 15 15 16 - BOOLEAN IsReqGpioIsLedInNVM(PMINI_ADAPTER Adapter, UINT gpios) 16 + BOOLEAN IsReqGpioIsLedInNVM(struct bcm_mini_adapter *Adapter, UINT gpios) 17 17 { 18 18 INT Status; 19 19 Status = (Adapter->gpioBitMap & gpios) ^ gpios; ··· 23 23 return TRUE; 24 24 } 25 25 26 - static INT LED_Blink(PMINI_ADAPTER Adapter, UINT GPIO_Num, UCHAR uiLedIndex, 26 + static INT LED_Blink(struct bcm_mini_adapter *Adapter, UINT GPIO_Num, UCHAR uiLedIndex, 27 27 ULONG timeout, INT num_of_time, LedEventInfo_t currdriverstate) 28 28 { 29 29 int Status = STATUS_SUCCESS; ··· 95 95 96 96 97 97 98 - static INT LED_Proportional_Blink(PMINI_ADAPTER Adapter, UCHAR GPIO_Num_tx, 98 + static INT LED_Proportional_Blink(struct bcm_mini_adapter *Adapter, UCHAR GPIO_Num_tx, 99 99 UCHAR uiTxLedIndex, UCHAR GPIO_Num_rx, UCHAR uiRxLedIndex, 100 100 LedEventInfo_t currdriverstate) 101 101 { ··· 261 261 * <OSAL_STATUS_CODE> 262 262 * ----------------------------------------------------------------------------- 263 263 */ 264 - static INT ValidateDSDParamsChecksum(PMINI_ADAPTER Adapter, ULONG ulParamOffset, 264 + static INT ValidateDSDParamsChecksum(struct bcm_mini_adapter *Adapter, ULONG ulParamOffset, 265 265 USHORT usParamLen) 266 266 { 267 267 INT Status = STATUS_SUCCESS; ··· 347 347 * <OSAL_STATUS_CODE> 348 348 * ----------------------------------------------------------------------------- 349 349 */ 350 - static INT ValidateHWParmStructure(PMINI_ADAPTER Adapter, ULONG ulHwParamOffset) 350 + static INT ValidateHWParmStructure(struct bcm_mini_adapter *Adapter, ULONG ulHwParamOffset) 351 351 { 352 352 353 353 INT Status = STATUS_SUCCESS; ··· 371 371 return Status; 372 372 } /* ValidateHWParmStructure() */ 373 373 374 - static int ReadLEDInformationFromEEPROM(PMINI_ADAPTER Adapter, 374 + static int ReadLEDInformationFromEEPROM(struct bcm_mini_adapter *Adapter, 375 375 UCHAR GPIO_Array[]) 376 376 { 377 377 int Status = STATUS_SUCCESS; ··· 477 477 } 478 478 479 479 480 - static int ReadConfigFileStructure(PMINI_ADAPTER Adapter, 480 + static int ReadConfigFileStructure(struct bcm_mini_adapter *Adapter, 481 481 BOOLEAN *bEnableThread) 482 482 { 483 483 int Status = STATUS_SUCCESS; ··· 580 580 * 581 581 * ----------------------------------------------------------------------------- 582 582 */ 583 - static VOID LedGpioInit(PMINI_ADAPTER Adapter) 583 + static VOID LedGpioInit(struct bcm_mini_adapter *Adapter) 584 584 { 585 585 UINT uiResetValue = 0; 586 586 UINT uiIndex = 0; ··· 605 605 Adapter->LEDInfo.bIdle_led_off = FALSE; 606 606 } 607 607 608 - static INT BcmGetGPIOPinInfo(PMINI_ADAPTER Adapter, UCHAR *GPIO_num_tx, 608 + static INT BcmGetGPIOPinInfo(struct bcm_mini_adapter *Adapter, UCHAR *GPIO_num_tx, 609 609 UCHAR *GPIO_num_rx, UCHAR *uiLedTxIndex, UCHAR *uiLedRxIndex, 610 610 LedEventInfo_t currdriverstate) 611 611 { ··· 645 645 } 646 646 return STATUS_SUCCESS; 647 647 } 648 - static VOID LEDControlThread(PMINI_ADAPTER Adapter) 648 + static VOID LEDControlThread(struct bcm_mini_adapter *Adapter) 649 649 { 650 650 UINT uiIndex = 0; 651 651 UCHAR GPIO_num = 0; ··· 857 857 Adapter->LEDInfo.led_thread_running = BCM_LED_THREAD_DISABLED; 858 858 } 859 859 860 - int InitLedSettings(PMINI_ADAPTER Adapter) 860 + int InitLedSettings(struct bcm_mini_adapter *Adapter) 861 861 { 862 862 int Status = STATUS_SUCCESS; 863 863 BOOLEAN bEnableThread = TRUE;
+97 -97
drivers/staging/bcm/nvm.c
··· 2 2 3 3 #define DWORD unsigned int 4 4 5 - static INT BcmDoChipSelect(PMINI_ADAPTER Adapter, UINT offset); 6 - static INT BcmGetActiveDSD(PMINI_ADAPTER Adapter); 7 - static INT BcmGetActiveISO(PMINI_ADAPTER Adapter); 8 - static UINT BcmGetEEPROMSize(PMINI_ADAPTER Adapter); 9 - static INT BcmGetFlashCSInfo(PMINI_ADAPTER Adapter); 10 - static UINT BcmGetFlashSectorSize(PMINI_ADAPTER Adapter, UINT FlashSectorSizeSig, UINT FlashSectorSize); 5 + static INT BcmDoChipSelect(struct bcm_mini_adapter *Adapter, UINT offset); 6 + static INT BcmGetActiveDSD(struct bcm_mini_adapter *Adapter); 7 + static INT BcmGetActiveISO(struct bcm_mini_adapter *Adapter); 8 + static UINT BcmGetEEPROMSize(struct bcm_mini_adapter *Adapter); 9 + static INT BcmGetFlashCSInfo(struct bcm_mini_adapter *Adapter); 10 + static UINT BcmGetFlashSectorSize(struct bcm_mini_adapter *Adapter, UINT FlashSectorSizeSig, UINT FlashSectorSize); 11 11 12 - static VOID BcmValidateNvmType(PMINI_ADAPTER Adapter); 13 - static INT BcmGetNvmSize(PMINI_ADAPTER Adapter); 14 - static UINT BcmGetFlashSize(PMINI_ADAPTER Adapter); 15 - static NVM_TYPE BcmGetNvmType(PMINI_ADAPTER Adapter); 12 + static VOID BcmValidateNvmType(struct bcm_mini_adapter *Adapter); 13 + static INT BcmGetNvmSize(struct bcm_mini_adapter *Adapter); 14 + static UINT BcmGetFlashSize(struct bcm_mini_adapter *Adapter); 15 + static NVM_TYPE BcmGetNvmType(struct bcm_mini_adapter *Adapter); 16 16 17 - static INT BcmGetSectionValEndOffset(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 17 + static INT BcmGetSectionValEndOffset(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 18 18 19 - static B_UINT8 IsOffsetWritable(PMINI_ADAPTER Adapter, UINT uiOffset); 20 - static INT IsSectionWritable(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL Section); 21 - static INT IsSectionExistInVendorInfo(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL section); 19 + static B_UINT8 IsOffsetWritable(struct bcm_mini_adapter *Adapter, UINT uiOffset); 20 + static INT IsSectionWritable(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL Section); 21 + static INT IsSectionExistInVendorInfo(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL section); 22 22 23 - static INT ReadDSDPriority(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL dsd); 24 - static INT ReadDSDSignature(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL dsd); 25 - static INT ReadISOPriority(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL iso); 26 - static INT ReadISOSignature(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL iso); 23 + static INT ReadDSDPriority(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL dsd); 24 + static INT ReadDSDSignature(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL dsd); 25 + static INT ReadISOPriority(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL iso); 26 + static INT ReadISOSignature(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL iso); 27 27 28 - static INT CorruptDSDSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 29 - static INT CorruptISOSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 30 - static INT SaveHeaderIfPresent(PMINI_ADAPTER Adapter, PUCHAR pBuff, UINT uiSectAlignAddr); 31 - static INT WriteToFlashWithoutSectorErase(PMINI_ADAPTER Adapter, PUINT pBuff, 28 + static INT CorruptDSDSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 29 + static INT CorruptISOSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal); 30 + static INT SaveHeaderIfPresent(struct bcm_mini_adapter *Adapter, PUCHAR pBuff, UINT uiSectAlignAddr); 31 + static INT WriteToFlashWithoutSectorErase(struct bcm_mini_adapter *Adapter, PUINT pBuff, 32 32 FLASH2X_SECTION_VAL eFlash2xSectionVal, 33 33 UINT uiOffset, UINT uiNumBytes); 34 - static FLASH2X_SECTION_VAL getHighestPriDSD(PMINI_ADAPTER Adapter); 35 - static FLASH2X_SECTION_VAL getHighestPriISO(PMINI_ADAPTER Adapter); 34 + static FLASH2X_SECTION_VAL getHighestPriDSD(struct bcm_mini_adapter *Adapter); 35 + static FLASH2X_SECTION_VAL getHighestPriISO(struct bcm_mini_adapter *Adapter); 36 36 37 37 static INT BeceemFlashBulkRead( 38 - PMINI_ADAPTER Adapter, 38 + struct bcm_mini_adapter *Adapter, 39 39 PUINT pBuffer, 40 40 UINT uiOffset, 41 41 UINT uiNumBytes); 42 42 43 43 static INT BeceemFlashBulkWrite( 44 - PMINI_ADAPTER Adapter, 44 + struct bcm_mini_adapter *Adapter, 45 45 PUINT pBuffer, 46 46 UINT uiOffset, 47 47 UINT uiNumBytes, 48 48 BOOLEAN bVerify); 49 49 50 - static INT GetFlashBaseAddr(PMINI_ADAPTER Adapter); 50 + static INT GetFlashBaseAddr(struct bcm_mini_adapter *Adapter); 51 51 52 - static INT ReadBeceemEEPROMBulk(PMINI_ADAPTER Adapter,UINT dwAddress, UINT *pdwData, UINT dwNumData); 52 + static INT ReadBeceemEEPROMBulk(struct bcm_mini_adapter *Adapter,UINT dwAddress, UINT *pdwData, UINT dwNumData); 53 53 54 54 // Procedure: ReadEEPROMStatusRegister 55 55 // ··· 62 62 // 63 63 //----------------------------------------------------------------------------- 64 64 65 - static UCHAR ReadEEPROMStatusRegister( PMINI_ADAPTER Adapter ) 65 + static UCHAR ReadEEPROMStatusRegister(struct bcm_mini_adapter *Adapter ) 66 66 { 67 67 UCHAR uiData = 0; 68 68 DWORD dwRetries = MAX_EEPROM_RETRIES*RETRIES_PER_DELAY; ··· 128 128 // OSAL_STATUS_CODE: 129 129 //----------------------------------------------------------------------------- 130 130 131 - INT ReadBeceemEEPROMBulk( PMINI_ADAPTER Adapter, 131 + INT ReadBeceemEEPROMBulk(struct bcm_mini_adapter *Adapter, 132 132 DWORD dwAddress, 133 133 DWORD *pdwData, 134 134 DWORD dwNumWords ··· 255 255 // OSAL_STATUS_CODE: 256 256 //----------------------------------------------------------------------------- 257 257 258 - INT ReadBeceemEEPROM( PMINI_ADAPTER Adapter, 258 + INT ReadBeceemEEPROM(struct bcm_mini_adapter *Adapter, 259 259 DWORD uiOffset, 260 260 DWORD *pBuffer 261 261 ) ··· 285 285 286 286 287 287 288 - INT ReadMacAddressFromNVM(PMINI_ADAPTER Adapter) 288 + INT ReadMacAddressFromNVM(struct bcm_mini_adapter *Adapter) 289 289 { 290 290 INT Status; 291 291 unsigned char puMacAddr[6]; ··· 318 318 //----------------------------------------------------------------------------- 319 319 320 320 INT BeceemEEPROMBulkRead( 321 - PMINI_ADAPTER Adapter, 321 + struct bcm_mini_adapter *Adapter, 322 322 PUINT pBuffer, 323 323 UINT uiOffset, 324 324 UINT uiNumBytes) ··· 436 436 //----------------------------------------------------------------------------- 437 437 438 438 static INT BeceemFlashBulkRead( 439 - PMINI_ADAPTER Adapter, 439 + struct bcm_mini_adapter *Adapter, 440 440 PUINT pBuffer, 441 441 UINT uiOffset, 442 442 UINT uiNumBytes) ··· 518 518 // 519 519 //----------------------------------------------------------------------------- 520 520 521 - static UINT BcmGetFlashSize(PMINI_ADAPTER Adapter) 521 + static UINT BcmGetFlashSize(struct bcm_mini_adapter *Adapter) 522 522 { 523 523 if(IsFlash2x(Adapter)) 524 524 return (Adapter->psFlash2xCSInfo->OffsetFromDSDStartForDSDHeader + sizeof(DSD_HEADER)); ··· 541 541 // 542 542 //----------------------------------------------------------------------------- 543 543 544 - static UINT BcmGetEEPROMSize(PMINI_ADAPTER Adapter) 544 + static UINT BcmGetEEPROMSize(struct bcm_mini_adapter *Adapter) 545 545 { 546 546 UINT uiData = 0; 547 547 UINT uiIndex = 0; ··· 607 607 //----------------------------------------------------------------------------- 608 608 609 609 610 - static INT FlashSectorErase(PMINI_ADAPTER Adapter, 610 + static INT FlashSectorErase(struct bcm_mini_adapter *Adapter, 611 611 UINT addr, 612 612 UINT numOfSectors) 613 613 { ··· 672 672 //----------------------------------------------------------------------------- 673 673 674 674 static INT flashByteWrite( 675 - PMINI_ADAPTER Adapter, 675 + struct bcm_mini_adapter *Adapter, 676 676 UINT uiOffset, 677 677 PVOID pData) 678 678 { ··· 762 762 //----------------------------------------------------------------------------- 763 763 764 764 static INT flashWrite( 765 - PMINI_ADAPTER Adapter, 765 + struct bcm_mini_adapter *Adapter, 766 766 UINT uiOffset, 767 767 PVOID pData) 768 768 ··· 848 848 // 849 849 //----------------------------------------------------------------------------- 850 850 static INT flashByteWriteStatus( 851 - PMINI_ADAPTER Adapter, 851 + struct bcm_mini_adapter *Adapter, 852 852 UINT uiOffset, 853 853 PVOID pData) 854 854 { ··· 935 935 //----------------------------------------------------------------------------- 936 936 937 937 static INT flashWriteStatus( 938 - PMINI_ADAPTER Adapter, 938 + struct bcm_mini_adapter *Adapter, 939 939 UINT uiOffset, 940 940 PVOID pData) 941 941 { ··· 1014 1014 // 1015 1015 //----------------------------------------------------------------------------- 1016 1016 1017 - static VOID BcmRestoreBlockProtectStatus(PMINI_ADAPTER Adapter,ULONG ulWriteStatus) 1017 + static VOID BcmRestoreBlockProtectStatus(struct bcm_mini_adapter *Adapter,ULONG ulWriteStatus) 1018 1018 { 1019 1019 UINT value; 1020 1020 value = (FLASH_CMD_WRITE_ENABLE<< 24); ··· 1037 1037 // ULONG - Status value before UnProtect. 1038 1038 // 1039 1039 //----------------------------------------------------------------------------- 1040 - static ULONG BcmFlashUnProtectBlock(PMINI_ADAPTER Adapter,UINT uiOffset, UINT uiLength) 1040 + static ULONG BcmFlashUnProtectBlock(struct bcm_mini_adapter *Adapter,UINT uiOffset, UINT uiLength) 1041 1041 { 1042 1042 ULONG ulStatus = 0; 1043 1043 ULONG ulWriteStatus = 0; ··· 1146 1146 //----------------------------------------------------------------------------- 1147 1147 1148 1148 static INT BeceemFlashBulkWrite( 1149 - PMINI_ADAPTER Adapter, 1149 + struct bcm_mini_adapter *Adapter, 1150 1150 PUINT pBuffer, 1151 1151 UINT uiOffset, 1152 1152 UINT uiNumBytes, ··· 1365 1365 //----------------------------------------------------------------------------- 1366 1366 1367 1367 static INT BeceemFlashBulkWriteStatus( 1368 - PMINI_ADAPTER Adapter, 1368 + struct bcm_mini_adapter *Adapter, 1369 1369 PUINT pBuffer, 1370 1370 UINT uiOffset, 1371 1371 UINT uiNumBytes, ··· 1545 1545 //----------------------------------------------------------------------------- 1546 1546 1547 1547 1548 - INT PropagateCalParamsFromEEPROMToMemory(PMINI_ADAPTER Adapter) 1548 + INT PropagateCalParamsFromEEPROMToMemory(struct bcm_mini_adapter *Adapter) 1549 1549 { 1550 1550 PCHAR pBuff = kmalloc(BUFFER_4K, GFP_KERNEL); 1551 1551 UINT uiEepromSize = 0; ··· 1614 1614 // 1615 1615 //----------------------------------------------------------------------------- 1616 1616 1617 - INT PropagateCalParamsFromFlashToMemory(PMINI_ADAPTER Adapter) 1617 + INT PropagateCalParamsFromFlashToMemory(struct bcm_mini_adapter *Adapter) 1618 1618 { 1619 1619 PCHAR pBuff, pPtr; 1620 1620 UINT uiEepromSize = 0; ··· 1699 1699 //----------------------------------------------------------------------------- 1700 1700 1701 1701 static INT BeceemEEPROMReadBackandVerify( 1702 - PMINI_ADAPTER Adapter, 1702 + struct bcm_mini_adapter *Adapter, 1703 1703 PUINT pBuffer, 1704 1704 UINT uiOffset, 1705 1705 UINT uiNumBytes) ··· 1798 1798 // OSAL_STATUS_CODE 1799 1799 // 1800 1800 //----------------------------------------------------------------------------- 1801 - static INT BeceemEEPROMWritePage( PMINI_ADAPTER Adapter, UINT uiData[], UINT uiOffset ) 1801 + static INT BeceemEEPROMWritePage(struct bcm_mini_adapter *Adapter, UINT uiData[], UINT uiOffset ) 1802 1802 { 1803 1803 UINT uiRetries = MAX_EEPROM_RETRIES*RETRIES_PER_DELAY; 1804 1804 UINT uiStatus = 0; ··· 1934 1934 //----------------------------------------------------------------------------- 1935 1935 1936 1936 INT BeceemEEPROMBulkWrite( 1937 - PMINI_ADAPTER Adapter, 1937 + struct bcm_mini_adapter *Adapter, 1938 1938 PUCHAR pBuffer, 1939 1939 UINT uiOffset, 1940 1940 UINT uiNumBytes, ··· 2036 2036 //----------------------------------------------------------------------------- 2037 2037 2038 2038 INT BeceemNVMRead( 2039 - PMINI_ADAPTER Adapter, 2039 + struct bcm_mini_adapter *Adapter, 2040 2040 PUINT pBuffer, 2041 2041 UINT uiOffset, 2042 2042 UINT uiNumBytes) ··· 2099 2099 //----------------------------------------------------------------------------- 2100 2100 2101 2101 INT BeceemNVMWrite( 2102 - PMINI_ADAPTER Adapter, 2102 + struct bcm_mini_adapter *Adapter, 2103 2103 PUINT pBuffer, 2104 2104 UINT uiOffset, 2105 2105 UINT uiNumBytes, ··· 2233 2233 // <FAILURE> - if failed. 2234 2234 //----------------------------------------------------------------------------- 2235 2235 2236 - INT BcmUpdateSectorSize(PMINI_ADAPTER Adapter,UINT uiSectorSize) 2236 + INT BcmUpdateSectorSize(struct bcm_mini_adapter *Adapter,UINT uiSectorSize) 2237 2237 { 2238 2238 INT Status = -1; 2239 2239 FLASH_CS_INFO sFlashCsInfo = {0}; ··· 2308 2308 // 2309 2309 //----------------------------------------------------------------------------- 2310 2310 2311 - static UINT BcmGetFlashSectorSize(PMINI_ADAPTER Adapter, UINT FlashSectorSizeSig, UINT FlashSectorSize) 2311 + static UINT BcmGetFlashSectorSize(struct bcm_mini_adapter *Adapter, UINT FlashSectorSizeSig, UINT FlashSectorSize) 2312 2312 { 2313 2313 UINT uiSectorSize = 0; 2314 2314 UINT uiSectorSig = 0; ··· 2377 2377 // <OSAL_STATUS_CODE> 2378 2378 //----------------------------------------------------------------------------- 2379 2379 2380 - static INT BcmInitEEPROMQueues(PMINI_ADAPTER Adapter) 2380 + static INT BcmInitEEPROMQueues(struct bcm_mini_adapter *Adapter) 2381 2381 { 2382 2382 UINT value = 0; 2383 2383 /* CHIP Bug : Clear the Avail bits on the Read queue. The default ··· 2413 2413 // <OSAL_STATUS_CODE> 2414 2414 //----------------------------------------------------------------------------- 2415 2415 2416 - INT BcmInitNVM(PMINI_ADAPTER ps_adapter) 2416 + INT BcmInitNVM(struct bcm_mini_adapter *ps_adapter) 2417 2417 { 2418 2418 BcmValidateNvmType(ps_adapter); 2419 2419 BcmInitEEPROMQueues(ps_adapter); ··· 2445 2445 */ 2446 2446 /***************************************************************************/ 2447 2447 2448 - static INT BcmGetNvmSize(PMINI_ADAPTER Adapter) 2448 + static INT BcmGetNvmSize(struct bcm_mini_adapter *Adapter) 2449 2449 { 2450 2450 if(Adapter->eNVMType == NVM_EEPROM) 2451 2451 { ··· 2469 2469 // Returns: 2470 2470 // <VOID> 2471 2471 //----------------------------------------------------------------------------- 2472 - static VOID BcmValidateNvmType(PMINI_ADAPTER Adapter) 2472 + static VOID BcmValidateNvmType(struct bcm_mini_adapter *Adapter) 2473 2473 { 2474 2474 2475 2475 // ··· 2495 2495 // Returns: 2496 2496 // Flash ID 2497 2497 //----------------------------------------------------------------------------- 2498 - static ULONG BcmReadFlashRDID(PMINI_ADAPTER Adapter) 2498 + static ULONG BcmReadFlashRDID(struct bcm_mini_adapter *Adapter) 2499 2499 { 2500 2500 ULONG ulRDID = 0; 2501 2501 UINT value; ··· 2518 2518 2519 2519 } 2520 2520 2521 - INT BcmAllocFlashCSStructure(PMINI_ADAPTER psAdapter) 2521 + INT BcmAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter) 2522 2522 { 2523 2523 if(psAdapter == NULL) 2524 2524 { ··· 2552 2552 return STATUS_SUCCESS; 2553 2553 } 2554 2554 2555 - INT BcmDeAllocFlashCSStructure(PMINI_ADAPTER psAdapter) 2555 + INT BcmDeAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter) 2556 2556 { 2557 2557 if(psAdapter == NULL) 2558 2558 { ··· 2565 2565 return STATUS_SUCCESS ; 2566 2566 } 2567 2567 2568 - static INT BcmDumpFlash2XCSStructure(PFLASH2X_CS_INFO psFlash2xCSInfo,PMINI_ADAPTER Adapter) 2568 + static INT BcmDumpFlash2XCSStructure(PFLASH2X_CS_INFO psFlash2xCSInfo,struct bcm_mini_adapter *Adapter) 2569 2569 { 2570 2570 UINT Index = 0; 2571 2571 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "**********************FLASH2X CS Structure *******************"); ··· 2715 2715 return STATUS_SUCCESS; 2716 2716 } 2717 2717 2718 - static INT IsSectionExistInVendorInfo(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL section) 2718 + static INT IsSectionExistInVendorInfo(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL section) 2719 2719 { 2720 2720 return ( Adapter->uiVendorExtnFlag && 2721 2721 (Adapter->psFlash2xVendorInfo->VendorSection[section].AccessFlags & FLASH2X_SECTION_PRESENT) && 2722 2722 (Adapter->psFlash2xVendorInfo->VendorSection[section].OffsetFromZeroForSectionStart != UNINIT_PTR_IN_CS) ); 2723 2723 } 2724 2724 2725 - static VOID UpdateVendorInfo(PMINI_ADAPTER Adapter) 2725 + static VOID UpdateVendorInfo(struct bcm_mini_adapter *Adapter) 2726 2726 { 2727 2727 B_UINT32 i = 0; 2728 2728 UINT uiSizeSection = 0; ··· 2813 2813 // <VOID> 2814 2814 //----------------------------------------------------------------------------- 2815 2815 2816 - static INT BcmGetFlashCSInfo(PMINI_ADAPTER Adapter) 2816 + static INT BcmGetFlashCSInfo(struct bcm_mini_adapter *Adapter) 2817 2817 { 2818 2818 //FLASH_CS_INFO sFlashCsInfo = {0}; 2819 2819 ··· 2960 2960 // 2961 2961 //----------------------------------------------------------------------------- 2962 2962 2963 - static NVM_TYPE BcmGetNvmType(PMINI_ADAPTER Adapter) 2963 + static NVM_TYPE BcmGetNvmType(struct bcm_mini_adapter *Adapter) 2964 2964 { 2965 2965 UINT uiData = 0; 2966 2966 ··· 3004 3004 * On Failure -returns STATUS_FAILURE 3005 3005 **/ 3006 3006 3007 - INT BcmGetSectionValStartOffset(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlashSectionVal) 3007 + INT BcmGetSectionValStartOffset(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlashSectionVal) 3008 3008 { 3009 3009 /* 3010 3010 * Considering all the section for which end offset can be calculated or directly given ··· 3098 3098 * On Failure -returns STATUS_FAILURE 3099 3099 **/ 3100 3100 3101 - INT BcmGetSectionValEndOffset(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 3101 + INT BcmGetSectionValEndOffset(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 3102 3102 { 3103 3103 INT SectEndOffset = 0 ; 3104 3104 SectEndOffset = INVALID_OFFSET; ··· 3188 3188 */ 3189 3189 3190 3190 INT BcmFlash2xBulkRead( 3191 - PMINI_ADAPTER Adapter, 3191 + struct bcm_mini_adapter *Adapter, 3192 3192 PUINT pBuffer, 3193 3193 FLASH2X_SECTION_VAL eFlash2xSectionVal, 3194 3194 UINT uiOffsetWithinSectionVal, ··· 3257 3257 */ 3258 3258 3259 3259 INT BcmFlash2xBulkWrite( 3260 - PMINI_ADAPTER Adapter, 3260 + struct bcm_mini_adapter *Adapter, 3261 3261 PUINT pBuffer, 3262 3262 FLASH2X_SECTION_VAL eFlash2xSectVal, 3263 3263 UINT uiOffset, ··· 3322 3322 * Return STATUS_SUCESS if get success in setting the right DSD else negaive error code 3323 3323 * 3324 3324 **/ 3325 - static INT BcmGetActiveDSD(PMINI_ADAPTER Adapter) 3325 + static INT BcmGetActiveDSD(struct bcm_mini_adapter *Adapter) 3326 3326 { 3327 3327 FLASH2X_SECTION_VAL uiHighestPriDSD = 0 ; 3328 3328 ··· 3371 3371 * 3372 3372 **/ 3373 3373 3374 - static INT BcmGetActiveISO(PMINI_ADAPTER Adapter) 3374 + static INT BcmGetActiveISO(struct bcm_mini_adapter *Adapter) 3375 3375 { 3376 3376 3377 3377 INT HighestPriISO = 0 ; ··· 3399 3399 * Failure:-FALSE, offset is RO 3400 3400 * 3401 3401 **/ 3402 - B_UINT8 IsOffsetWritable(PMINI_ADAPTER Adapter, UINT uiOffset) 3402 + B_UINT8 IsOffsetWritable(struct bcm_mini_adapter *Adapter, UINT uiOffset) 3403 3403 { 3404 3404 UINT uiSectorNum = 0; 3405 3405 UINT uiWordOfSectorPermission =0; ··· 3424 3424 3425 3425 static INT BcmDumpFlash2xSectionBitMap(PFLASH2X_BITMAP psFlash2xBitMap) 3426 3426 { 3427 - PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev); 3427 + struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 3428 3428 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "***************Flash 2.x Section Bitmap***************"); 3429 3429 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL,"ISO_IMAGE1 :0X%x", psFlash2xBitMap->ISO_IMAGE1); 3430 3430 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL,"ISO_IMAGE2 :0X%x", psFlash2xBitMap->ISO_IMAGE2); ··· 3456 3456 * Failure:- negative error code 3457 3457 **/ 3458 3458 3459 - INT BcmGetFlash2xSectionalBitMap(PMINI_ADAPTER Adapter, PFLASH2X_BITMAP psFlash2xBitMap) 3459 + INT BcmGetFlash2xSectionalBitMap(struct bcm_mini_adapter *Adapter, PFLASH2X_BITMAP psFlash2xBitMap) 3460 3460 { 3461 3461 3462 3462 ··· 3752 3752 Return Value:- Make the priorit highest else return erorr code 3753 3753 3754 3754 **/ 3755 - INT BcmSetActiveSection(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectVal) 3755 + INT BcmSetActiveSection(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectVal) 3756 3756 { 3757 3757 unsigned int SectImagePriority = 0; 3758 3758 INT Status =STATUS_SUCCESS; ··· 3958 3958 Return value:- SUCCESS if copies successfully else negative error code 3959 3959 3960 3960 **/ 3961 - INT BcmCopyISO(PMINI_ADAPTER Adapter, FLASH2X_COPY_SECTION sCopySectStrut) 3961 + INT BcmCopyISO(struct bcm_mini_adapter *Adapter, FLASH2X_COPY_SECTION sCopySectStrut) 3962 3962 { 3963 3963 3964 3964 PCHAR Buff = NULL; ··· 4289 4289 4290 4290 4291 4291 **/ 4292 - INT BcmFlash2xCorruptSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 4292 + INT BcmFlash2xCorruptSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 4293 4293 { 4294 4294 4295 4295 INT Status = STATUS_SUCCESS ; ··· 4321 4321 Failure :-Return negative error code 4322 4322 4323 4323 **/ 4324 - INT BcmFlash2xWriteSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlashSectionVal) 4324 + INT BcmFlash2xWriteSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlashSectionVal) 4325 4325 { 4326 4326 4327 4327 UINT uiSignature = 0 ; ··· 4394 4394 4395 4395 4396 4396 **/ 4397 - INT validateFlash2xReadWrite(PMINI_ADAPTER Adapter, PFLASH2X_READWRITE psFlash2xReadWrite) 4397 + INT validateFlash2xReadWrite(struct bcm_mini_adapter *Adapter, PFLASH2X_READWRITE psFlash2xReadWrite) 4398 4398 { 4399 4399 UINT uiNumOfBytes = 0 ; 4400 4400 UINT uiSectStartOffset = 0 ; ··· 4459 4459 return TRUE if flah2.x of hgher version else return false. 4460 4460 **/ 4461 4461 4462 - INT IsFlash2x(PMINI_ADAPTER Adapter) 4462 + INT IsFlash2x(struct bcm_mini_adapter *Adapter) 4463 4463 { 4464 4464 if(Adapter->uiFlashLayoutMajorVersion >= FLASH_2X_MAJOR_NUMBER) 4465 4465 return TRUE ; ··· 4474 4474 Success :- Base Address of the Flash 4475 4475 **/ 4476 4476 4477 - static INT GetFlashBaseAddr(PMINI_ADAPTER Adapter) 4477 + static INT GetFlashBaseAddr(struct bcm_mini_adapter *Adapter) 4478 4478 { 4479 4479 4480 4480 UINT uiBaseAddr = 0; ··· 4525 4525 4526 4526 **/ 4527 4527 4528 - INT BcmCopySection(PMINI_ADAPTER Adapter, 4528 + INT BcmCopySection(struct bcm_mini_adapter *Adapter, 4529 4529 FLASH2X_SECTION_VAL SrcSection, 4530 4530 FLASH2X_SECTION_VAL DstSection, 4531 4531 UINT offset, ··· 4642 4642 4643 4643 **/ 4644 4644 4645 - INT SaveHeaderIfPresent(PMINI_ADAPTER Adapter, PUCHAR pBuff, UINT uiOffset) 4645 + INT SaveHeaderIfPresent(struct bcm_mini_adapter *Adapter, PUCHAR pBuff, UINT uiOffset) 4646 4646 { 4647 4647 UINT offsetToProtect = 0,HeaderSizeToProtect =0; 4648 4648 BOOLEAN bHasHeader = FALSE ; ··· 4715 4715 OutPut:- 4716 4716 Select the Appropriate chip and retrn status Success 4717 4717 **/ 4718 - static INT BcmDoChipSelect(PMINI_ADAPTER Adapter, UINT offset) 4718 + static INT BcmDoChipSelect(struct bcm_mini_adapter *Adapter, UINT offset) 4719 4719 { 4720 4720 UINT FlashConfig = 0; 4721 4721 INT ChipNum = 0; ··· 4791 4791 return STATUS_SUCCESS; 4792 4792 4793 4793 } 4794 - INT ReadDSDSignature(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL dsd) 4794 + INT ReadDSDSignature(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL dsd) 4795 4795 { 4796 4796 UINT uiDSDsig = 0; 4797 4797 //UINT sigoffsetInMap = 0; ··· 4816 4816 4817 4817 return uiDSDsig ; 4818 4818 } 4819 - INT ReadDSDPriority(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL dsd) 4819 + INT ReadDSDPriority(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL dsd) 4820 4820 { 4821 4821 //UINT priOffsetInMap = 0 ; 4822 4822 unsigned int uiDSDPri = STATUS_FAILURE; ··· 4839 4839 } 4840 4840 return uiDSDPri; 4841 4841 } 4842 - FLASH2X_SECTION_VAL getHighestPriDSD(PMINI_ADAPTER Adapter) 4842 + FLASH2X_SECTION_VAL getHighestPriDSD(struct bcm_mini_adapter *Adapter) 4843 4843 { 4844 4844 INT DSDHighestPri = STATUS_FAILURE; 4845 4845 INT DsdPri= 0 ; ··· 4873 4873 return HighestPriDSD ; 4874 4874 } 4875 4875 4876 - INT ReadISOSignature(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL iso) 4876 + INT ReadISOSignature(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL iso) 4877 4877 { 4878 4878 UINT uiISOsig = 0; 4879 4879 //UINT sigoffsetInMap = 0; ··· 4898 4898 4899 4899 return uiISOsig ; 4900 4900 } 4901 - INT ReadISOPriority(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL iso) 4901 + INT ReadISOPriority(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL iso) 4902 4902 { 4903 4903 4904 4904 unsigned int ISOPri = STATUS_FAILURE; ··· 4919 4919 } 4920 4920 return ISOPri; 4921 4921 } 4922 - FLASH2X_SECTION_VAL getHighestPriISO(PMINI_ADAPTER Adapter) 4922 + FLASH2X_SECTION_VAL getHighestPriISO(struct bcm_mini_adapter *Adapter) 4923 4923 { 4924 4924 INT ISOHighestPri = STATUS_FAILURE; 4925 4925 INT ISOPri= 0 ; ··· 4943 4943 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL,"Highest ISO :%x and its Pri :%x",HighestPriISO,ISOHighestPri); 4944 4944 return HighestPriISO ; 4945 4945 } 4946 - INT WriteToFlashWithoutSectorErase(PMINI_ADAPTER Adapter, 4946 + INT WriteToFlashWithoutSectorErase(struct bcm_mini_adapter *Adapter, 4947 4947 PUINT pBuff, 4948 4948 FLASH2X_SECTION_VAL eFlash2xSectionVal, 4949 4949 UINT uiOffset, ··· 5006 5006 return Status; 5007 5007 } 5008 5008 5009 - BOOLEAN IsSectionExistInFlash(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL section) 5009 + BOOLEAN IsSectionExistInFlash(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL section) 5010 5010 { 5011 5011 5012 5012 BOOLEAN SectionPresent = FALSE ; ··· 5062 5062 } 5063 5063 return SectionPresent ; 5064 5064 } 5065 - INT IsSectionWritable(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL Section) 5065 + INT IsSectionWritable(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL Section) 5066 5066 { 5067 5067 INT offset = STATUS_FAILURE; 5068 5068 INT Status = FALSE; ··· 5087 5087 return Status ; 5088 5088 } 5089 5089 5090 - static INT CorruptDSDSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 5090 + static INT CorruptDSDSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 5091 5091 { 5092 5092 5093 5093 PUCHAR pBuff = NULL; ··· 5160 5160 return STATUS_SUCCESS ; 5161 5161 } 5162 5162 5163 - static INT CorruptISOSig(PMINI_ADAPTER Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 5163 + static INT CorruptISOSig(struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal) 5164 5164 { 5165 5165 5166 5166 PUCHAR pBuff = NULL; ··· 5212 5212 return STATUS_SUCCESS ; 5213 5213 } 5214 5214 5215 - BOOLEAN IsNonCDLessDevice(PMINI_ADAPTER Adapter) 5215 + BOOLEAN IsNonCDLessDevice(struct bcm_mini_adapter *Adapter) 5216 5216 { 5217 5217 if(Adapter->psFlash2xCSInfo->IsCDLessDeviceBootSig == NON_CDLESS_DEVICE_BOOT_SIG) 5218 5218 return TRUE;
+2 -2
drivers/staging/bcm/sort.c
··· 22 22 return pa->u8TrafficPriority - pb->u8TrafficPriority; 23 23 } 24 24 25 - VOID SortPackInfo(PMINI_ADAPTER Adapter) 25 + VOID SortPackInfo(struct bcm_mini_adapter *Adapter) 26 26 { 27 27 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, 28 28 DBG_LVL_ALL, "<======="); ··· 42 42 return pa->u8ClassifierRulePriority - pb->u8ClassifierRulePriority; 43 43 } 44 44 45 - VOID SortClassifiers(PMINI_ADAPTER Adapter) 45 + VOID SortClassifiers(struct bcm_mini_adapter *Adapter) 46 46 { 47 47 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, 48 48 DBG_LVL_ALL, "<=======");
+3 -3
drivers/staging/bcm/vendorspecificextn.c
··· 28 28 // STATUS_SUCCESS/STATUS_FAILURE 29 29 // 30 30 //----------------------------------------------------------------------------- 31 - INT vendorextnInit(PMINI_ADAPTER Adapter) 31 + INT vendorextnInit(struct bcm_mini_adapter *Adapter) 32 32 { 33 33 return STATUS_SUCCESS; 34 34 } ··· 45 45 // STATUS_SUCCESS/STATUS_FAILURE 46 46 // 47 47 //----------------------------------------------------------------------------- 48 - INT vendorextnExit(PMINI_ADAPTER Adapter) 48 + INT vendorextnExit(struct bcm_mini_adapter *Adapter) 49 49 { 50 50 return STATUS_SUCCESS; 51 51 } ··· 65 65 // STATUS_SUCCESS/STATUS_FAILURE as per the IOCTL return value 66 66 // 67 67 //-------------------------------------------------------------------------- 68 - INT vendorextnIoctl(PMINI_ADAPTER Adapter, UINT cmd, ULONG arg) 68 + INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg) 69 69 { 70 70 return CONTINUE_COMMON_PATH; 71 71 }
+3 -3
drivers/staging/bcm/vendorspecificextn.h
··· 5 5 #define CONTINUE_COMMON_PATH 0xFFFF 6 6 7 7 INT vendorextnGetSectionInfo(PVOID pContext,PFLASH2X_VENDORSPECIFIC_INFO pVendorInfo); 8 - INT vendorextnExit(PMINI_ADAPTER Adapter); 9 - INT vendorextnInit(PMINI_ADAPTER Adapter); 10 - INT vendorextnIoctl(PMINI_ADAPTER Adapter, UINT cmd, ULONG arg); 8 + INT vendorextnExit(struct bcm_mini_adapter *Adapter); 9 + INT vendorextnInit(struct bcm_mini_adapter *Adapter); 10 + INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg); 11 11 INT vendorextnReadSection(PVOID pContext, PUCHAR pBuffer, FLASH2X_SECTION_VAL SectionVal, 12 12 UINT offset, UINT numOfBytes); 13 13 INT vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer, FLASH2X_SECTION_VAL SectionVal,