{
DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev);
return 0;
-} // wl_init
+} /* wl_init */
/*============================================================================*/
DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev);
DBG_PARAM(DbgInfo, "map", "0x%p", map);
- /* The only thing we care about here is a port change. Since this not needed,
- ignore the request. */
+ /*
+ * The only thing we care about here is a port change.
+ * Since this not needed, ignore the request.
+ */
DBG_TRACE(DbgInfo, "%s: %s called.\n", dev->name, __func__);
return 0;
-} // wl_config
+} /* wl_config */
/*============================================================================*/
struct net_device_stats *pStats;
struct wl_private *lp = wl_priv(dev);
- //DBG_PARAM( DbgInfo, "dev", "%s (0x%p)", dev->name, dev );
+ /*DBG_PARAM( DbgInfo, "dev", "%s (0x%p)", dev->name, dev ); */
pStats = NULL;
wl_unlock(lp, &flags);
return pStats;
-} // wl_stats
+} /* wl_stats */
/*============================================================================*/
status);
}
}
- // Holding the lock too long, make a gap to allow other processes
+
+ /* Holding the lock too long, make a gap to allow other processes */
wl_unlock(lp, &flags);
wl_lock(lp, &flags);
status = wl_apply(lp);
}
- // Holding the lock too long, make a gap to allow other processes
+ /* Holding the lock too long, make a gap to allow other processes */
wl_unlock(lp, &flags);
wl_lock(lp, &flags);
- if (status != HCF_SUCCESS) {
- // Unsuccessful, try reset of the card to recover
+ /* Unsuccessful, try reset of the card to recover */
+ if (status != HCF_SUCCESS)
status = wl_reset(dev);
- }
- // Holding the lock too long, make a gap to allow other processes
+
+ /* Holding the lock too long, make a gap to allow other processes */
wl_unlock(lp, &flags);
wl_lock(lp, &flags);
netif_carrier_on(dev);
WL_WDS_NETIF_CARRIER_ON(lp);
- lp->is_handling_int = WL_HANDLING_INT; // Start handling interrupts
+ /* Start handling interrupts */
+ lp->is_handling_int = WL_HANDLING_INT;
wl_act_int_on(lp);
netif_start_queue(dev);
wl_unlock(lp, &flags);
return status;
-} // wl_open
+} /* wl_open */
/*============================================================================*/
netif_carrier_off(dev);
WL_WDS_NETIF_CARRIER_OFF(lp);
- /* Shutdown the adapter:
- Disable adapter interrupts
- Stop Tx/Rx
- Update statistics
- Set low power mode
+ /*
+ * Shutdown the adapter:
+ * Disable adapter interrupts
+ * Stop Tx/Rx
+ * Update statistics
+ * Set low power mode
*/
wl_lock(lp, &flags);
wl_act_int_off(lp);
- lp->is_handling_int = WL_NOT_HANDLING_INT; // Stop handling interrupts
+ /* Stop handling interrupts */
+ lp->is_handling_int = WL_NOT_HANDLING_INT;
#ifdef USE_RTS
if (lp->useRTS == 1) {
wl_unlock(lp, &flags);
return 0;
-} // wl_close
+} /* wl_close */
/*============================================================================*/
snprintf(info->bus_info, sizeof(info->bus_info),
"PCMCIA FIXME");
}
-} // wl_get_drvinfo
+} /* wl_get_drvinfo */
static struct ethtool_ops wl_ethtool_ops = {
.get_drvinfo = wl_get_drvinfo,
#endif /* USE_UIL */
switch (cmd) {
- // ================== Private IOCTLs (up to 16) ==================
+ /* ================== Private IOCTLs (up to 16) ================== */
#ifdef USE_UIL
case WVLAN2_IOCTL_UIL:
DBG_TRACE(DbgInfo, "IOCTL: WVLAN2_IOCTL_UIL\n");
wl_unlock(lp, &flags);
return ret;
-} // wl_ioctl
+} /* wl_ioctl */
/*============================================================================*/
pStats->tx_errors++;
wl_unlock(lp, &flags);
-} // wl_tx_timeout
+} /* wl_tx_timeout */
/*============================================================================*/
return FALSE;
}
- /* Check for the availability of FIDs; if none are available, don't take any
- frames off the txQ */
- if (lp->hcfCtx.IFB_RscInd == 0) {
+ /*
+ * Check for the availability of FIDs; if none are available,
+ * don't take any frames off the txQ
+ */
+ if (lp->hcfCtx.IFB_RscInd == 0)
return FALSE;
- }
/* Reclaim the TxQ Elements and place them back on the free queue */
if (!list_empty(&(lp->txQ[0]))) {
}
return TRUE;
-} // wl_send
+} /* wl_send */
/*============================================================================*/
wl_act_int_on(lp);
wl_unlock(lp, &flags);
return 0;
-} // wl_tx
+} /* wl_tx */
/*============================================================================*/
}
return 0;
-} // wl_rx
+} /* wl_rx */
/*============================================================================*/
void wl_multicast(struct net_device *dev)
{
-#if 1 //;? (HCF_TYPE) & HCF_TYPE_STA //;?should we return an error status in AP mode
-//;?seems reasonable that even an AP-only driver could afford this small additional footprint
+#if 1 /* (HCF_TYPE) & HCF_TYPE_STA */
+ /*
+ * should we return an error status in AP mode ?
+ * seems reasonable that even an AP-only driver
+ * could afford this small additional footprint
+ */
int x;
struct netdev_hw_addr *ha;
hcf_put_info(&(lp->hcfCtx),
(LTVP) & (lp->ltvRecord));
- /* Turning on this filter will prevent all multicast frames from
- being sent up from the device; however, this is a static RID,
- so a call to wl_apply() is needed */
+ /*
+ * Turning on this filter will prevent all multicast frames from
+ * being sent up from the device; however, this is a static RID,
+ * so a call to wl_apply() is needed
+ */
lp->ltvRecord.len = 2;
lp->ltvRecord.typ = CFG_CNF_RX_ALL_GROUP_ADDR;
lp->ltvRecord.u.u16[0] = CNV_INT_TO_LITTLE(1);
wl_unlock(lp, &flags);
}
#endif /* HCF_STA */
-} // wl_multicast
+} /* wl_multicast */
/*============================================================================*/
DBG_PARAM(DbgInfo, "addrs", "0x%p", addrs);
#error Obsolete set multicast interface!
-} // wl_multicast
+} /* wl_multicast */
/*============================================================================*/
if (!dev)
return NULL;
- /* Initialize the 'next' pointer in the struct. Currently only used for PCI,
- but do it here just in case it's used for other buses in the future */
+ /*
+ * Initialize the 'next' pointer in the struct.
+ * Currently only used for PCI,
+ * but do it here just in case it's used
+ * for other buses in the future
+ */
lp = wl_priv(dev);
/* Check MTU */
WL_WDS_DEVICE_ALLOC(lp);
return dev;
-} // wl_device_alloc
+} /* wl_device_alloc */
/*============================================================================*/
WL_WDS_DEVICE_DEALLOC(lp);
free_netdev(dev);
-} // wl_device_dealloc
+} /* wl_device_dealloc */
/*============================================================================*/
#ifdef ENABLE_DMA
return wl_tx_dma(skb, dev, HCF_PORT_0);
#endif
-} // wl_tx_port0
+} /* wl_tx_port0i */
/*============================================================================*/
{
DBG_TX(DbgInfo, "Tx on Port 1\n");
return wl_tx(skb, dev, HCF_PORT_1);
-} // wl_tx_port1
+} /* wl_tx_port1 */
/*============================================================================*/
{
DBG_TX(DbgInfo, "Tx on Port 2\n");
return wl_tx(skb, dev, HCF_PORT_2);
-} // wl_tx_port2
+} /* wl_tx_port2 */
/*============================================================================*/
{
DBG_TX(DbgInfo, "Tx on Port 3\n");
return wl_tx(skb, dev, HCF_PORT_3);
-} // wl_tx_port3
+} /* wl_tx_port3 */
/*============================================================================*/
{
DBG_TX(DbgInfo, "Tx on Port 4\n");
return wl_tx(skb, dev, HCF_PORT_4);
-} // wl_tx_port4
+} /* wl_tx_port4 */
/*============================================================================*/
{
DBG_TX(DbgInfo, "Tx on Port 5\n");
return wl_tx(skb, dev, HCF_PORT_5);
-} // wl_tx_port5
+} /* wl_tx_port5 */
/*============================================================================*/
{
DBG_TX(DbgInfo, "Tx on Port 6\n");
return wl_tx(skb, dev, HCF_PORT_6);
-} // wl_tx_port6
+} /* wl_tx_port6 */
/*============================================================================*/
lp->wds_port[count].dev = dev_wds;
/* Re-use wl_init for all the devices, as it currently does nothing, but
- is required. Re-use the stats/tx_timeout handler for all as well; the
- WDS port which is requesting these operations can be determined by
- the net_device pointer. Set the private member of all devices to point
- to the same net_device struct; that way, all information gets
- funnelled through the one "real" net_device. Name the WDS ports
- "wds<n>" */
+ * is required. Re-use the stats/tx_timeout handler for all as well; the
+ * WDS port which is requesting these operations can be determined by
+ * the net_device pointer. Set the private member of all devices to point
+ * to the same net_device struct; that way, all information gets
+ * funnelled through the one "real" net_device. Name the WDS ports
+ * "wds<n>"
+ * */
lp->wds_port[count].dev->init = &wl_init;
lp->wds_port[count].dev->get_stats = &wl_stats;
lp->wds_port[count].dev->tx_timeout = &wl_tx_timeout;
lp->wds_port[5].dev->hard_start_xmit = &wl_tx_port6;
WL_WDS_NETIF_STOP_QUEUE(lp);
-} // wl_wds_device_alloc
+} /* wl_wds_device_alloc */
/*============================================================================*/
lp->wds_port[count].dev = NULL;
}
}
-} // wl_wds_device_dealloc
+} /* wl_wds_device_dealloc */
/*============================================================================*/
}
}
}
-} // wl_wds_netif_start_queue
+} /* wl_wds_netif_start_queue */
/*============================================================================*/
}
}
}
-} // wl_wds_netif_stop_queue
+} /* wl_wds_netif_stop_queue */
/*============================================================================*/
}
}
}
-} // wl_wds_netif_wake_queue
+} /* wl_wds_netif_wake_queue */
/*============================================================================*/
}
}
}
-} // wl_wds_netif_carrier_on
+} /* wl_wds_netif_carrier_on */
/*============================================================================*/
}
}
-} // wl_wds_netif_carrier_off
+} /* wl_wds_netif_carrier_off */
/*============================================================================*/
dev_kfree_skb(skb);
return TRUE;
-} // wl_send_dma
+} /* wl_send_dma */
/*============================================================================*/
}
#endif /* USE_RTS */
- //if( lp->dma.status == 0 )
- //{
+ /*
+ *if( lp->dma.status == 0 )
+ *{
+ */
desc = hcf_dma_rx_get(&(lp->hcfCtx));
if (desc != NULL) {
}
}
}
- //}
+ /*}*/
}
return 0;
-} // wl_rx_dma
+} /* wl_rx_dma */
/*============================================================================*/
-#endif // ENABLE_DMA
+#endif /* ENABLE_DMA */