2010-09-08 15:46:36 -06:00
|
|
|
#ifndef _PROTOTYPES_H_
|
|
|
|
#define _PROTOTYPES_H_
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID LinkControlResponseMessage(struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID StatisticsResponse(struct bcm_mini_adapter *Adapter,PVOID pvBuffer);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID IdleModeResponse(struct bcm_mini_adapter *Adapter,PUINT puiBuffer);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int control_packet_handler (struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID DeleteAllClassifiersForSF(struct bcm_mini_adapter *Adapter,UINT uiSearchRuleIndex);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID flush_all_queues(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int register_control_device_interface(struct bcm_mini_adapter *ps_adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void unregister_control_device_interface(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT CopyBufferToControlPacket(struct bcm_mini_adapter *Adapter,/**<Logical Adapter*/
|
2010-09-08 15:46:36 -06:00
|
|
|
PVOID ioBuffer/**<Control Packet Buffer*/
|
|
|
|
);
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID SortPackInfo(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID SortClassifiers(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID flush_all_queues(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID PruneQueueAllSF(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT SearchSfid(struct bcm_mini_adapter *Adapter,UINT uiSfid);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
USHORT ClassifyPacket(struct bcm_mini_adapter *Adapter,struct sk_buff* skb);
|
2010-10-31 21:55:21 -06:00
|
|
|
|
2012-05-26 10:05:03 -06:00
|
|
|
BOOLEAN MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushSrcPort);
|
|
|
|
BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushSrcPort);
|
|
|
|
BOOLEAN MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,UCHAR ucProtocol);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT SetupNextSend(struct bcm_mini_adapter *Adapter, /**<Logical Adapter*/
|
2010-09-08 15:46:36 -06:00
|
|
|
struct sk_buff *Packet, /**<data buffer*/
|
|
|
|
USHORT Vcid) ;
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID LinkMessage(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID transmit_packets(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT SendControlPacket(struct bcm_mini_adapter *Adapter, /**<Logical Adapter*/
|
2010-09-08 15:46:36 -06:00
|
|
|
char *pControlPacket/**<Control Packet*/
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int register_networkdev(struct bcm_mini_adapter *Adapter);
|
|
|
|
void unregister_networkdev(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID AdapterFree(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int tx_pkt_handler(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int reset_card_proc(struct bcm_mini_adapter *Adapter );
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int run_card_proc(struct bcm_mini_adapter *Adapter );
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int InitCardAndDownloadFirmware(struct bcm_mini_adapter *ps_adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT ReadMacAddressFromNVM(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int register_control_device_interface(struct bcm_mini_adapter *ps_adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void DumpPackInfo(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int rdm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int wrm(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-10-18 20:40:09 -06:00
|
|
|
int wrmalt (struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-10-18 20:40:09 -06:00
|
|
|
int rdmalt (struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user * user_buffer);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void SendIdleModeResponse(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, S_MIBS_HOST_STATS_MIBS *buf);
|
2012-05-26 10:05:00 -06:00
|
|
|
void GetDroppedAppCntrlPktMibs(S_MIBS_HOST_STATS_MIBS *ioBuffer, struct bcm_tarang_data *pTarang);
|
2012-05-26 10:05:12 -06:00
|
|
|
void beceem_parse_target_struct(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void CopyMIBSExtendedSFParameters(struct bcm_mini_adapter *Adapter,
|
2012-09-23 21:07:14 -06:00
|
|
|
struct bcm_connect_mgr_params *psfLocalSet, UINT uiSearchRuleIndex);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID ResetCounters(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int InitLedSettings(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_classifier_rule *GetFragIPClsEntry(struct bcm_mini_adapter *Adapter,USHORT usIpIdentification,ULONG SrcIP);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void AddFragIPClsEntry(struct bcm_mini_adapter *Adapter, struct bcm_fragmented_packet_info *psFragPktInfo);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void DelFragIPClsEntry(struct bcm_mini_adapter *Adapter,USHORT usIpIdentification,ULONG SrcIp);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void update_per_cid_rx (struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void update_per_sf_desc_cnts( struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter,B_UINT16 TID,BOOLEAN bFreeAll);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
void flush_queue(struct bcm_mini_adapter *Adapter, UINT iQIndex);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
|
|
|
INT flushAllAppQ(VOID);
|
|
|
|
|
|
|
|
|
|
|
|
INT BeceemEEPROMBulkRead(
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_mini_adapter *Adapter,
|
2010-09-08 15:46:36 -06:00
|
|
|
PUINT pBuffer,
|
|
|
|
UINT uiOffset,
|
|
|
|
UINT uiNumBytes);
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT WriteBeceemEEPROM(struct bcm_mini_adapter *Adapter,UINT uiEEPROMOffset, UINT uiData);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT PropagateCalParamsFromFlashToMemory(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
|
|
|
INT BeceemEEPROMBulkWrite(
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_mini_adapter *Adapter,
|
2010-09-08 15:46:36 -06:00
|
|
|
PUCHAR pBuffer,
|
|
|
|
UINT uiOffset,
|
|
|
|
UINT uiNumBytes,
|
|
|
|
BOOLEAN bVerify);
|
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT ReadBeceemEEPROM(struct bcm_mini_adapter *Adapter,UINT dwAddress, UINT *pdwData);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
|
|
|
INT BeceemNVMRead(
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_mini_adapter *Adapter,
|
2010-09-08 15:46:36 -06:00
|
|
|
PUINT pBuffer,
|
|
|
|
UINT uiOffset,
|
|
|
|
UINT uiNumBytes);
|
|
|
|
|
|
|
|
INT BeceemNVMWrite(
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_mini_adapter *Adapter,
|
2010-09-08 15:46:36 -06:00
|
|
|
PUINT pBuffer,
|
|
|
|
UINT uiOffset,
|
|
|
|
UINT uiNumBytes,
|
|
|
|
BOOLEAN bVerify);
|
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT BcmInitNVM(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
INT BcmUpdateSectorSize(struct bcm_mini_adapter *Adapter,UINT uiSectorSize);
|
2012-11-22 12:48:50 -07:00
|
|
|
BOOLEAN IsSectionExistInFlash(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val section);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-11-22 12:48:42 -07:00
|
|
|
INT BcmGetFlash2xSectionalBitMap(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_bitmap *psFlash2xBitMap);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
INT BcmFlash2xBulkWrite(
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_mini_adapter *Adapter,
|
2010-09-08 15:46:36 -06:00
|
|
|
PUINT pBuffer,
|
2012-11-22 12:48:50 -07:00
|
|
|
enum bcm_flash2x_section_val eFlashSectionVal,
|
2010-09-08 15:46:36 -06:00
|
|
|
UINT uiOffset,
|
|
|
|
UINT uiNumBytes,
|
|
|
|
UINT bVerify);
|
|
|
|
|
|
|
|
INT BcmFlash2xBulkRead(
|
2012-05-26 10:05:12 -06:00
|
|
|
struct bcm_mini_adapter *Adapter,
|
2010-09-08 15:46:36 -06:00
|
|
|
PUINT pBuffer,
|
2012-11-22 12:48:50 -07:00
|
|
|
enum bcm_flash2x_section_val eFlashSectionVal,
|
2010-09-08 15:46:36 -06:00
|
|
|
UINT uiOffsetWithinSectionVal,
|
|
|
|
UINT uiNumBytes);
|
|
|
|
|
2012-11-22 12:48:50 -07:00
|
|
|
INT BcmGetSectionValStartOffset(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlashSectionVal);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-11-22 12:48:50 -07:00
|
|
|
INT BcmSetActiveSection(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlash2xSectVal);
|
2012-05-26 10:05:12 -06:00
|
|
|
INT BcmAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter);
|
|
|
|
INT BcmDeAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-11-22 12:48:44 -07:00
|
|
|
INT BcmCopyISO(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_copy_section sCopySectStrut);
|
2012-11-22 12:48:50 -07:00
|
|
|
INT BcmFlash2xCorruptSig(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlash2xSectionVal);
|
|
|
|
INT BcmFlash2xWriteSig(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val eFlashSectionVal);
|
2012-11-22 12:48:47 -07:00
|
|
|
INT validateFlash2xReadWrite(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_readwrite *psFlash2xReadWrite);
|
2012-05-26 10:05:12 -06:00
|
|
|
INT IsFlash2x(struct bcm_mini_adapter *Adapter);
|
|
|
|
INT BcmCopySection(struct bcm_mini_adapter *Adapter,
|
2012-11-22 12:48:50 -07:00
|
|
|
enum bcm_flash2x_section_val SrcSection,
|
|
|
|
enum bcm_flash2x_section_val DstSection,
|
2010-09-08 15:46:36 -06:00
|
|
|
UINT offset,
|
|
|
|
UINT numOfBytes);
|
|
|
|
|
2010-11-01 10:24:00 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
BOOLEAN IsNonCDLessDevice(struct bcm_mini_adapter *Adapter);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter,PUINT puiBuffer);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-10-18 20:40:09 -06:00
|
|
|
int wrmaltWithLock (struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize);
|
|
|
|
int rdmaltWithLock (struct bcm_mini_adapter *Adapter, UINT uiAddress, unsigned int *pucBuff, size_t sSize);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
2012-05-26 10:05:12 -06:00
|
|
|
int wrmWithLock(struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size);
|
|
|
|
INT buffDnldVerify(struct bcm_mini_adapter *Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength,
|
2010-09-08 15:46:36 -06:00
|
|
|
unsigned long u32StartingAddress);
|
|
|
|
|
|
|
|
|
|
|
|
VOID putUsbSuspend(struct work_struct *work);
|
2012-05-26 10:05:12 -06:00
|
|
|
BOOLEAN IsReqGpioIsLedInNVM(struct bcm_mini_adapter *Adapter, UINT gpios);
|
2010-09-08 15:46:36 -06:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|