You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ff352042eb
commit
2979460d7a
@@ -192,7 +192,7 @@ struct bcm_packet_info {
|
||||
|
||||
struct bcm_tarang_data {
|
||||
struct bcm_tarang_data *next;
|
||||
struct _MINI_ADAPTER *Adapter;
|
||||
struct bcm_mini_adapter *Adapter;
|
||||
struct sk_buff *RxAppControlHead;
|
||||
struct sk_buff *RxAppControlTail;
|
||||
int AppCtrlQueueLen;
|
||||
@@ -208,15 +208,15 @@ struct bcm_targetdsx_buffer {
|
||||
BOOLEAN valid;
|
||||
};
|
||||
|
||||
typedef int (*FP_FLASH_WRITE)(struct _MINI_ADAPTER *, UINT, PVOID);
|
||||
typedef int (*FP_FLASH_WRITE)(struct bcm_mini_adapter *, UINT, PVOID);
|
||||
|
||||
typedef int (*FP_FLASH_WRITE_STATUS)(struct _MINI_ADAPTER *, UINT, PVOID);
|
||||
typedef int (*FP_FLASH_WRITE_STATUS)(struct bcm_mini_adapter *, UINT, PVOID);
|
||||
|
||||
/*
|
||||
* Driver adapter data structure
|
||||
*/
|
||||
struct _MINI_ADAPTER {
|
||||
struct _MINI_ADAPTER *next;
|
||||
struct bcm_mini_adapter {
|
||||
struct bcm_mini_adapter *next;
|
||||
struct net_device *dev;
|
||||
u32 msg_enable;
|
||||
CHAR *caDsxReqResp;
|
||||
@@ -394,7 +394,6 @@ struct _MINI_ADAPTER {
|
||||
UINT gpioBitMap;
|
||||
S_BCM_DEBUG_STATE stDebugState;
|
||||
};
|
||||
typedef struct _MINI_ADAPTER MINI_ADAPTER, *PMINI_ADAPTER;
|
||||
|
||||
#define GET_BCM_ADAPTER(net_dev) netdev_priv(net_dev)
|
||||
|
||||
@@ -417,7 +416,7 @@ struct bcm_ddr_setting {
|
||||
UINT ulRegAddress;
|
||||
UINT ulRegValue;
|
||||
};
|
||||
int InitAdapter(PMINI_ADAPTER psAdapter);
|
||||
int InitAdapter(struct bcm_mini_adapter *psAdapter);
|
||||
|
||||
/* =====================================================================
|
||||
* Beceem vendor request codes for EP0
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
static int bcm_char_open(struct inode *inode, struct file * filp)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = NULL;
|
||||
struct bcm_mini_adapter *Adapter = NULL;
|
||||
struct bcm_tarang_data *pTarang = NULL;
|
||||
|
||||
Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
@@ -44,7 +44,7 @@ static int bcm_char_open(struct inode *inode, struct file * filp)
|
||||
static int bcm_char_release(struct inode *inode, struct file *filp)
|
||||
{
|
||||
struct bcm_tarang_data *pTarang, *tmp, *ptmp;
|
||||
PMINI_ADAPTER Adapter = NULL;
|
||||
struct bcm_mini_adapter *Adapter = NULL;
|
||||
struct sk_buff *pkt, *npkt;
|
||||
|
||||
pTarang = (struct bcm_tarang_data *)filp->private_data;
|
||||
@@ -98,7 +98,7 @@ static ssize_t bcm_char_read(struct file *filp, char __user *buf, size_t size,
|
||||
loff_t *f_pos)
|
||||
{
|
||||
struct bcm_tarang_data *pTarang = filp->private_data;
|
||||
PMINI_ADAPTER Adapter = pTarang->Adapter;
|
||||
struct bcm_mini_adapter *Adapter = pTarang->Adapter;
|
||||
struct sk_buff *Packet = NULL;
|
||||
ssize_t PktLen = 0;
|
||||
int wait_ret_val = 0;
|
||||
@@ -157,7 +157,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
|
||||
{
|
||||
struct bcm_tarang_data *pTarang = filp->private_data;
|
||||
void __user *argp = (void __user *)arg;
|
||||
PMINI_ADAPTER Adapter = pTarang->Adapter;
|
||||
struct bcm_mini_adapter *Adapter = pTarang->Adapter;
|
||||
INT Status = STATUS_FAILURE;
|
||||
int timeout = 0;
|
||||
IOCTL_BUFFER IoBuffer;
|
||||
@@ -2014,7 +2014,7 @@ static const struct file_operations bcm_fops = {
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
int register_control_device_interface(PMINI_ADAPTER Adapter)
|
||||
int register_control_device_interface(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
|
||||
if (Adapter->major > 0)
|
||||
@@ -2039,7 +2039,7 @@ int register_control_device_interface(PMINI_ADAPTER Adapter)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void unregister_control_device_interface(PMINI_ADAPTER Adapter)
|
||||
void unregister_control_device_interface(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
if (Adapter->major > 0) {
|
||||
device_destroy(bcm_class, MKDEV(Adapter->major, 0));
|
||||
|
||||
@@ -4,7 +4,7 @@ struct net_device *gblpnetdev;
|
||||
|
||||
static INT bcm_open(struct net_device *dev)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
|
||||
if (Adapter->fw_download_done == FALSE) {
|
||||
pr_notice(PFX "%s: link up failed (download in progress)\n",
|
||||
@@ -28,7 +28,7 @@ static INT bcm_open(struct net_device *dev)
|
||||
|
||||
static INT bcm_close(struct net_device *dev)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
|
||||
if (netif_msg_ifdown(Adapter))
|
||||
pr_info(PFX "%s: disabling interface\n", dev->name);
|
||||
@@ -59,7 +59,7 @@ static u16 bcm_select_queue(struct net_device *dev, struct sk_buff *skb)
|
||||
|
||||
static netdev_tx_t bcm_transmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
u16 qindex = skb_get_queue_mapping(skb);
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ static int bcm_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
|
||||
static void bcm_get_drvinfo(struct net_device *dev,
|
||||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter = Adapter->pvInterfaceAdapter;
|
||||
struct usb_device *udev = interface_to_usbdev(psIntfAdapter->interface);
|
||||
|
||||
@@ -156,21 +156,21 @@ static void bcm_get_drvinfo(struct net_device *dev,
|
||||
|
||||
static u32 bcm_get_link(struct net_device *dev)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
|
||||
return Adapter->LinkUpStatus;
|
||||
}
|
||||
|
||||
static u32 bcm_get_msglevel(struct net_device *dev)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
|
||||
return Adapter->msg_enable;
|
||||
}
|
||||
|
||||
static void bcm_set_msglevel(struct net_device *dev, u32 level)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev);
|
||||
|
||||
Adapter->msg_enable = level;
|
||||
}
|
||||
@@ -183,7 +183,7 @@ static const struct ethtool_ops bcm_ethtool_ops = {
|
||||
.set_msglevel = bcm_set_msglevel,
|
||||
};
|
||||
|
||||
int register_networkdev(PMINI_ADAPTER Adapter)
|
||||
int register_networkdev(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
struct net_device *net = Adapter->dev;
|
||||
PS_INTERFACE_ADAPTER IntfAdapter = Adapter->pvInterfaceAdapter;
|
||||
@@ -224,7 +224,7 @@ int register_networkdev(PMINI_ADAPTER Adapter)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void unregister_networkdev(PMINI_ADAPTER Adapter)
|
||||
void unregister_networkdev(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
struct net_device *net = Adapter->dev;
|
||||
PS_INTERFACE_ADAPTER IntfAdapter = Adapter->pvInterfaceAdapter;
|
||||
|
||||
@@ -14,7 +14,7 @@ enum E_CLASSIFIER_ACTION {
|
||||
eDeleteClassifier
|
||||
};
|
||||
|
||||
static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter, B_UINT16 tid);
|
||||
static ULONG GetNextTargetBufferLocation(struct bcm_mini_adapter *Adapter, B_UINT16 tid);
|
||||
|
||||
/************************************************************
|
||||
* Function - SearchSfid
|
||||
@@ -28,7 +28,7 @@ static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter, B_UINT16 tid);
|
||||
* Returns - Queue index for this SFID(If matched)
|
||||
* Else Invalid Queue Index(If Not matched)
|
||||
************************************************************/
|
||||
int SearchSfid(PMINI_ADAPTER Adapter, UINT uiSfid)
|
||||
int SearchSfid(struct bcm_mini_adapter *Adapter, UINT uiSfid)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -49,7 +49,7 @@ int SearchSfid(PMINI_ADAPTER Adapter, UINT uiSfid)
|
||||
* Returns - Queue index for the free SFID
|
||||
* Else returns Invalid Index.
|
||||
****************************************************************/
|
||||
static int SearchFreeSfid(PMINI_ADAPTER Adapter)
|
||||
static int SearchFreeSfid(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -63,12 +63,12 @@ static int SearchFreeSfid(PMINI_ADAPTER Adapter)
|
||||
/*
|
||||
* Function: SearchClsid
|
||||
* Description: This routinue would search Classifier having specified ClassifierID as input parameter
|
||||
* Input parameters: PMINI_ADAPTER Adapter - Adapter Context
|
||||
* Input parameters: struct bcm_mini_adapter *Adapter - Adapter Context
|
||||
* unsigned int uiSfid - The SF in which the classifier is to searched
|
||||
* B_UINT16 uiClassifierID - The classifier ID to be searched
|
||||
* Return: int :Classifier table index of matching entry
|
||||
*/
|
||||
static int SearchClsid(PMINI_ADAPTER Adapter, ULONG ulSFID, B_UINT16 uiClassifierID)
|
||||
static int SearchClsid(struct bcm_mini_adapter *Adapter, ULONG ulSFID, B_UINT16 uiClassifierID)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -87,7 +87,7 @@ static int SearchClsid(PMINI_ADAPTER Adapter, ULONG ulSFID, B_UINT16 uiClassifi
|
||||
* This routinue would search Free available Classifier entry in classifier table.
|
||||
* @return free Classifier Entry index in classifier table for specified SF
|
||||
*/
|
||||
static int SearchFreeClsid(PMINI_ADAPTER Adapter /**Adapter Context*/)
|
||||
static int SearchFreeClsid(struct bcm_mini_adapter *Adapter /**Adapter Context*/)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -99,7 +99,7 @@ static int SearchFreeClsid(PMINI_ADAPTER Adapter /**Adapter Context*/)
|
||||
return MAX_CLASSIFIERS+1;
|
||||
}
|
||||
|
||||
static VOID deleteSFBySfid(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex)
|
||||
static VOID deleteSFBySfid(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex)
|
||||
{
|
||||
/* deleting all the packet held in the SF */
|
||||
flush_queue(Adapter, uiSearchRuleIndex);
|
||||
@@ -120,7 +120,7 @@ CopyIpAddrToClassifier(struct bcm_classifier_rule *pstClassifierEntry,
|
||||
UINT nSizeOfIPAddressInBytes = IP_LENGTH_OF_ADDRESS;
|
||||
UCHAR *ptrClassifierIpAddress = NULL;
|
||||
UCHAR *ptrClassifierIpMask = NULL;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
|
||||
if (bIpVersion6)
|
||||
nSizeOfIPAddressInBytes = IPV6_ADDRESS_SIZEINBYTES;
|
||||
@@ -214,7 +214,7 @@ CopyIpAddrToClassifier(struct bcm_classifier_rule *pstClassifierEntry,
|
||||
}
|
||||
}
|
||||
|
||||
void ClearTargetDSXBuffer(PMINI_ADAPTER Adapter, B_UINT16 TID, BOOLEAN bFreeAll)
|
||||
void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter, B_UINT16 TID, BOOLEAN bFreeAll)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -236,7 +236,7 @@ void ClearTargetDSXBuffer(PMINI_ADAPTER Adapter, B_UINT16 TID, BOOLEAN bFreeAll)
|
||||
* @ingroup ctrl_pkt_functions
|
||||
* copy classifier rule into the specified SF index
|
||||
*/
|
||||
static inline VOID CopyClassifierRuleToSF(PMINI_ADAPTER Adapter, stConvergenceSLTypes *psfCSType, UINT uiSearchRuleIndex, UINT nClassifierIndex)
|
||||
static inline VOID CopyClassifierRuleToSF(struct bcm_mini_adapter *Adapter, stConvergenceSLTypes *psfCSType, UINT uiSearchRuleIndex, UINT nClassifierIndex)
|
||||
{
|
||||
struct bcm_classifier_rule *pstClassifierEntry = NULL;
|
||||
/* VOID *pvPhsContext = NULL; */
|
||||
@@ -365,7 +365,7 @@ static inline VOID CopyClassifierRuleToSF(PMINI_ADAPTER Adapter, stConvergenceSL
|
||||
/*
|
||||
* @ingroup ctrl_pkt_functions
|
||||
*/
|
||||
static inline VOID DeleteClassifierRuleFromSF(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex, UINT nClassifierIndex)
|
||||
static inline VOID DeleteClassifierRuleFromSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex, UINT nClassifierIndex)
|
||||
{
|
||||
struct bcm_classifier_rule *pstClassifierEntry = NULL;
|
||||
B_UINT16 u16PacketClassificationRuleIndex;
|
||||
@@ -396,7 +396,7 @@ static inline VOID DeleteClassifierRuleFromSF(PMINI_ADAPTER Adapter, UINT uiSear
|
||||
/*
|
||||
* @ingroup ctrl_pkt_functions
|
||||
*/
|
||||
VOID DeleteAllClassifiersForSF(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex)
|
||||
VOID DeleteAllClassifiersForSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex)
|
||||
{
|
||||
struct bcm_classifier_rule *pstClassifierEntry = NULL;
|
||||
int i;
|
||||
@@ -428,7 +428,7 @@ VOID DeleteAllClassifiersForSF(PMINI_ADAPTER Adapter, UINT uiSearchRuleIndex)
|
||||
* related data into the Adapter structure.
|
||||
* @ingroup ctrl_pkt_functions
|
||||
*/
|
||||
static VOID CopyToAdapter(register PMINI_ADAPTER Adapter, /* <Pointer to the Adapter structure */
|
||||
static VOID CopyToAdapter(register struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */
|
||||
register pstServiceFlowParamSI psfLocalSet, /* <Pointer to the ServiceFlowParamSI structure */
|
||||
register UINT uiSearchRuleIndex, /* <Index of Queue, to which this data belongs */
|
||||
register UCHAR ucDsxType,
|
||||
@@ -836,7 +836,7 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
|
||||
int nIndex;
|
||||
stLocalSFAddIndicationAlt *pstAddIndication;
|
||||
UINT nCurClassifierCnt;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
|
||||
pstAddIndication = (stLocalSFAddIndicationAlt *)pvBuffer;
|
||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "======>");
|
||||
@@ -1325,7 +1325,7 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
|
||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " bValid: 0x%X", pstAddIndication->sfActiveSet.bValid);
|
||||
}
|
||||
|
||||
static inline ULONG RestoreSFParam(PMINI_ADAPTER Adapter, ULONG ulAddrSFParamSet, PUCHAR pucDestBuffer)
|
||||
static inline ULONG RestoreSFParam(struct bcm_mini_adapter *Adapter, ULONG ulAddrSFParamSet, PUCHAR pucDestBuffer)
|
||||
{
|
||||
UINT nBytesToRead = sizeof(stServiceFlowParamSI);
|
||||
|
||||
@@ -1342,7 +1342,7 @@ static inline ULONG RestoreSFParam(PMINI_ADAPTER Adapter, ULONG ulAddrSFParamSet
|
||||
return 1;
|
||||
}
|
||||
|
||||
static ULONG StoreSFParam(PMINI_ADAPTER Adapter, PUCHAR pucSrcBuffer, ULONG ulAddrSFParamSet)
|
||||
static ULONG StoreSFParam(struct bcm_mini_adapter *Adapter, PUCHAR pucSrcBuffer, ULONG ulAddrSFParamSet)
|
||||
{
|
||||
UINT nBytesToWrite = sizeof(stServiceFlowParamSI);
|
||||
int ret = 0;
|
||||
@@ -1358,7 +1358,7 @@ static ULONG StoreSFParam(PMINI_ADAPTER Adapter, PUCHAR pucSrcBuffer, ULONG ulAd
|
||||
return 1;
|
||||
}
|
||||
|
||||
ULONG StoreCmControlResponseMessage(PMINI_ADAPTER Adapter, PVOID pvBuffer, UINT *puBufferLength)
|
||||
ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer, UINT *puBufferLength)
|
||||
{
|
||||
stLocalSFAddIndicationAlt *pstAddIndicationAlt = NULL;
|
||||
stLocalSFAddIndication *pstAddIndication = NULL;
|
||||
@@ -1473,7 +1473,7 @@ ULONG StoreCmControlResponseMessage(PMINI_ADAPTER Adapter, PVOID pvBuffer, UINT
|
||||
}
|
||||
|
||||
static inline stLocalSFAddIndicationAlt
|
||||
*RestoreCmControlResponseMessage(register PMINI_ADAPTER Adapter, register PVOID pvBuffer)
|
||||
*RestoreCmControlResponseMessage(register struct bcm_mini_adapter *Adapter, register PVOID pvBuffer)
|
||||
{
|
||||
ULONG ulStatus = 0;
|
||||
stLocalSFAddIndication *pstAddIndication = NULL;
|
||||
@@ -1551,7 +1551,7 @@ failed_restore_sf_param:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ULONG SetUpTargetDsxBuffers(PMINI_ADAPTER Adapter)
|
||||
ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
ULONG ulTargetDsxBuffersBase = 0;
|
||||
ULONG ulCntTargetBuffers;
|
||||
@@ -1598,7 +1598,7 @@ ULONG SetUpTargetDsxBuffers(PMINI_ADAPTER Adapter)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter, B_UINT16 tid)
|
||||
static ULONG GetNextTargetBufferLocation(struct bcm_mini_adapter *Adapter, B_UINT16 tid)
|
||||
{
|
||||
ULONG ulTargetDSXBufferAddress;
|
||||
ULONG ulTargetDsxBufferIndexToUse, ulMaxTry;
|
||||
@@ -1632,7 +1632,7 @@ static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter, B_UINT16 tid)
|
||||
return ulTargetDSXBufferAddress;
|
||||
}
|
||||
|
||||
int AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter)
|
||||
int AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
/*
|
||||
* Need to Allocate memory to contain the SUPER Large structures
|
||||
@@ -1645,7 +1645,7 @@ int AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter)
|
||||
int FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
kfree(Adapter->caDsxReqResp);
|
||||
return 0;
|
||||
@@ -1657,7 +1657,7 @@ int FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter)
|
||||
* for the Connection Management.
|
||||
* @return - Queue index for the free SFID else returns Invalid Index.
|
||||
*/
|
||||
BOOLEAN CmControlResponseMessage(PMINI_ADAPTER Adapter, /* <Pointer to the Adapter structure */
|
||||
BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, /* <Pointer to the Adapter structure */
|
||||
PVOID pvBuffer /* Starting Address of the Buffer, that contains the AddIndication Data */)
|
||||
{
|
||||
stServiceFlowParamSI *psfLocalSet = NULL;
|
||||
@@ -1915,7 +1915,7 @@ BOOLEAN CmControlResponseMessage(PMINI_ADAPTER Adapter, /* <Pointer to the Adap
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int get_dsx_sf_data_to_application(PMINI_ADAPTER Adapter, UINT uiSFId, void __user *user_buffer)
|
||||
int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user *user_buffer)
|
||||
{
|
||||
int status = 0;
|
||||
struct bcm_packet_info *psSfInfo = NULL;
|
||||
@@ -1937,7 +1937,7 @@ int get_dsx_sf_data_to_application(PMINI_ADAPTER Adapter, UINT uiSFId, void __us
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
VOID OverrideServiceFlowParams(PMINI_ADAPTER Adapter, PUINT puiBuffer)
|
||||
VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter, PUINT puiBuffer)
|
||||
{
|
||||
B_UINT32 u32NumofSFsinMsg = ntohl(*(puiBuffer + 1));
|
||||
stIM_SFHostNotify *pHostInfo = NULL;
|
||||
|
||||
@@ -148,14 +148,14 @@ typedef struct stLocalSFChangeIndicationAlt{
|
||||
|
||||
}stLocalSFChangeIndicationAlt;
|
||||
|
||||
ULONG StoreCmControlResponseMessage(PMINI_ADAPTER Adapter,PVOID pvBuffer,UINT *puBufferLength);
|
||||
ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer,UINT *puBufferLength);
|
||||
|
||||
INT AllocAdapterDsxBuffer(PMINI_ADAPTER Adapter);
|
||||
INT AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
INT FreeAdapterDsxBuffer(PMINI_ADAPTER Adapter);
|
||||
ULONG SetUpTargetDsxBuffers(PMINI_ADAPTER Adapter);
|
||||
INT FreeAdapterDsxBuffer(struct bcm_mini_adapter *Adapter);
|
||||
ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
BOOLEAN CmControlResponseMessage(PMINI_ADAPTER Adapter,PVOID pvBuffer);
|
||||
BOOLEAN CmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBuffer);
|
||||
|
||||
|
||||
#pragma pack (pop)
|
||||
|
||||
@@ -772,7 +772,7 @@ static struct bcm_ddr_setting asT3LPB_DDRSetting80MHz[]= {// # DPLL Clock Settin
|
||||
};
|
||||
|
||||
|
||||
int ddr_init(MINI_ADAPTER *Adapter)
|
||||
int ddr_init(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
struct bcm_ddr_setting *psDDRSetting=NULL;
|
||||
ULONG RegCount=0;
|
||||
@@ -1099,7 +1099,7 @@ int ddr_init(MINI_ADAPTER *Adapter)
|
||||
return retval;
|
||||
}
|
||||
|
||||
int download_ddr_settings(PMINI_ADAPTER Adapter)
|
||||
int download_ddr_settings(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
struct bcm_ddr_setting *psDDRSetting=NULL;
|
||||
ULONG RegCount=0;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
|
||||
int ddr_init(PMINI_ADAPTER psAdapter);
|
||||
int download_ddr_settings(PMINI_ADAPTER psAdapter);
|
||||
int ddr_init(struct bcm_mini_adapter *psAdapter);
|
||||
int download_ddr_settings(struct bcm_mini_adapter *psAdapter);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* Enqueue the control packet for Application.
|
||||
* @return None
|
||||
*/
|
||||
static VOID handle_rx_control_packet(PMINI_ADAPTER Adapter, struct sk_buff *skb)
|
||||
static VOID handle_rx_control_packet(struct bcm_mini_adapter *Adapter, struct sk_buff *skb)
|
||||
{
|
||||
struct bcm_tarang_data *pTarang = NULL;
|
||||
BOOLEAN HighPriorityMessage = FALSE;
|
||||
@@ -154,7 +154,7 @@ static VOID handle_rx_control_packet(PMINI_ADAPTER Adapter, struct sk_buff *skb)
|
||||
* @ingroup ctrl_pkt_functions
|
||||
* Thread to handle control pkt reception
|
||||
*/
|
||||
int control_packet_handler(PMINI_ADAPTER Adapter /* pointer to adapter object*/)
|
||||
int control_packet_handler(struct bcm_mini_adapter *Adapter /* pointer to adapter object*/)
|
||||
{
|
||||
struct sk_buff *ctrl_packet = NULL;
|
||||
unsigned long flags = 0;
|
||||
@@ -213,7 +213,7 @@ int control_packet_handler(PMINI_ADAPTER Adapter /* pointer to adapter object*/)
|
||||
|
||||
INT flushAllAppQ(void)
|
||||
{
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_tarang_data *pTarang = NULL;
|
||||
struct sk_buff *PacketToDrop = NULL;
|
||||
for (pTarang = Adapter->pTarangs; pTarang; pTarang = pTarang->next) {
|
||||
|
||||
@@ -12,7 +12,7 @@ static UCHAR *GetNextIPV6ChainedHeader(UCHAR **ppucPayload,
|
||||
UCHAR *pucRetHeaderPtr = NULL;
|
||||
UCHAR *pucPayloadPtr = NULL;
|
||||
USHORT usNextHeaderOffset = 0 ;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
|
||||
if ((ppucPayload == NULL) || (*pusPayloadLength == 0) ||
|
||||
(*bParseDone)) {
|
||||
@@ -147,7 +147,7 @@ static UCHAR GetIpv6ProtocolPorts(UCHAR *pucPayload, USHORT *pusSrcPort,
|
||||
BOOLEAN bDone = FALSE;
|
||||
UCHAR ucHeaderType = 0;
|
||||
UCHAR *pucNextHeader = NULL;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
|
||||
if (!pucPayload || (usPayloadLength == 0))
|
||||
return 0;
|
||||
@@ -177,10 +177,10 @@ static UCHAR GetIpv6ProtocolPorts(UCHAR *pucPayload, USHORT *pusSrcPort,
|
||||
|
||||
|
||||
/*
|
||||
* Arg 1 PMINI_ADAPTER Adapter is a pointer ot the driver contorl structure
|
||||
* Arg 1 struct bcm_mini_adapter *Adapter is a pointer ot the driver contorl structure
|
||||
* Arg 2 PVOID pcIpHeader is a pointer to the IP header of the packet
|
||||
*/
|
||||
USHORT IpVersion6(PMINI_ADAPTER Adapter, PVOID pcIpHeader,
|
||||
USHORT IpVersion6(struct bcm_mini_adapter *Adapter, PVOID pcIpHeader,
|
||||
struct bcm_classifier_rule *pstClassifierRule)
|
||||
{
|
||||
USHORT ushDestPort = 0;
|
||||
@@ -295,7 +295,7 @@ static BOOLEAN MatchSrcIpv6Address(struct bcm_classifier_rule *pstClassifierRule
|
||||
UINT uiIpv6AddIndex = 0;
|
||||
UINT uiIpv6AddrNoLongWords = 4;
|
||||
ULONG aulSrcIP[4];
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
/*
|
||||
* This is the no. of Src Addresses ie Range of IP Addresses contained
|
||||
* in the classifier rule for which we need to match
|
||||
@@ -351,7 +351,7 @@ static BOOLEAN MatchDestIpv6Address(struct bcm_classifier_rule *pstClassifierRul
|
||||
UINT uiIpv6AddIndex = 0;
|
||||
UINT uiIpv6AddrNoLongWords = 4;
|
||||
ULONG aulDestIP[4];
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
/*
|
||||
* This is the no. of Destination Addresses
|
||||
* ie Range of IP Addresses contained in the classifier rule
|
||||
@@ -406,7 +406,7 @@ VOID DumpIpv6Address(ULONG *puIpv6Address)
|
||||
{
|
||||
UINT uiIpv6AddrNoLongWords = 4;
|
||||
UINT uiIpv6AddIndex = 0;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
for (uiIpv6AddIndex = 0; uiIpv6AddIndex < uiIpv6AddrNoLongWords; uiIpv6AddIndex++) {
|
||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, DBG_LVL_ALL,
|
||||
":%lx", puIpv6Address[uiIpv6AddIndex]);
|
||||
@@ -418,7 +418,7 @@ static VOID DumpIpv6Header(IPV6Header *pstIpv6Header)
|
||||
{
|
||||
UCHAR ucVersion;
|
||||
UCHAR ucPrio;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, DBG_LVL_ALL,
|
||||
"----Ipv6 Header---");
|
||||
ucVersion = pstIpv6Header->ucVersionPrio & 0xf0;
|
||||
|
||||
@@ -102,7 +102,7 @@ typedef enum _E_IPADDR_CONTEXT
|
||||
|
||||
//Function Prototypes
|
||||
|
||||
USHORT IpVersion6(PMINI_ADAPTER Adapter, /**< Pointer to the driver control structure */
|
||||
USHORT IpVersion6(struct bcm_mini_adapter *Adapter, /**< Pointer to the driver control structure */
|
||||
PVOID pcIpHeader, /**<Pointer to the IP Hdr of the packet*/
|
||||
struct bcm_classifier_rule *pstClassifierRule );
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ typedef struct _S_INTERFACE_ADAPTER
|
||||
atomic_t uNumRcbUsed;
|
||||
atomic_t uCurrRcb;
|
||||
|
||||
PMINI_ADAPTER psAdapter;
|
||||
struct bcm_mini_adapter *psAdapter;
|
||||
BOOLEAN bFlashBoot;
|
||||
BOOLEAN bHighSpeedDevice ;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ int InterfaceFileDownload(PVOID arg, struct file *flp, unsigned int on_chip_loc)
|
||||
int errno = 0, len = 0; /* ,is_config_file = 0 */
|
||||
loff_t pos = 0;
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)arg;
|
||||
/* PMINI_ADAPTER Adapter = psIntfAdapter->psAdapter; */
|
||||
/* struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter; */
|
||||
char *buff = kmalloc(MAX_TRANSFER_CTRL_BYTE_USB, GFP_KERNEL);
|
||||
|
||||
if (!buff)
|
||||
@@ -132,7 +132,7 @@ exit:
|
||||
return Status;
|
||||
}
|
||||
|
||||
static int bcm_download_config_file(PMINI_ADAPTER Adapter, struct bcm_firmware_info *psFwInfo)
|
||||
static int bcm_download_config_file(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo)
|
||||
{
|
||||
int retval = STATUS_SUCCESS;
|
||||
B_UINT32 value = 0;
|
||||
@@ -208,7 +208,7 @@ static int bcm_download_config_file(PMINI_ADAPTER Adapter, struct bcm_firmware_i
|
||||
static int bcm_compare_buff_contents(unsigned char *readbackbuff, unsigned char *buff, unsigned int len)
|
||||
{
|
||||
int retval = STATUS_SUCCESS;
|
||||
PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||
if ((len-sizeof(unsigned int)) < 4) {
|
||||
if (memcmp(readbackbuff , buff, len))
|
||||
retval = -EINVAL;
|
||||
@@ -229,7 +229,7 @@ static int bcm_compare_buff_contents(unsigned char *readbackbuff, unsigned char
|
||||
return retval;
|
||||
}
|
||||
|
||||
int bcm_ioctl_fw_download(PMINI_ADAPTER Adapter, struct bcm_firmware_info *psFwInfo)
|
||||
int bcm_ioctl_fw_download(struct bcm_mini_adapter *Adapter, struct bcm_firmware_info *psFwInfo)
|
||||
{
|
||||
int retval = STATUS_SUCCESS;
|
||||
PUCHAR buff = NULL;
|
||||
@@ -278,7 +278,7 @@ error:
|
||||
return retval;
|
||||
}
|
||||
|
||||
static INT buffDnld(PMINI_ADAPTER Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress)
|
||||
static INT buffDnld(struct bcm_mini_adapter *Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress)
|
||||
{
|
||||
unsigned int len = 0;
|
||||
int retval = STATUS_SUCCESS;
|
||||
@@ -299,7 +299,7 @@ static INT buffDnld(PMINI_ADAPTER Adapter, PUCHAR mappedbuffer, UINT u32Firmware
|
||||
return retval;
|
||||
}
|
||||
|
||||
static INT buffRdbkVerify(PMINI_ADAPTER Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress)
|
||||
static INT buffRdbkVerify(struct bcm_mini_adapter *Adapter, PUCHAR mappedbuffer, UINT u32FirmwareLength, ULONG u32StartingAddress)
|
||||
{
|
||||
UINT len = u32FirmwareLength;
|
||||
INT retval = STATUS_SUCCESS;
|
||||
@@ -334,7 +334,7 @@ static INT buffRdbkVerify(PMINI_ADAPTER Adapter, PUCHAR mappedbuffer, UINT u32Fi
|
||||
return retval;
|
||||
}
|
||||
|
||||
INT buffDnldVerify(PMINI_ADAPTER Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, unsigned long u32StartingAddress)
|
||||
INT buffDnldVerify(struct bcm_mini_adapter *Adapter, unsigned char *mappedbuffer, unsigned int u32FirmwareLength, unsigned long u32StartingAddress)
|
||||
{
|
||||
INT status = STATUS_SUCCESS;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Description: This is the hardware specific Function for waking up HW device fr
|
||||
A software abort pattern is written to the device to wake it and necessary power state
|
||||
transitions from host are performed here.
|
||||
|
||||
Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context
|
||||
Input parameters: IN struct bcm_mini_adapter *Adapter - Miniport Adapter Context
|
||||
|
||||
|
||||
Return: BCM_STATUS_SUCCESS - If Wakeup of the HW Interface was successful.
|
||||
@@ -22,7 +22,7 @@ Description: This is the hardware specific Function for responding to Idle mod
|
||||
Necessary power state transitions from host for idle mode or other device specific
|
||||
initializations are performed here.
|
||||
|
||||
Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context
|
||||
Input parameters: IN struct bcm_mini_adapter * Adapter - Miniport Adapter Context
|
||||
|
||||
|
||||
Return: BCM_STATUS_SUCCESS - If Idle mode response related HW configuration was successful.
|
||||
@@ -42,7 +42,7 @@ send to f/w with in 200 ms after the Idle/Shutdown req issued
|
||||
*/
|
||||
|
||||
|
||||
int InterfaceIdleModeRespond(PMINI_ADAPTER Adapter, unsigned int* puiBuffer)
|
||||
int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, unsigned int* puiBuffer)
|
||||
{
|
||||
int status = STATUS_SUCCESS;
|
||||
unsigned int uiRegRead = 0;
|
||||
@@ -147,7 +147,7 @@ int InterfaceIdleModeRespond(PMINI_ADAPTER Adapter, unsigned int* puiBuffer)
|
||||
return status;
|
||||
}
|
||||
|
||||
static int InterfaceAbortIdlemode(PMINI_ADAPTER Adapter, unsigned int Pattern)
|
||||
static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned int Pattern)
|
||||
{
|
||||
int status = STATUS_SUCCESS;
|
||||
unsigned int value;
|
||||
@@ -246,7 +246,7 @@ static int InterfaceAbortIdlemode(PMINI_ADAPTER Adapter, unsigned int Pattern)
|
||||
}
|
||||
return status;
|
||||
}
|
||||
int InterfaceIdleModeWakeup(PMINI_ADAPTER Adapter)
|
||||
int InterfaceIdleModeWakeup(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
ULONG Status = 0;
|
||||
if(Adapter->bTriedToWakeUpFromlowPowerMode)
|
||||
@@ -263,7 +263,7 @@ int InterfaceIdleModeWakeup(PMINI_ADAPTER Adapter)
|
||||
return Status;
|
||||
}
|
||||
|
||||
void InterfaceHandleShutdownModeWakeup(PMINI_ADAPTER Adapter)
|
||||
void InterfaceHandleShutdownModeWakeup(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
unsigned int uiRegVal = 0;
|
||||
INT Status = 0;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#ifndef _INTERFACE_IDLEMODE_H
|
||||
#define _INTERFACE_IDLEMODE_H
|
||||
|
||||
INT InterfaceIdleModeWakeup(PMINI_ADAPTER Adapter);
|
||||
INT InterfaceIdleModeWakeup(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
INT InterfaceIdleModeRespond(PMINI_ADAPTER Adapter, unsigned int *puiBuffer);
|
||||
INT InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, unsigned int *puiBuffer);
|
||||
|
||||
VOID InterfaceWriteIdleModeWakePattern(PMINI_ADAPTER Adapter);
|
||||
VOID InterfaceWriteIdleModeWakePattern(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
INT InterfaceWakeUp(PMINI_ADAPTER Adapter);
|
||||
INT InterfaceWakeUp(struct bcm_mini_adapter * Adapter);
|
||||
|
||||
VOID InterfaceHandleShutdownModeWakeup(PMINI_ADAPTER Adapter);
|
||||
VOID InterfaceHandleShutdownModeWakeup(struct bcm_mini_adapter *Adapter);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ static void InterfaceAdapterFree(PS_INTERFACE_ADAPTER psIntfAdapter)
|
||||
AdapterFree(psIntfAdapter->psAdapter);
|
||||
}
|
||||
|
||||
static void ConfigureEndPointTypesThroughEEPROM(PMINI_ADAPTER Adapter)
|
||||
static void ConfigureEndPointTypesThroughEEPROM(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
unsigned long ulReg = 0;
|
||||
int bytes;
|
||||
@@ -143,12 +143,12 @@ static int usbbcm_device_probe(struct usb_interface *intf, const struct usb_devi
|
||||
{
|
||||
struct usb_device *udev = interface_to_usbdev(intf);
|
||||
int retval;
|
||||
PMINI_ADAPTER psAdapter;
|
||||
struct bcm_mini_adapter *psAdapter;
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter;
|
||||
struct net_device *ndev;
|
||||
|
||||
/* Reserve one extra queue for the bit-bucket */
|
||||
ndev = alloc_etherdev_mq(sizeof(MINI_ADAPTER), NO_OF_QUEUES+1);
|
||||
ndev = alloc_etherdev_mq(sizeof(struct bcm_mini_adapter), NO_OF_QUEUES+1);
|
||||
if (ndev == NULL) {
|
||||
dev_err(&udev->dev, DRV_NAME ": no memory for device\n");
|
||||
return -ENOMEM;
|
||||
@@ -257,7 +257,7 @@ static int usbbcm_device_probe(struct usb_interface *intf, const struct usb_devi
|
||||
static void usbbcm_disconnect(struct usb_interface *intf)
|
||||
{
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter = usb_get_intfdata(intf);
|
||||
PMINI_ADAPTER psAdapter;
|
||||
struct bcm_mini_adapter *psAdapter;
|
||||
struct usb_device *udev = interface_to_usbdev(intf);
|
||||
|
||||
if (psIntfAdapter == NULL)
|
||||
|
||||
@@ -5,7 +5,7 @@ static void read_int_callback(struct urb *urb/*, struct pt_regs *regs*/)
|
||||
{
|
||||
int status = urb->status;
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)urb->context;
|
||||
PMINI_ADAPTER Adapter = psIntfAdapter->psAdapter ;
|
||||
struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter ;
|
||||
|
||||
if (netif_msg_intr(Adapter))
|
||||
pr_info(PFX "%s: interrupt status %d\n",
|
||||
|
||||
@@ -7,9 +7,9 @@ int CreateInterruptUrb(PS_INTERFACE_ADAPTER psIntfAdapter);
|
||||
INT StartInterruptUrb(PS_INTERFACE_ADAPTER psIntfAdapter);
|
||||
|
||||
|
||||
VOID InterfaceEnableInterrupt(PMINI_ADAPTER Adapter);
|
||||
VOID InterfaceEnableInterrupt(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
VOID InterfaceDisableInterrupt(PMINI_ADAPTER Adapter);
|
||||
VOID InterfaceDisableInterrupt(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ INT BcmWRM(PVOID arg,
|
||||
return InterfaceWRM((PS_INTERFACE_ADAPTER)arg, addr, buff, len);
|
||||
}
|
||||
|
||||
INT Bcm_clear_halt_of_endpoints(PMINI_ADAPTER Adapter)
|
||||
INT Bcm_clear_halt_of_endpoints(struct bcm_mini_adapter *Adapter)
|
||||
{
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)(Adapter->pvInterfaceAdapter);
|
||||
INT status = STATUS_SUCCESS;
|
||||
|
||||
@@ -33,7 +33,7 @@ int BcmWRM(PVOID arg,
|
||||
PVOID buff,
|
||||
INT len);
|
||||
|
||||
INT Bcm_clear_halt_of_endpoints(PMINI_ADAPTER Adapter);
|
||||
INT Bcm_clear_halt_of_endpoints(struct bcm_mini_adapter *Adapter);
|
||||
|
||||
VOID Bcm_kill_all_URBs(PS_INTERFACE_ADAPTER psIntfAdapter);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "headers.h"
|
||||
|
||||
static int SearchVcid(PMINI_ADAPTER Adapter,unsigned short usVcid)
|
||||
static int SearchVcid(struct bcm_mini_adapter *Adapter,unsigned short usVcid)
|
||||
{
|
||||
int iIndex=0;
|
||||
|
||||
@@ -45,7 +45,7 @@ static void read_bulk_callback(struct urb *urb)
|
||||
//int idleflag = 0 ;
|
||||
PUSB_RCB pRcb = (PUSB_RCB)urb->context;
|
||||
PS_INTERFACE_ADAPTER psIntfAdapter = pRcb->psIntfAdapter;
|
||||
PMINI_ADAPTER Adapter = psIntfAdapter->psAdapter;
|
||||
struct bcm_mini_adapter *Adapter = psIntfAdapter->psAdapter;
|
||||
struct bcm_leader *pLeader = urb->transfer_buffer;
|
||||
|
||||
if (unlikely(netif_msg_rx_status(Adapter)))
|
||||
@@ -232,7 +232,7 @@ Function: InterfaceRx
|
||||
Description: This is the hardware specific Function for Receiving
|
||||
data packet/control packets from the device.
|
||||
|
||||
Input parameters: IN PMINI_ADAPTER Adapter - Miniport Adapter Context
|
||||
Input parameters: IN struct bcm_mini_adapter *Adapter - Miniport Adapter Context
|
||||
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user