Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Prototypes.h File Reference

Go to the source code of this file.

Functions

VOID LinkControlResponseMessage (struct bcm_mini_adapter *Adapter, PUCHAR pucBuffer)
 
VOID StatisticsResponse (struct bcm_mini_adapter *Adapter, PVOID pvBuffer)
 
VOID IdleModeResponse (struct bcm_mini_adapter *Adapter, PUINT puiBuffer)
 
int control_packet_handler (struct bcm_mini_adapter *Adapter)
 
VOID DeleteAllClassifiersForSF (struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex)
 
VOID flush_all_queues (struct bcm_mini_adapter *Adapter)
 
int register_control_device_interface (struct bcm_mini_adapter *ps_adapter)
 
void unregister_control_device_interface (struct bcm_mini_adapter *Adapter)
 
INT CopyBufferToControlPacket (struct bcm_mini_adapter *Adapter, PVOID ioBuffer)
 
VOID SortPackInfo (struct bcm_mini_adapter *Adapter)
 
VOID SortClassifiers (struct bcm_mini_adapter *Adapter)
 
VOID PruneQueueAllSF (struct bcm_mini_adapter *Adapter)
 
INT SearchSfid (struct bcm_mini_adapter *Adapter, UINT uiSfid)
 
USHORT ClassifyPacket (struct bcm_mini_adapter *Adapter, struct sk_buff *skb)
 
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)
 
INT SetupNextSend (struct bcm_mini_adapter *Adapter, struct sk_buff *Packet, USHORT Vcid)
 
VOID LinkMessage (struct bcm_mini_adapter *Adapter)
 
VOID transmit_packets (struct bcm_mini_adapter *Adapter)
 
INT SendControlPacket (struct bcm_mini_adapter *Adapter, char *pControlPacket)
 
int register_networkdev (struct bcm_mini_adapter *Adapter)
 
void unregister_networkdev (struct bcm_mini_adapter *Adapter)
 
INT AllocAdapterDsxBuffer (struct bcm_mini_adapter *Adapter)
 
VOID AdapterFree (struct bcm_mini_adapter *Adapter)
 
INT FreeAdapterDsxBuffer (struct bcm_mini_adapter *Adapter)
 
int tx_pkt_handler (struct bcm_mini_adapter *Adapter)
 
int reset_card_proc (struct bcm_mini_adapter *Adapter)
 
int run_card_proc (struct bcm_mini_adapter *Adapter)
 
int InitCardAndDownloadFirmware (struct bcm_mini_adapter *ps_adapter)
 
INT ReadMacAddressFromNVM (struct bcm_mini_adapter *Adapter)
 
void DumpPackInfo (struct bcm_mini_adapter *Adapter)
 
int rdm (struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size)
 
int wrm (struct bcm_mini_adapter *Adapter, UINT uiAddress, PCHAR pucBuff, size_t size)
 
int wrmalt (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize)
 
int rdmalt (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize)
 
int get_dsx_sf_data_to_application (struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user *user_buffer)
 
void SendIdleModeResponse (struct bcm_mini_adapter *Adapter)
 
int ProcessGetHostMibs (struct bcm_mini_adapter *Adapter, S_MIBS_HOST_STATS_MIBS *buf)
 
void GetDroppedAppCntrlPktMibs (S_MIBS_HOST_STATS_MIBS *ioBuffer, struct bcm_tarang_data *pTarang)
 
void beceem_parse_target_struct (struct bcm_mini_adapter *Adapter)
 
int bcm_ioctl_fw_download (struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo)
 
void CopyMIBSExtendedSFParameters (struct bcm_mini_adapter *Adapter, struct bcm_connect_mgr_params *psfLocalSet, UINT uiSearchRuleIndex)
 
VOID ResetCounters (struct bcm_mini_adapter *Adapter)
 
int InitLedSettings (struct bcm_mini_adapter *Adapter)
 
struct bcm_classifier_ruleGetFragIPClsEntry (struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIP)
 
void AddFragIPClsEntry (struct bcm_mini_adapter *Adapter, struct bcm_fragmented_packet_info *psFragPktInfo)
 
void DelFragIPClsEntry (struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIp)
 
void update_per_cid_rx (struct bcm_mini_adapter *Adapter)
 
void update_per_sf_desc_cnts (struct bcm_mini_adapter *Adapter)
 
void ClearTargetDSXBuffer (struct bcm_mini_adapter *Adapter, B_UINT16 TID, BOOLEAN bFreeAll)
 
void flush_queue (struct bcm_mini_adapter *Adapter, UINT iQIndex)
 
INT flushAllAppQ (VOID)
 
INT BeceemEEPROMBulkRead (struct bcm_mini_adapter *Adapter, PUINT pBuffer, UINT uiOffset, UINT uiNumBytes)
 
INT WriteBeceemEEPROM (struct bcm_mini_adapter *Adapter, UINT uiEEPROMOffset, UINT uiData)
 
INT PropagateCalParamsFromFlashToMemory (struct bcm_mini_adapter *Adapter)
 
INT BeceemEEPROMBulkWrite (struct bcm_mini_adapter *Adapter, PUCHAR pBuffer, UINT uiOffset, UINT uiNumBytes, BOOLEAN bVerify)
 
INT ReadBeceemEEPROM (struct bcm_mini_adapter *Adapter, UINT dwAddress, UINT *pdwData)
 
INT BeceemNVMRead (struct bcm_mini_adapter *Adapter, PUINT pBuffer, UINT uiOffset, UINT uiNumBytes)
 
INT BeceemNVMWrite (struct bcm_mini_adapter *Adapter, PUINT pBuffer, UINT uiOffset, UINT uiNumBytes, BOOLEAN bVerify)
 
INT BcmInitNVM (struct bcm_mini_adapter *Adapter)
 
INT BcmUpdateSectorSize (struct bcm_mini_adapter *Adapter, UINT uiSectorSize)
 
BOOLEAN IsSectionExistInFlash (struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL section)
 
INT BcmGetFlash2xSectionalBitMap (struct bcm_mini_adapter *Adapter, PFLASH2X_BITMAP psFlash2xBitMap)
 
INT BcmFlash2xBulkWrite (struct bcm_mini_adapter *Adapter, PUINT pBuffer, FLASH2X_SECTION_VAL eFlashSectionVal, UINT uiOffset, UINT uiNumBytes, UINT bVerify)
 
INT BcmFlash2xBulkRead (struct bcm_mini_adapter *Adapter, PUINT pBuffer, FLASH2X_SECTION_VAL eFlashSectionVal, UINT uiOffsetWithinSectionVal, UINT uiNumBytes)
 
INT BcmGetSectionValStartOffset (struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlashSectionVal)
 
INT BcmSetActiveSection (struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectVal)
 
INT BcmAllocFlashCSStructure (struct bcm_mini_adapter *psAdapter)
 
INT BcmDeAllocFlashCSStructure (struct bcm_mini_adapter *psAdapter)
 
INT BcmCopyISO (struct bcm_mini_adapter *Adapter, FLASH2X_COPY_SECTION sCopySectStrut)
 
INT BcmFlash2xCorruptSig (struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlash2xSectionVal)
 
INT BcmFlash2xWriteSig (struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL eFlashSectionVal)
 
INT validateFlash2xReadWrite (struct bcm_mini_adapter *Adapter, PFLASH2X_READWRITE psFlash2xReadWrite)
 
INT IsFlash2x (struct bcm_mini_adapter *Adapter)
 
INT BcmCopySection (struct bcm_mini_adapter *Adapter, FLASH2X_SECTION_VAL SrcSection, FLASH2X_SECTION_VAL DstSection, UINT offset, UINT numOfBytes)
 
BOOLEAN IsNonCDLessDevice (struct bcm_mini_adapter *Adapter)
 
VOID OverrideServiceFlowParams (struct bcm_mini_adapter *Adapter, PUINT puiBuffer)
 
int wrmaltWithLock (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize)
 
int rdmaltWithLock (struct bcm_mini_adapter *Adapter, UINT uiAddress, PUINT pucBuff, size_t sSize)
 
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, unsigned long u32StartingAddress)
 
VOID putUsbSuspend (struct work_struct *work)
 
BOOLEAN IsReqGpioIsLedInNVM (struct bcm_mini_adapter *Adapter, UINT gpios)
 

Function Documentation

VOID AdapterFree ( struct bcm_mini_adapter Adapter)

Definition at line 96 of file Misc.c.

void AddFragIPClsEntry ( struct bcm_mini_adapter Adapter,
struct bcm_fragmented_packet_info psFragPktInfo 
)

Definition at line 1452 of file Misc.c.

INT AllocAdapterDsxBuffer ( struct bcm_mini_adapter Adapter)

Definition at line 1608 of file CmHost.c.

int bcm_ioctl_fw_download ( struct bcm_mini_adapter Adapter,
struct bcm_firmware_info psFwInfo 
)

Definition at line 232 of file InterfaceDld.c.

INT BcmAllocFlashCSStructure ( struct bcm_mini_adapter psAdapter)

Definition at line 2225 of file nvm.c.

INT BcmCopyISO ( struct bcm_mini_adapter Adapter,
FLASH2X_COPY_SECTION  sCopySectStrut 
)

Definition at line 3532 of file nvm.c.

INT BcmCopySection ( struct bcm_mini_adapter Adapter,
FLASH2X_SECTION_VAL  SrcSection,
FLASH2X_SECTION_VAL  DstSection,
UINT  offset,
UINT  numOfBytes 
)

Definition at line 4023 of file nvm.c.

INT BcmDeAllocFlashCSStructure ( struct bcm_mini_adapter psAdapter)

Definition at line 2255 of file nvm.c.

INT BcmFlash2xBulkRead ( struct bcm_mini_adapter Adapter,
PUINT  pBuffer,
FLASH2X_SECTION_VAL  eFlashSectionVal,
UINT  uiOffsetWithinSectionVal,
UINT  uiNumBytes 
)

Definition at line 2848 of file nvm.c.

INT BcmFlash2xBulkWrite ( struct bcm_mini_adapter Adapter,
PUINT  pBuffer,
FLASH2X_SECTION_VAL  eFlashSectionVal,
UINT  uiOffset,
UINT  uiNumBytes,
UINT  bVerify 
)

Definition at line 2910 of file nvm.c.

INT BcmFlash2xCorruptSig ( struct bcm_mini_adapter Adapter,
FLASH2X_SECTION_VAL  eFlash2xSectionVal 
)

Definition at line 3816 of file nvm.c.

INT BcmFlash2xWriteSig ( struct bcm_mini_adapter Adapter,
FLASH2X_SECTION_VAL  eFlashSectionVal 
)

Definition at line 3844 of file nvm.c.

INT BcmGetFlash2xSectionalBitMap ( struct bcm_mini_adapter Adapter,
PFLASH2X_BITMAP  psFlash2xBitMap 
)

Definition at line 3102 of file nvm.c.

INT BcmGetSectionValStartOffset ( struct bcm_mini_adapter Adapter,
FLASH2X_SECTION_VAL  eFlashSectionVal 
)

Definition at line 2670 of file nvm.c.

INT BcmInitNVM ( struct bcm_mini_adapter Adapter)

Definition at line 2129 of file nvm.c.

INT BcmSetActiveSection ( struct bcm_mini_adapter Adapter,
FLASH2X_SECTION_VAL  eFlash2xSectVal 
)

Definition at line 3352 of file nvm.c.

INT BcmUpdateSectorSize ( struct bcm_mini_adapter Adapter,
UINT  uiSectorSize 
)

Definition at line 1978 of file nvm.c.

void beceem_parse_target_struct ( struct bcm_mini_adapter Adapter)

Definition at line 1089 of file Misc.c.

INT BeceemEEPROMBulkRead ( struct bcm_mini_adapter Adapter,
PUINT  pBuffer,
UINT  uiOffset,
UINT  uiNumBytes 
)

Definition at line 302 of file nvm.c.

INT BeceemEEPROMBulkWrite ( struct bcm_mini_adapter Adapter,
PUCHAR  pBuffer,
UINT  uiOffset,
UINT  uiNumBytes,
BOOLEAN  bVerify 
)

Definition at line 1723 of file nvm.c.

INT BeceemNVMRead ( struct bcm_mini_adapter Adapter,
PUINT  pBuffer,
UINT  uiOffset,
UINT  uiNumBytes 
)

Definition at line 1810 of file nvm.c.

INT BeceemNVMWrite ( struct bcm_mini_adapter Adapter,
PUINT  pBuffer,
UINT  uiOffset,
UINT  uiNumBytes,
BOOLEAN  bVerify 
)

Definition at line 1869 of file nvm.c.

INT buffDnldVerify ( struct bcm_mini_adapter Adapter,
unsigned char mappedbuffer,
unsigned int  u32FirmwareLength,
unsigned long  u32StartingAddress 
)

Definition at line 337 of file InterfaceDld.c.

USHORT ClassifyPacket ( struct bcm_mini_adapter Adapter,
struct sk_buff skb 
)

Definition at line 445 of file Qos.c.

void ClearTargetDSXBuffer ( struct bcm_mini_adapter Adapter,
B_UINT16  TID,
BOOLEAN  bFreeAll 
)

Definition at line 216 of file CmHost.c.

int control_packet_handler ( struct bcm_mini_adapter Adapter)

Thread to handle control pkt reception

Definition at line 157 of file HandleControlPacket.c.

INT CopyBufferToControlPacket ( struct bcm_mini_adapter Adapter,
PVOID  ioBuffer 
)

This function copies the contents of given buffer to the control packet and queues it for transmission.

Note
Do not acquire the spinock, as it it already acquired.
Returns
SUCCESS/FAILURE. Arguments: Logical Adapter Control Packet Buffer
Parameters
AdapterLogical Adapter
ioBufferControl Packet Buffer

Definition at line 219 of file Misc.c.

void CopyMIBSExtendedSFParameters ( struct bcm_mini_adapter Adapter,
struct bcm_connect_mgr_params psfLocalSet,
UINT  uiSearchRuleIndex 
)

Definition at line 104 of file hostmibs.c.

VOID DeleteAllClassifiersForSF ( struct bcm_mini_adapter Adapter,
UINT  uiSearchRuleIndex 
)

Definition at line 398 of file CmHost.c.

void DelFragIPClsEntry ( struct bcm_mini_adapter Adapter,
USHORT  usIpIdentification,
ULONG  SrcIp 
)

Definition at line 1463 of file Misc.c.

void DumpPackInfo ( struct bcm_mini_adapter Adapter)

Definition at line 643 of file Misc.c.

VOID flush_all_queues ( struct bcm_mini_adapter Adapter)

update current bytes and packets count

update dropped bytes and packets counts

Definition at line 395 of file Qos.c.

void flush_queue ( struct bcm_mini_adapter Adapter,
UINT  iQIndex 
)

Definition at line 1525 of file Misc.c.

INT flushAllAppQ ( VOID  )
INT FreeAdapterDsxBuffer ( struct bcm_mini_adapter Adapter)

Definition at line 1621 of file CmHost.c.

int get_dsx_sf_data_to_application ( struct bcm_mini_adapter Adapter,
UINT  uiSFId,
void __user user_buffer 
)

Definition at line 1891 of file CmHost.c.

void GetDroppedAppCntrlPktMibs ( S_MIBS_HOST_STATS_MIBS ioBuffer,
struct bcm_tarang_data pTarang 
)

Definition at line 97 of file hostmibs.c.

struct bcm_classifier_rule* GetFragIPClsEntry ( struct bcm_mini_adapter Adapter,
USHORT  usIpIdentification,
ULONG  SrcIP 
)
read

Definition at line 1438 of file Misc.c.

VOID IdleModeResponse ( struct bcm_mini_adapter Adapter,
PUINT  puiBuffer 
)
int InitCardAndDownloadFirmware ( struct bcm_mini_adapter ps_adapter)

Definition at line 920 of file Misc.c.

int InitLedSettings ( struct bcm_mini_adapter Adapter)

Definition at line 860 of file led_control.c.

INT IsFlash2x ( struct bcm_mini_adapter Adapter)

Definition at line 3963 of file nvm.c.

BOOLEAN IsNonCDLessDevice ( struct bcm_mini_adapter Adapter)

Definition at line 4658 of file nvm.c.

BOOLEAN IsReqGpioIsLedInNVM ( struct bcm_mini_adapter Adapter,
UINT  gpios 
)

Definition at line 16 of file led_control.c.

BOOLEAN IsSectionExistInFlash ( struct bcm_mini_adapter Adapter,
FLASH2X_SECTION_VAL  section 
)

Definition at line 4471 of file nvm.c.

VOID LinkControlResponseMessage ( struct bcm_mini_adapter Adapter,
PUCHAR  pucBuffer 
)

Definition at line 470 of file Misc.c.

VOID LinkMessage ( struct bcm_mini_adapter Adapter)

Definition at line 400 of file Misc.c.

BOOLEAN MatchDestPort ( struct bcm_classifier_rule pstClassifierRule,
USHORT  ushSrcPort 
)

Definition at line 181 of file Qos.c.

BOOLEAN MatchProtocol ( struct bcm_classifier_rule pstClassifierRule,
UCHAR  ucProtocol 
)

Definition at line 120 of file Qos.c.

BOOLEAN MatchSrcPort ( struct bcm_classifier_rule pstClassifierRule,
USHORT  ushSrcPort 
)

Definition at line 149 of file Qos.c.

VOID OverrideServiceFlowParams ( struct bcm_mini_adapter Adapter,
PUINT  puiBuffer 
)

Definition at line 1913 of file CmHost.c.

int ProcessGetHostMibs ( struct bcm_mini_adapter Adapter,
S_MIBS_HOST_STATS_MIBS buf 
)

Definition at line 12 of file hostmibs.c.

INT PropagateCalParamsFromFlashToMemory ( struct bcm_mini_adapter Adapter)

Definition at line 1430 of file nvm.c.

VOID PruneQueueAllSF ( struct bcm_mini_adapter Adapter)

Definition at line 305 of file Qos.c.

VOID putUsbSuspend ( struct work_struct work)

Definition at line 225 of file InterfaceMisc.c.

int rdm ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PCHAR  pucBuff,
size_t  size 
)

Definition at line 1191 of file Misc.c.

int rdmalt ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PUINT  pucBuff,
size_t  sSize 
)

Definition at line 1212 of file Misc.c.

int rdmaltWithLock ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PUINT  pucBuff,
size_t  sSize 
)

Definition at line 1261 of file Misc.c.

INT ReadBeceemEEPROM ( struct bcm_mini_adapter Adapter,
UINT  dwAddress,
UINT pdwData 
)
INT ReadMacAddressFromNVM ( struct bcm_mini_adapter Adapter)

Definition at line 270 of file nvm.c.

int register_control_device_interface ( struct bcm_mini_adapter ps_adapter)

Definition at line 2019 of file Bcmchar.c.

int register_networkdev ( struct bcm_mini_adapter Adapter)

Definition at line 186 of file Bcmnet.c.

int reset_card_proc ( struct bcm_mini_adapter Adapter)

Definition at line 775 of file Misc.c.

VOID ResetCounters ( struct bcm_mini_adapter Adapter)

Definition at line 1422 of file Misc.c.

int run_card_proc ( struct bcm_mini_adapter Adapter)

Definition at line 893 of file Misc.c.

INT SearchSfid ( struct bcm_mini_adapter Adapter,
UINT  uiSfid 
)

Definition at line 30 of file CmHost.c.

INT SendControlPacket ( struct bcm_mini_adapter Adapter,
char pControlPacket 
)

This function dispatches control packet to the h/w interface

Returns
zero(success) or -ve value(failure)
Parameters
AdapterLogical Adapter
pControlPacketControl Packet

Definition at line 43 of file Transmit.c.

void SendIdleModeResponse ( struct bcm_mini_adapter Adapter)

Definition at line 544 of file Misc.c.

VOID SortClassifiers ( struct bcm_mini_adapter Adapter)

Definition at line 45 of file sort.c.

VOID SortPackInfo ( struct bcm_mini_adapter Adapter)

Definition at line 25 of file sort.c.

VOID StatisticsResponse ( struct bcm_mini_adapter Adapter,
PVOID  pvBuffer 
)

Definition at line 451 of file Misc.c.

VOID transmit_packets ( struct bcm_mini_adapter Adapter)

Definition at line 276 of file LeakyBucket.c.

void unregister_control_device_interface ( struct bcm_mini_adapter Adapter)

Definition at line 2044 of file Bcmchar.c.

void unregister_networkdev ( struct bcm_mini_adapter Adapter)

Definition at line 227 of file Bcmnet.c.

void update_per_cid_rx ( struct bcm_mini_adapter Adapter)

Definition at line 1475 of file Misc.c.

void update_per_sf_desc_cnts ( struct bcm_mini_adapter Adapter)

Definition at line 1499 of file Misc.c.

INT validateFlash2xReadWrite ( struct bcm_mini_adapter Adapter,
PFLASH2X_READWRITE  psFlash2xReadWrite 
)

Definition at line 3904 of file nvm.c.

INT WriteBeceemEEPROM ( struct bcm_mini_adapter Adapter,
UINT  uiEEPROMOffset,
UINT  uiData 
)
int wrm ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PCHAR  pucBuff,
size_t  size 
)

Definition at line 1197 of file Misc.c.

int wrmalt ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PUINT  pucBuff,
size_t  sSize 
)

Definition at line 1206 of file Misc.c.

int wrmaltWithLock ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PUINT  pucBuff,
size_t  sSize 
)

Definition at line 1241 of file Misc.c.

int wrmWithLock ( struct bcm_mini_adapter Adapter,
UINT  uiAddress,
PCHAR  pucBuff,
size_t  size 
)

Definition at line 1222 of file Misc.c.