diff options
Diffstat (limited to 'drivers/net/skfp/skfddi.c')
-rw-r--r-- | drivers/net/skfp/skfddi.c | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 31b2dabf094c..16c62659cdd9 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * The driver architecture is based on the DEC FDDI driver by | 33 | * The driver architecture is based on the DEC FDDI driver by |
34 | * Lawrence V. Stefani and several ethernet drivers. | 34 | * Lawrence V. Stefani and several ethernet drivers. |
35 | * I also used an existing Windows NT miniport driver. | 35 | * I also used an existing Windows NT miniport driver. |
36 | * All hardware dependent fuctions are handled by the SysKonnect | 36 | * All hardware dependent functions are handled by the SysKonnect |
37 | * Hardware Module. | 37 | * Hardware Module. |
38 | * The only headerfiles that are directly related to this source | 38 | * The only headerfiles that are directly related to this source |
39 | * are skfddi.c, h/types.h, h/osdef1st.h, h/targetos.h. | 39 | * are skfddi.c, h/types.h, h/osdef1st.h, h/targetos.h. |
@@ -209,7 +209,7 @@ static int skfp_init_one(struct pci_dev *pdev, | |||
209 | void __iomem *mem; | 209 | void __iomem *mem; |
210 | int err; | 210 | int err; |
211 | 211 | ||
212 | pr_debug(KERN_INFO "entering skfp_init_one\n"); | 212 | pr_debug("entering skfp_init_one\n"); |
213 | 213 | ||
214 | if (num_boards == 0) | 214 | if (num_boards == 0) |
215 | printk("%s\n", boot_msg); | 215 | printk("%s\n", boot_msg); |
@@ -385,7 +385,7 @@ static int skfp_driver_init(struct net_device *dev) | |||
385 | skfddi_priv *bp = &smc->os; | 385 | skfddi_priv *bp = &smc->os; |
386 | int err = -EIO; | 386 | int err = -EIO; |
387 | 387 | ||
388 | pr_debug(KERN_INFO "entering skfp_driver_init\n"); | 388 | pr_debug("entering skfp_driver_init\n"); |
389 | 389 | ||
390 | // set the io address in private structures | 390 | // set the io address in private structures |
391 | bp->base_addr = dev->base_addr; | 391 | bp->base_addr = dev->base_addr; |
@@ -405,14 +405,14 @@ static int skfp_driver_init(struct net_device *dev) | |||
405 | 405 | ||
406 | // Determine the required size of the 'shared' memory area. | 406 | // Determine the required size of the 'shared' memory area. |
407 | bp->SharedMemSize = mac_drv_check_space(); | 407 | bp->SharedMemSize = mac_drv_check_space(); |
408 | pr_debug(KERN_INFO "Memory for HWM: %ld\n", bp->SharedMemSize); | 408 | pr_debug("Memory for HWM: %ld\n", bp->SharedMemSize); |
409 | if (bp->SharedMemSize > 0) { | 409 | if (bp->SharedMemSize > 0) { |
410 | bp->SharedMemSize += 16; // for descriptor alignment | 410 | bp->SharedMemSize += 16; // for descriptor alignment |
411 | 411 | ||
412 | bp->SharedMemAddr = pci_alloc_consistent(&bp->pdev, | 412 | bp->SharedMemAddr = pci_alloc_consistent(&bp->pdev, |
413 | bp->SharedMemSize, | 413 | bp->SharedMemSize, |
414 | &bp->SharedMemDMA); | 414 | &bp->SharedMemDMA); |
415 | if (!bp->SharedMemSize) { | 415 | if (!bp->SharedMemAddr) { |
416 | printk("could not allocate mem for "); | 416 | printk("could not allocate mem for "); |
417 | printk("hardware module: %ld byte\n", | 417 | printk("hardware module: %ld byte\n", |
418 | bp->SharedMemSize); | 418 | bp->SharedMemSize); |
@@ -429,18 +429,18 @@ static int skfp_driver_init(struct net_device *dev) | |||
429 | 429 | ||
430 | card_stop(smc); // Reset adapter. | 430 | card_stop(smc); // Reset adapter. |
431 | 431 | ||
432 | pr_debug(KERN_INFO "mac_drv_init()..\n"); | 432 | pr_debug("mac_drv_init()..\n"); |
433 | if (mac_drv_init(smc) != 0) { | 433 | if (mac_drv_init(smc) != 0) { |
434 | pr_debug(KERN_INFO "mac_drv_init() failed.\n"); | 434 | pr_debug("mac_drv_init() failed\n"); |
435 | goto fail; | 435 | goto fail; |
436 | } | 436 | } |
437 | read_address(smc, NULL); | 437 | read_address(smc, NULL); |
438 | pr_debug(KERN_INFO "HW-Addr: %pMF\n", smc->hw.fddi_canon_addr.a); | 438 | pr_debug("HW-Addr: %pMF\n", smc->hw.fddi_canon_addr.a); |
439 | memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, 6); | 439 | memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, 6); |
440 | 440 | ||
441 | smt_reset_defaults(smc, 0); | 441 | smt_reset_defaults(smc, 0); |
442 | 442 | ||
443 | return (0); | 443 | return 0; |
444 | 444 | ||
445 | fail: | 445 | fail: |
446 | if (bp->SharedMemAddr) { | 446 | if (bp->SharedMemAddr) { |
@@ -485,7 +485,7 @@ static int skfp_open(struct net_device *dev) | |||
485 | struct s_smc *smc = netdev_priv(dev); | 485 | struct s_smc *smc = netdev_priv(dev); |
486 | int err; | 486 | int err; |
487 | 487 | ||
488 | pr_debug(KERN_INFO "entering skfp_open\n"); | 488 | pr_debug("entering skfp_open\n"); |
489 | /* Register IRQ - support shared interrupts by passing device ptr */ | 489 | /* Register IRQ - support shared interrupts by passing device ptr */ |
490 | err = request_irq(dev->irq, skfp_interrupt, IRQF_SHARED, | 490 | err = request_irq(dev->irq, skfp_interrupt, IRQF_SHARED, |
491 | dev->name, dev); | 491 | dev->name, dev); |
@@ -516,7 +516,7 @@ static int skfp_open(struct net_device *dev) | |||
516 | mac_drv_rx_mode(smc, RX_DISABLE_PROMISC); | 516 | mac_drv_rx_mode(smc, RX_DISABLE_PROMISC); |
517 | 517 | ||
518 | netif_start_queue(dev); | 518 | netif_start_queue(dev); |
519 | return (0); | 519 | return 0; |
520 | } // skfp_open | 520 | } // skfp_open |
521 | 521 | ||
522 | 522 | ||
@@ -565,7 +565,7 @@ static int skfp_close(struct net_device *dev) | |||
565 | skb_queue_purge(&bp->SendSkbQueue); | 565 | skb_queue_purge(&bp->SendSkbQueue); |
566 | bp->QueueSkb = MAX_TX_QUEUE_LEN; | 566 | bp->QueueSkb = MAX_TX_QUEUE_LEN; |
567 | 567 | ||
568 | return (0); | 568 | return 0; |
569 | } // skfp_close | 569 | } // skfp_close |
570 | 570 | ||
571 | 571 | ||
@@ -794,7 +794,7 @@ static struct net_device_stats *skfp_ctl_get_stats(struct net_device *dev) | |||
794 | bp->stats.port_lem_cts[1] = bp->cmd_rsp_virt->cntrs_get.cntrs.link_errors[1].ls; | 794 | bp->stats.port_lem_cts[1] = bp->cmd_rsp_virt->cntrs_get.cntrs.link_errors[1].ls; |
795 | 795 | ||
796 | #endif | 796 | #endif |
797 | return ((struct net_device_stats *) &bp->os.MacStat); | 797 | return (struct net_device_stats *)&bp->os.MacStat; |
798 | } // ctl_get_stat | 798 | } // ctl_get_stat |
799 | 799 | ||
800 | 800 | ||
@@ -856,12 +856,12 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) | |||
856 | /* Enable promiscuous mode, if necessary */ | 856 | /* Enable promiscuous mode, if necessary */ |
857 | if (dev->flags & IFF_PROMISC) { | 857 | if (dev->flags & IFF_PROMISC) { |
858 | mac_drv_rx_mode(smc, RX_ENABLE_PROMISC); | 858 | mac_drv_rx_mode(smc, RX_ENABLE_PROMISC); |
859 | pr_debug(KERN_INFO "PROMISCUOUS MODE ENABLED\n"); | 859 | pr_debug("PROMISCUOUS MODE ENABLED\n"); |
860 | } | 860 | } |
861 | /* Else, update multicast address table */ | 861 | /* Else, update multicast address table */ |
862 | else { | 862 | else { |
863 | mac_drv_rx_mode(smc, RX_DISABLE_PROMISC); | 863 | mac_drv_rx_mode(smc, RX_DISABLE_PROMISC); |
864 | pr_debug(KERN_INFO "PROMISCUOUS MODE DISABLED\n"); | 864 | pr_debug("PROMISCUOUS MODE DISABLED\n"); |
865 | 865 | ||
866 | // Reset all MC addresses | 866 | // Reset all MC addresses |
867 | mac_clear_multicast(smc); | 867 | mac_clear_multicast(smc); |
@@ -869,7 +869,7 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) | |||
869 | 869 | ||
870 | if (dev->flags & IFF_ALLMULTI) { | 870 | if (dev->flags & IFF_ALLMULTI) { |
871 | mac_drv_rx_mode(smc, RX_ENABLE_ALLMULTI); | 871 | mac_drv_rx_mode(smc, RX_ENABLE_ALLMULTI); |
872 | pr_debug(KERN_INFO "ENABLE ALL MC ADDRESSES\n"); | 872 | pr_debug("ENABLE ALL MC ADDRESSES\n"); |
873 | } else if (!netdev_mc_empty(dev)) { | 873 | } else if (!netdev_mc_empty(dev)) { |
874 | if (netdev_mc_count(dev) <= FPMAX_MULTICAST) { | 874 | if (netdev_mc_count(dev) <= FPMAX_MULTICAST) { |
875 | /* use exact filtering */ | 875 | /* use exact filtering */ |
@@ -880,18 +880,18 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev) | |||
880 | (struct fddi_addr *)ha->addr, | 880 | (struct fddi_addr *)ha->addr, |
881 | 1); | 881 | 1); |
882 | 882 | ||
883 | pr_debug(KERN_INFO "ENABLE MC ADDRESS: %pMF\n", | 883 | pr_debug("ENABLE MC ADDRESS: %pMF\n", |
884 | ha->addr); | 884 | ha->addr); |
885 | } | 885 | } |
886 | 886 | ||
887 | } else { // more MC addresses than HW supports | 887 | } else { // more MC addresses than HW supports |
888 | 888 | ||
889 | mac_drv_rx_mode(smc, RX_ENABLE_ALLMULTI); | 889 | mac_drv_rx_mode(smc, RX_ENABLE_ALLMULTI); |
890 | pr_debug(KERN_INFO "ENABLE ALL MC ADDRESSES\n"); | 890 | pr_debug("ENABLE ALL MC ADDRESSES\n"); |
891 | } | 891 | } |
892 | } else { // no MC addresses | 892 | } else { // no MC addresses |
893 | 893 | ||
894 | pr_debug(KERN_INFO "DISABLE ALL MC ADDRESSES\n"); | 894 | pr_debug("DISABLE ALL MC ADDRESSES\n"); |
895 | } | 895 | } |
896 | 896 | ||
897 | /* Update adapter filters */ | 897 | /* Update adapter filters */ |
@@ -932,7 +932,7 @@ static int skfp_ctl_set_mac_address(struct net_device *dev, void *addr) | |||
932 | ResetAdapter(smc); | 932 | ResetAdapter(smc); |
933 | spin_unlock_irqrestore(&bp->DriverLock, Flags); | 933 | spin_unlock_irqrestore(&bp->DriverLock, Flags); |
934 | 934 | ||
935 | return (0); /* always return zero */ | 935 | return 0; /* always return zero */ |
936 | } // skfp_ctl_set_mac_address | 936 | } // skfp_ctl_set_mac_address |
937 | 937 | ||
938 | 938 | ||
@@ -1045,7 +1045,7 @@ static netdev_tx_t skfp_send_pkt(struct sk_buff *skb, | |||
1045 | struct s_smc *smc = netdev_priv(dev); | 1045 | struct s_smc *smc = netdev_priv(dev); |
1046 | skfddi_priv *bp = &smc->os; | 1046 | skfddi_priv *bp = &smc->os; |
1047 | 1047 | ||
1048 | pr_debug(KERN_INFO "skfp_send_pkt\n"); | 1048 | pr_debug("skfp_send_pkt\n"); |
1049 | 1049 | ||
1050 | /* | 1050 | /* |
1051 | * Verify that incoming transmit request is OK | 1051 | * Verify that incoming transmit request is OK |
@@ -1114,13 +1114,13 @@ static void send_queued_packets(struct s_smc *smc) | |||
1114 | 1114 | ||
1115 | int frame_status; // HWM tx frame status. | 1115 | int frame_status; // HWM tx frame status. |
1116 | 1116 | ||
1117 | pr_debug(KERN_INFO "send queued packets\n"); | 1117 | pr_debug("send queued packets\n"); |
1118 | for (;;) { | 1118 | for (;;) { |
1119 | // send first buffer from queue | 1119 | // send first buffer from queue |
1120 | skb = skb_dequeue(&bp->SendSkbQueue); | 1120 | skb = skb_dequeue(&bp->SendSkbQueue); |
1121 | 1121 | ||
1122 | if (!skb) { | 1122 | if (!skb) { |
1123 | pr_debug(KERN_INFO "queue empty\n"); | 1123 | pr_debug("queue empty\n"); |
1124 | return; | 1124 | return; |
1125 | } // queue empty ! | 1125 | } // queue empty ! |
1126 | 1126 | ||
@@ -1232,7 +1232,7 @@ static void CheckSourceAddress(unsigned char *frame, unsigned char *hw_addr) | |||
1232 | static void ResetAdapter(struct s_smc *smc) | 1232 | static void ResetAdapter(struct s_smc *smc) |
1233 | { | 1233 | { |
1234 | 1234 | ||
1235 | pr_debug(KERN_INFO "[fddi: ResetAdapter]\n"); | 1235 | pr_debug("[fddi: ResetAdapter]\n"); |
1236 | 1236 | ||
1237 | // Stop the adapter. | 1237 | // Stop the adapter. |
1238 | 1238 | ||
@@ -1278,7 +1278,7 @@ void llc_restart_tx(struct s_smc *smc) | |||
1278 | { | 1278 | { |
1279 | skfddi_priv *bp = &smc->os; | 1279 | skfddi_priv *bp = &smc->os; |
1280 | 1280 | ||
1281 | pr_debug(KERN_INFO "[llc_restart_tx]\n"); | 1281 | pr_debug("[llc_restart_tx]\n"); |
1282 | 1282 | ||
1283 | // Try to send queued packets | 1283 | // Try to send queued packets |
1284 | spin_unlock(&bp->DriverLock); | 1284 | spin_unlock(&bp->DriverLock); |
@@ -1308,21 +1308,21 @@ void *mac_drv_get_space(struct s_smc *smc, unsigned int size) | |||
1308 | { | 1308 | { |
1309 | void *virt; | 1309 | void *virt; |
1310 | 1310 | ||
1311 | pr_debug(KERN_INFO "mac_drv_get_space (%d bytes), ", size); | 1311 | pr_debug("mac_drv_get_space (%d bytes), ", size); |
1312 | virt = (void *) (smc->os.SharedMemAddr + smc->os.SharedMemHeap); | 1312 | virt = (void *) (smc->os.SharedMemAddr + smc->os.SharedMemHeap); |
1313 | 1313 | ||
1314 | if ((smc->os.SharedMemHeap + size) > smc->os.SharedMemSize) { | 1314 | if ((smc->os.SharedMemHeap + size) > smc->os.SharedMemSize) { |
1315 | printk("Unexpected SMT memory size requested: %d\n", size); | 1315 | printk("Unexpected SMT memory size requested: %d\n", size); |
1316 | return (NULL); | 1316 | return NULL; |
1317 | } | 1317 | } |
1318 | smc->os.SharedMemHeap += size; // Move heap pointer. | 1318 | smc->os.SharedMemHeap += size; // Move heap pointer. |
1319 | 1319 | ||
1320 | pr_debug(KERN_INFO "mac_drv_get_space end\n"); | 1320 | pr_debug("mac_drv_get_space end\n"); |
1321 | pr_debug(KERN_INFO "virt addr: %lx\n", (ulong) virt); | 1321 | pr_debug("virt addr: %lx\n", (ulong) virt); |
1322 | pr_debug(KERN_INFO "bus addr: %lx\n", (ulong) | 1322 | pr_debug("bus addr: %lx\n", (ulong) |
1323 | (smc->os.SharedMemDMA + | 1323 | (smc->os.SharedMemDMA + |
1324 | ((char *) virt - (char *)smc->os.SharedMemAddr))); | 1324 | ((char *) virt - (char *)smc->os.SharedMemAddr))); |
1325 | return (virt); | 1325 | return virt; |
1326 | } // mac_drv_get_space | 1326 | } // mac_drv_get_space |
1327 | 1327 | ||
1328 | 1328 | ||
@@ -1349,7 +1349,7 @@ void *mac_drv_get_desc_mem(struct s_smc *smc, unsigned int size) | |||
1349 | 1349 | ||
1350 | char *virt; | 1350 | char *virt; |
1351 | 1351 | ||
1352 | pr_debug(KERN_INFO "mac_drv_get_desc_mem\n"); | 1352 | pr_debug("mac_drv_get_desc_mem\n"); |
1353 | 1353 | ||
1354 | // Descriptor memory must be aligned on 16-byte boundary. | 1354 | // Descriptor memory must be aligned on 16-byte boundary. |
1355 | 1355 | ||
@@ -1363,9 +1363,9 @@ void *mac_drv_get_desc_mem(struct s_smc *smc, unsigned int size) | |||
1363 | 1363 | ||
1364 | if (!mac_drv_get_space(smc, size)) { | 1364 | if (!mac_drv_get_space(smc, size)) { |
1365 | printk("fddi: Unable to align descriptor memory.\n"); | 1365 | printk("fddi: Unable to align descriptor memory.\n"); |
1366 | return (NULL); | 1366 | return NULL; |
1367 | } | 1367 | } |
1368 | return (virt + size); | 1368 | return virt + size; |
1369 | } // mac_drv_get_desc_mem | 1369 | } // mac_drv_get_desc_mem |
1370 | 1370 | ||
1371 | 1371 | ||
@@ -1384,8 +1384,8 @@ void *mac_drv_get_desc_mem(struct s_smc *smc, unsigned int size) | |||
1384 | ************************/ | 1384 | ************************/ |
1385 | unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt) | 1385 | unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt) |
1386 | { | 1386 | { |
1387 | return (smc->os.SharedMemDMA + | 1387 | return smc->os.SharedMemDMA + |
1388 | ((char *) virt - (char *)smc->os.SharedMemAddr)); | 1388 | ((char *) virt - (char *)smc->os.SharedMemAddr); |
1389 | } // mac_drv_virt2phys | 1389 | } // mac_drv_virt2phys |
1390 | 1390 | ||
1391 | 1391 | ||
@@ -1419,8 +1419,8 @@ unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt) | |||
1419 | ************************/ | 1419 | ************************/ |
1420 | u_long dma_master(struct s_smc * smc, void *virt, int len, int flag) | 1420 | u_long dma_master(struct s_smc * smc, void *virt, int len, int flag) |
1421 | { | 1421 | { |
1422 | return (smc->os.SharedMemDMA + | 1422 | return smc->os.SharedMemDMA + |
1423 | ((char *) virt - (char *)smc->os.SharedMemAddr)); | 1423 | ((char *) virt - (char *)smc->os.SharedMemAddr); |
1424 | } // dma_master | 1424 | } // dma_master |
1425 | 1425 | ||
1426 | 1426 | ||
@@ -1493,7 +1493,7 @@ void mac_drv_tx_complete(struct s_smc *smc, volatile struct s_smt_fp_txd *txd) | |||
1493 | { | 1493 | { |
1494 | struct sk_buff *skb; | 1494 | struct sk_buff *skb; |
1495 | 1495 | ||
1496 | pr_debug(KERN_INFO "entering mac_drv_tx_complete\n"); | 1496 | pr_debug("entering mac_drv_tx_complete\n"); |
1497 | // Check if this TxD points to a skb | 1497 | // Check if this TxD points to a skb |
1498 | 1498 | ||
1499 | if (!(skb = txd->txd_os.skb)) { | 1499 | if (!(skb = txd->txd_os.skb)) { |
@@ -1513,7 +1513,7 @@ void mac_drv_tx_complete(struct s_smc *smc, volatile struct s_smt_fp_txd *txd) | |||
1513 | // free the skb | 1513 | // free the skb |
1514 | dev_kfree_skb_irq(skb); | 1514 | dev_kfree_skb_irq(skb); |
1515 | 1515 | ||
1516 | pr_debug(KERN_INFO "leaving mac_drv_tx_complete\n"); | 1516 | pr_debug("leaving mac_drv_tx_complete\n"); |
1517 | } // mac_drv_tx_complete | 1517 | } // mac_drv_tx_complete |
1518 | 1518 | ||
1519 | 1519 | ||
@@ -1580,7 +1580,7 @@ void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, | |||
1580 | unsigned short ri; | 1580 | unsigned short ri; |
1581 | u_int RifLength; | 1581 | u_int RifLength; |
1582 | 1582 | ||
1583 | pr_debug(KERN_INFO "entering mac_drv_rx_complete (len=%d)\n", len); | 1583 | pr_debug("entering mac_drv_rx_complete (len=%d)\n", len); |
1584 | if (frag_count != 1) { // This is not allowed to happen. | 1584 | if (frag_count != 1) { // This is not allowed to happen. |
1585 | 1585 | ||
1586 | printk("fddi: Multi-fragment receive!\n"); | 1586 | printk("fddi: Multi-fragment receive!\n"); |
@@ -1589,7 +1589,7 @@ void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, | |||
1589 | } | 1589 | } |
1590 | skb = rxd->rxd_os.skb; | 1590 | skb = rxd->rxd_os.skb; |
1591 | if (!skb) { | 1591 | if (!skb) { |
1592 | pr_debug(KERN_INFO "No skb in rxd\n"); | 1592 | pr_debug("No skb in rxd\n"); |
1593 | smc->os.MacStat.gen.rx_errors++; | 1593 | smc->os.MacStat.gen.rx_errors++; |
1594 | goto RequeueRxd; | 1594 | goto RequeueRxd; |
1595 | } | 1595 | } |
@@ -1619,7 +1619,7 @@ void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, | |||
1619 | else { | 1619 | else { |
1620 | int n; | 1620 | int n; |
1621 | // goos: RIF removal has still to be tested | 1621 | // goos: RIF removal has still to be tested |
1622 | pr_debug(KERN_INFO "RIF found\n"); | 1622 | pr_debug("RIF found\n"); |
1623 | // Get RIF length from Routing Control (RC) field. | 1623 | // Get RIF length from Routing Control (RC) field. |
1624 | cp = virt + FDDI_MAC_HDR_LEN; // Point behind MAC header. | 1624 | cp = virt + FDDI_MAC_HDR_LEN; // Point behind MAC header. |
1625 | 1625 | ||
@@ -1664,7 +1664,7 @@ void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, | |||
1664 | return; | 1664 | return; |
1665 | 1665 | ||
1666 | RequeueRxd: | 1666 | RequeueRxd: |
1667 | pr_debug(KERN_INFO "Rx: re-queue RXD.\n"); | 1667 | pr_debug("Rx: re-queue RXD.\n"); |
1668 | mac_drv_requeue_rxd(smc, rxd, frag_count); | 1668 | mac_drv_requeue_rxd(smc, rxd, frag_count); |
1669 | smc->os.MacStat.gen.rx_errors++; // Count receive packets | 1669 | smc->os.MacStat.gen.rx_errors++; // Count receive packets |
1670 | // not indicated. | 1670 | // not indicated. |
@@ -1775,7 +1775,7 @@ void mac_drv_fill_rxd(struct s_smc *smc) | |||
1775 | struct sk_buff *skb; | 1775 | struct sk_buff *skb; |
1776 | volatile struct s_smt_fp_rxd *rxd; | 1776 | volatile struct s_smt_fp_rxd *rxd; |
1777 | 1777 | ||
1778 | pr_debug(KERN_INFO "entering mac_drv_fill_rxd\n"); | 1778 | pr_debug("entering mac_drv_fill_rxd\n"); |
1779 | 1779 | ||
1780 | // Walk through the list of free receive buffers, passing receive | 1780 | // Walk through the list of free receive buffers, passing receive |
1781 | // buffers to the HWM as long as RXDs are available. | 1781 | // buffers to the HWM as long as RXDs are available. |
@@ -1783,7 +1783,7 @@ void mac_drv_fill_rxd(struct s_smc *smc) | |||
1783 | MaxFrameSize = smc->os.MaxFrameSize; | 1783 | MaxFrameSize = smc->os.MaxFrameSize; |
1784 | // Check if there is any RXD left. | 1784 | // Check if there is any RXD left. |
1785 | while (HWM_GET_RX_FREE(smc) > 0) { | 1785 | while (HWM_GET_RX_FREE(smc) > 0) { |
1786 | pr_debug(KERN_INFO ".\n"); | 1786 | pr_debug(".\n"); |
1787 | 1787 | ||
1788 | rxd = HWM_GET_CURR_RXD(smc); | 1788 | rxd = HWM_GET_CURR_RXD(smc); |
1789 | skb = alloc_skb(MaxFrameSize + 3, GFP_ATOMIC); | 1789 | skb = alloc_skb(MaxFrameSize + 3, GFP_ATOMIC); |
@@ -1814,7 +1814,7 @@ void mac_drv_fill_rxd(struct s_smc *smc) | |||
1814 | hwm_rx_frag(smc, v_addr, b_addr, MaxFrameSize, | 1814 | hwm_rx_frag(smc, v_addr, b_addr, MaxFrameSize, |
1815 | FIRST_FRAG | LAST_FRAG); | 1815 | FIRST_FRAG | LAST_FRAG); |
1816 | } | 1816 | } |
1817 | pr_debug(KERN_INFO "leaving mac_drv_fill_rxd\n"); | 1817 | pr_debug("leaving mac_drv_fill_rxd\n"); |
1818 | } // mac_drv_fill_rxd | 1818 | } // mac_drv_fill_rxd |
1819 | 1819 | ||
1820 | 1820 | ||
@@ -1904,12 +1904,12 @@ int mac_drv_rx_init(struct s_smc *smc, int len, int fc, | |||
1904 | pr_debug("fddi: Discard invalid local SMT frame\n"); | 1904 | pr_debug("fddi: Discard invalid local SMT frame\n"); |
1905 | pr_debug(" len=%d, la_len=%d, (ULONG) look_ahead=%08lXh.\n", | 1905 | pr_debug(" len=%d, la_len=%d, (ULONG) look_ahead=%08lXh.\n", |
1906 | len, la_len, (unsigned long) look_ahead); | 1906 | len, la_len, (unsigned long) look_ahead); |
1907 | return (0); | 1907 | return 0; |
1908 | } | 1908 | } |
1909 | skb = alloc_skb(len + 3, GFP_ATOMIC); | 1909 | skb = alloc_skb(len + 3, GFP_ATOMIC); |
1910 | if (!skb) { | 1910 | if (!skb) { |
1911 | pr_debug("fddi: Local SMT: skb memory exhausted.\n"); | 1911 | pr_debug("fddi: Local SMT: skb memory exhausted.\n"); |
1912 | return (0); | 1912 | return 0; |
1913 | } | 1913 | } |
1914 | skb_reserve(skb, 3); | 1914 | skb_reserve(skb, 3); |
1915 | skb_put(skb, len); | 1915 | skb_put(skb, len); |
@@ -1919,7 +1919,7 @@ int mac_drv_rx_init(struct s_smc *smc, int len, int fc, | |||
1919 | skb->protocol = fddi_type_trans(skb, smc->os.dev); | 1919 | skb->protocol = fddi_type_trans(skb, smc->os.dev); |
1920 | netif_rx(skb); | 1920 | netif_rx(skb); |
1921 | 1921 | ||
1922 | return (0); | 1922 | return 0; |
1923 | } // mac_drv_rx_init | 1923 | } // mac_drv_rx_init |
1924 | 1924 | ||
1925 | 1925 | ||
@@ -2034,17 +2034,17 @@ void smt_stat_counter(struct s_smc *smc, int stat) | |||
2034 | { | 2034 | { |
2035 | // BOOLEAN RingIsUp ; | 2035 | // BOOLEAN RingIsUp ; |
2036 | 2036 | ||
2037 | pr_debug(KERN_INFO "smt_stat_counter\n"); | 2037 | pr_debug("smt_stat_counter\n"); |
2038 | switch (stat) { | 2038 | switch (stat) { |
2039 | case 0: | 2039 | case 0: |
2040 | pr_debug(KERN_INFO "Ring operational change.\n"); | 2040 | pr_debug("Ring operational change.\n"); |
2041 | break; | 2041 | break; |
2042 | case 1: | 2042 | case 1: |
2043 | pr_debug(KERN_INFO "Receive fifo overflow.\n"); | 2043 | pr_debug("Receive fifo overflow.\n"); |
2044 | smc->os.MacStat.gen.rx_errors++; | 2044 | smc->os.MacStat.gen.rx_errors++; |
2045 | break; | 2045 | break; |
2046 | default: | 2046 | default: |
2047 | pr_debug(KERN_INFO "Unknown status (%d).\n", stat); | 2047 | pr_debug("Unknown status (%d).\n", stat); |
2048 | break; | 2048 | break; |
2049 | } | 2049 | } |
2050 | } // smt_stat_counter | 2050 | } // smt_stat_counter |
@@ -2100,10 +2100,10 @@ void cfm_state_change(struct s_smc *smc, int c_state) | |||
2100 | s = "SC11_C_WRAP_S"; | 2100 | s = "SC11_C_WRAP_S"; |
2101 | break; | 2101 | break; |
2102 | default: | 2102 | default: |
2103 | pr_debug(KERN_INFO "cfm_state_change: unknown %d\n", c_state); | 2103 | pr_debug("cfm_state_change: unknown %d\n", c_state); |
2104 | return; | 2104 | return; |
2105 | } | 2105 | } |
2106 | pr_debug(KERN_INFO "cfm_state_change: %s\n", s); | 2106 | pr_debug("cfm_state_change: %s\n", s); |
2107 | #endif // DRIVERDEBUG | 2107 | #endif // DRIVERDEBUG |
2108 | } // cfm_state_change | 2108 | } // cfm_state_change |
2109 | 2109 | ||
@@ -2158,7 +2158,7 @@ void ecm_state_change(struct s_smc *smc, int e_state) | |||
2158 | s = "unknown"; | 2158 | s = "unknown"; |
2159 | break; | 2159 | break; |
2160 | } | 2160 | } |
2161 | pr_debug(KERN_INFO "ecm_state_change: %s\n", s); | 2161 | pr_debug("ecm_state_change: %s\n", s); |
2162 | #endif //DRIVERDEBUG | 2162 | #endif //DRIVERDEBUG |
2163 | } // ecm_state_change | 2163 | } // ecm_state_change |
2164 | 2164 | ||
@@ -2213,7 +2213,7 @@ void rmt_state_change(struct s_smc *smc, int r_state) | |||
2213 | s = "unknown"; | 2213 | s = "unknown"; |
2214 | break; | 2214 | break; |
2215 | } | 2215 | } |
2216 | pr_debug(KERN_INFO "[rmt_state_change: %s]\n", s); | 2216 | pr_debug("[rmt_state_change: %s]\n", s); |
2217 | #endif // DRIVERDEBUG | 2217 | #endif // DRIVERDEBUG |
2218 | } // rmt_state_change | 2218 | } // rmt_state_change |
2219 | 2219 | ||
@@ -2233,7 +2233,7 @@ void rmt_state_change(struct s_smc *smc, int r_state) | |||
2233 | ************************/ | 2233 | ************************/ |
2234 | void drv_reset_indication(struct s_smc *smc) | 2234 | void drv_reset_indication(struct s_smc *smc) |
2235 | { | 2235 | { |
2236 | pr_debug(KERN_INFO "entering drv_reset_indication\n"); | 2236 | pr_debug("entering drv_reset_indication\n"); |
2237 | 2237 | ||
2238 | smc->os.ResetRequested = TRUE; // Set flag. | 2238 | smc->os.ResetRequested = TRUE; // Set flag. |
2239 | 2239 | ||