Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 1 | #ifndef _PROTOTYPES_H_ |
| 2 | #define _PROTOTYPES_H_ |
| 3 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 4 | VOID LinkControlResponseMessage(struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 5 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 6 | VOID StatisticsResponse(struct bcm_mini_adapter *Adapter, PVOID pvBuffer); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 7 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 8 | VOID IdleModeResponse(struct bcm_mini_adapter *Adapter, PUINT puiBuffer); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 9 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 10 | int control_packet_handler(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 11 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 12 | VOID DeleteAllClassifiersForSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 13 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 14 | VOID flush_all_queues(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 15 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 16 | int register_control_device_interface(struct bcm_mini_adapter *ps_adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 17 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 18 | void unregister_control_device_interface(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 19 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 20 | INT CopyBufferToControlPacket(struct bcm_mini_adapter *Adapter,/**<Logical Adapter*/ |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 21 | PVOID ioBuffer/**<Control Packet Buffer*/ |
| 22 | ); |
| 23 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 24 | VOID SortPackInfo(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 25 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 26 | VOID SortClassifiers(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 27 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 28 | VOID flush_all_queues(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 29 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 30 | VOID PruneQueueAllSF(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 31 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 32 | INT SearchSfid(struct bcm_mini_adapter *Adapter, UINT uiSfid); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 33 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 34 | USHORT ClassifyPacket(struct bcm_mini_adapter *Adapter, struct sk_buff *skb); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 35 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 36 | bool MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort); |
Stephen Hemminger | 9371105 | 2010-10-31 23:55:21 -0400 | [diff] [blame] | 37 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 38 | bool MatchDestPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 39 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 40 | bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule, UCHAR ucProtocol); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 41 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 42 | INT SetupNextSend(struct bcm_mini_adapter *Adapter, /**<Logical Adapter*/ |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 43 | struct sk_buff *Packet, /**<data buffer*/ |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 44 | USHORT Vcid); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 45 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 46 | VOID LinkMessage(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 47 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 48 | VOID transmit_packets(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 49 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 50 | INT SendControlPacket(struct bcm_mini_adapter *Adapter, /**<Logical Adapter*/ |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 51 | char *pControlPacket/**<Control Packet*/ |
| 52 | ); |
| 53 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 54 | int register_networkdev(struct bcm_mini_adapter *Adapter); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 55 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 56 | void unregister_networkdev(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 57 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 58 | INT AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 59 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 60 | VOID AdapterFree(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 61 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 62 | INT FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 63 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 64 | int tx_pkt_handler(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 65 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 66 | int reset_card_proc(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 67 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 68 | int run_card_proc(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 69 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 70 | int InitCardAndDownloadFirmware(struct bcm_mini_adapter *ps_adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 71 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 72 | INT ReadMacAddressFromNVM(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 73 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 74 | int register_control_device_interface(struct bcm_mini_adapter *ps_adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 75 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 76 | void DumpPackInfo(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 77 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 78 | int rdm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 79 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 80 | int wrm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 81 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 82 | int wrmalt(struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 83 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 84 | int rdmalt(struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 85 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 86 | int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user *user_buffer); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 87 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 88 | void SendIdleModeResponse(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 89 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 90 | int ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, struct bcm_host_stats_mibs *buf); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 91 | |
Kevin McKinney | 954f91d | 2012-11-25 19:28:56 -0500 | [diff] [blame] | 92 | void GetDroppedAppCntrlPktMibs(struct bcm_host_stats_mibs *ioBuffer, struct bcm_tarang_data *pTarang); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 93 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 94 | void beceem_parse_target_struct(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 95 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 96 | int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 97 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 98 | void CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter, |
Kevin McKinney | b766fb1 | 2012-09-23 23:07:14 -0400 | [diff] [blame] | 99 | struct bcm_connect_mgr_params *psfLocalSet, UINT uiSearchRuleIndex); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 100 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 101 | VOID ResetCounters(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 102 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 103 | int InitLedSettings(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 104 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 105 | struct bcm_classifier_rule *GetFragIPClsEntry(struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIP); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 106 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 107 | void AddFragIPClsEntry(struct bcm_mini_adapter *Adapter, struct bcm_fragmented_packet_info *psFragPktInfo); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 108 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 109 | void DelFragIPClsEntry(struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIp); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 110 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 111 | void update_per_cid_rx(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 112 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 113 | void update_per_sf_desc_cnts(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 114 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 115 | void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter, B_UINT16 TID, bool bFreeAll); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 116 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 117 | void flush_queue(struct bcm_mini_adapter *Adapter, UINT iQIndex); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 118 | |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 119 | INT flushAllAppQ(VOID); |
| 120 | |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 121 | INT BeceemEEPROMBulkRead( |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 122 | struct bcm_mini_adapter *Adapter, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 123 | PUINT pBuffer, |
| 124 | UINT uiOffset, |
| 125 | UINT uiNumBytes); |
| 126 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 127 | INT WriteBeceemEEPROM(struct bcm_mini_adapter *Adapter, UINT uiEEPROMOffset, UINT uiData); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 128 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 129 | INT PropagateCalParamsFromFlashToMemory(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 130 | |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 131 | INT BeceemEEPROMBulkWrite( |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 132 | struct bcm_mini_adapter *Adapter, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 133 | PUCHAR pBuffer, |
| 134 | UINT uiOffset, |
| 135 | UINT uiNumBytes, |
Lisa Nguyen | 3abd6f1 | 2013-10-28 01:35:59 -0700 | [diff] [blame] | 136 | bool bVerify); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 137 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 138 | INT ReadBeceemEEPROM(struct bcm_mini_adapter *Adapter, UINT dwAddress, UINT *pdwData); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 139 | |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 140 | INT BeceemNVMRead( |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 141 | struct bcm_mini_adapter *Adapter, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 142 | PUINT pBuffer, |
| 143 | UINT uiOffset, |
| 144 | UINT uiNumBytes); |
| 145 | |
| 146 | INT BeceemNVMWrite( |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 147 | struct bcm_mini_adapter *Adapter, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 148 | PUINT pBuffer, |
| 149 | UINT uiOffset, |
| 150 | UINT uiNumBytes, |
Lisa Nguyen | 3abd6f1 | 2013-10-28 01:35:59 -0700 | [diff] [blame] | 151 | bool bVerify); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 152 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 153 | INT BcmInitNVM(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 154 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 155 | INT BcmUpdateSectorSize(struct bcm_mini_adapter *Adapter, UINT uiSectorSize); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 156 | |
Lisa Nguyen | 3abd6f1 | 2013-10-28 01:35:59 -0700 | [diff] [blame] | 157 | bool IsSectionExistInFlash(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val section); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 158 | |
Kevin McKinney | d48a430 | 2012-11-22 14:48:42 -0500 | [diff] [blame] | 159 | INT BcmGetFlash2xSectionalBitMap(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_bitmap *psFlash2xBitMap); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 160 | |
| 161 | INT BcmFlash2xBulkWrite( |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 162 | struct bcm_mini_adapter *Adapter, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 163 | PUINT pBuffer, |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 164 | enum bcm_flash2x_section_val eFlashSectionVal, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 165 | UINT uiOffset, |
| 166 | UINT uiNumBytes, |
| 167 | UINT bVerify); |
| 168 | |
| 169 | INT BcmFlash2xBulkRead( |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 170 | struct bcm_mini_adapter *Adapter, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 171 | PUINT pBuffer, |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 172 | enum bcm_flash2x_section_val eFlashSectionVal, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 173 | UINT uiOffsetWithinSectionVal, |
| 174 | UINT uiNumBytes); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 175 | |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 176 | INT BcmGetSectionValStartOffset(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlashSectionVal); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 177 | |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 178 | INT BcmSetActiveSection(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlash2xSectVal); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 179 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 180 | INT BcmAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 181 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 182 | INT BcmDeAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 183 | |
Kevin McKinney | b1206c0 | 2012-11-22 14:48:44 -0500 | [diff] [blame] | 184 | INT BcmCopyISO(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_copy_section sCopySectStrut); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 185 | |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 186 | INT BcmFlash2xCorruptSig(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlash2xSectionVal); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 187 | |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 188 | INT BcmFlash2xWriteSig(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlashSectionVal); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 189 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 190 | INT validateFlash2xReadWrite(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_readwrite *psFlash2xReadWrite); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 191 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 192 | INT IsFlash2x(struct bcm_mini_adapter *Adapter); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 193 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 194 | INT BcmCopySection(struct bcm_mini_adapter *Adapter, |
Kevin McKinney | ff4e065 | 2012-11-22 14:48:50 -0500 | [diff] [blame] | 195 | enum bcm_flash2x_section_val SrcSection, |
| 196 | enum bcm_flash2x_section_val DstSection, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 197 | UINT offset, |
| 198 | UINT numOfBytes); |
| 199 | |
Lisa Nguyen | 3abd6f1 | 2013-10-28 01:35:59 -0700 | [diff] [blame] | 200 | bool IsNonCDLessDevice(struct bcm_mini_adapter *Adapter); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 201 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 202 | VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter, PUINT puiBuffer); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 203 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 204 | int wrmaltWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 205 | |
Martin Gumbrecht | c297005 | 2014-06-20 17:37:59 +0200 | [diff] [blame] | 206 | int rdmaltWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 207 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 208 | int wrmWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 209 | |
Kevin McKinney | 2979460 | 2012-05-26 12:05:12 -0400 | [diff] [blame] | 210 | INT buffDnldVerify(struct bcm_mini_adapter *Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 211 | unsigned long u32StartingAddress); |
| 212 | |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 213 | VOID putUsbSuspend(struct work_struct *work); |
Martin Gumbrecht | ffc7c9f | 2014-06-20 17:37:58 +0200 | [diff] [blame] | 214 | |
Lisa Nguyen | 3abd6f1 | 2013-10-28 01:35:59 -0700 | [diff] [blame] | 215 | bool IsReqGpioIsLedInNVM(struct bcm_mini_adapter *Adapter, UINT gpios); |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 216 | |
Stephen Hemminger | f8942e0 | 2010-09-08 14:46:36 -0700 | [diff] [blame] | 217 | #endif |