浏览代码

Automatically updated using

perl -pi -0777 -e 's/_disable\s*\(\s*struct dev \*dev\s*\)\s*{\s*struct nic \*nic.*?$/_disable ( struct nic *nic ) {/ms' *.c

perl -pi -0777 -e 's/_disable\s*\(\s*struct dev \*dev(\s*__unused)?\)\s*{/_disable ( struct nic *nic$1 ) {/ms' *.c
tags/v0.9.3
Michael Brown 19 年前
父节点
当前提交
c87ba23399

+ 1
- 3
src/drivers/net/3c509.c 查看文件

@@ -379,9 +379,7 @@ static void __t509_disable(void)
379 379
 	outb(0xc0, EP_ID_PORT);
380 380
 }
381 381
 
382
-static void t509_disable(struct dev *dev)
383
-{
384
-	struct nic *nic = (struct nic *)dev;
382
+static void t509_disable ( struct nic *nic ) {
385 383
 	/* reset and disable merge */
386 384
 	t509_reset(nic);
387 385
 	__t509_disable();

+ 1
- 3
src/drivers/net/3c515.c 查看文件

@@ -592,9 +592,7 @@ static void t515_transmit(struct nic *nic, const char *d,	/* Destination */
592 592
 /**************************************************************************
593 593
 DISABLE - Turn off ethernet interface
594 594
 ***************************************************************************/
595
-static void t515_disable(struct dev *dev)
596
-{
597
-	struct nic *nic = (struct nic *) dev;
595
+static void t515_disable ( struct nic *nic ) {
598 596
 
599 597
 	/* merge reset an disable */
600 598
 	t515_reset(nic);

+ 1
- 3
src/drivers/net/3c595.c 查看文件

@@ -440,9 +440,7 @@ vxsetlink(void)
440 440
     GO_WINDOW(1); 
441 441
 }
442 442
 
443
-static void t595_disable(struct dev *dev)
444
-{
445
-	struct nic *nic = (struct nic *)dev;
443
+static void t595_disable ( struct nic *nic ) {
446 444
 	t595_reset(nic);
447 445
 
448 446
 	outw(STOP_TRANSCEIVER, BASE + VX_COMMAND);

+ 1
- 2
src/drivers/net/3c90x.c 查看文件

@@ -663,8 +663,7 @@ a3c90x_poll(struct nic *nic, int retrieve)
663 663
  *** [Ken]
664 664
  ***/
665 665
 static void
666
-a3c90x_disable(struct dev *dev __unused)
667
-{
666
+a3c90x_disable ( struct nic *nic __unused ) {
668 667
 	/* reset and disable merge */
669 668
 	a3c90x_reset();
670 669
 	/* Disable the receiver and transmitter. */

+ 1
- 3
src/drivers/net/cs89x0.c 查看文件

@@ -438,9 +438,7 @@ static int cs89x0_poll(struct nic *nic, int retrieve)
438 438
 	return 1;
439 439
 }
440 440
 
441
-static void cs89x0_disable(struct dev *dev)
442
-{
443
-	struct nic *nic = (struct nic *)dev;
441
+static void cs89x0_disable ( struct nic *nic ) {
444 442
 	cs89x0_reset(nic);
445 443
 }
446 444
 

+ 1
- 3
src/drivers/net/davicom.c 查看文件

@@ -617,9 +617,7 @@ static int davicom_poll(struct nic *nic, int retrieve)
617 617
 /*********************************************************************/
618 618
 /* eth_disable - Disable the interface                               */
619 619
 /*********************************************************************/
620
-static void davicom_disable(struct dev *dev)
621
-{
622
-  struct nic *nic = (struct nic *)dev;
620
+static void davicom_disable ( struct nic *nic ) {
623 621
   whereami("davicom_disable\n");
624 622
 
625 623
   davicom_reset(nic);

+ 1
- 3
src/drivers/net/depca.c 查看文件

@@ -648,9 +648,7 @@ static void depca_transmit(
648 648
 /**************************************************************************
649 649
 DISABLE - Turn off ethernet interface
650 650
 ***************************************************************************/
651
-static void depca_disable(struct dev *dev)
652
-{
653
-	struct nic *nic = (struct nic *)dev;
651
+static void depca_disable ( struct nic *nic ) {
654 652
 	/* reset and disable merge */
655 653
 	depca_reset(nic);
656 654
 

+ 1
- 2
src/drivers/net/dmfe.c 查看文件

@@ -446,8 +446,7 @@ static void dmfe_transmit(struct nic *nic,
446 446
 /**************************************************************************
447 447
 DISABLE - Turn off ethernet interface
448 448
 ***************************************************************************/
449
-static void dmfe_disable(struct dev *dev __unused)
450
-{
449
+static void dmfe_disable ( struct nic *nic __unused ) {
451 450
 	/* Reset & stop DM910X board */
452 451
 	outl(DM910X_RESET, BASE + DCR0);
453 452
 	udelay(5);

+ 1
- 2
src/drivers/net/e1000.c 查看文件

@@ -3509,8 +3509,7 @@ e1000_transmit (struct nic *nic, const char *d,	/* Destination */
3509 3509
 /**************************************************************************
3510 3510
 DISABLE - Turn off ethernet interface
3511 3511
 ***************************************************************************/
3512
-static void e1000_disable (struct dev *dev __unused)
3513
-{
3512
+static void e1000_disable ( struct nic *nic __unused ) {
3514 3513
 	/* Clear the transmit ring */
3515 3514
 	E1000_WRITE_REG (&hw, TDH, 0);
3516 3515
 	E1000_WRITE_REG (&hw, TDT, 0);

+ 1
- 2
src/drivers/net/eepro.c 查看文件

@@ -456,8 +456,7 @@ static void eepro_transmit(
456 456
 /**************************************************************************
457 457
 DISABLE - Turn off ethernet interface
458 458
 ***************************************************************************/
459
-static void eepro_disable(struct dev *dev __unused)
460
-{
459
+static void eepro_disable ( struct nic *nic __unused ) {
461 460
 	eepro_sw2bank0(ioaddr);	/* Switch to bank 0 */
462 461
 	/* Flush the Tx and disable Rx */
463 462
 	outb(STOP_RCV_CMD, ioaddr);

+ 1
- 2
src/drivers/net/eepro100.c 查看文件

@@ -566,8 +566,7 @@ static int eepro100_poll(struct nic *nic, int retrieve)
566 566
  *
567 567
  * returns:   void.
568 568
  */
569
-static void eepro100_disable(struct dev *dev __unused)
570
-{
569
+static void eepro100_disable ( struct nic *nic __unused ) {
571 570
 /* from eepro100_reset */
572 571
 	outl(0, ioaddr + SCBPort);
573 572
 /* from eepro100_disable */

+ 1
- 2
src/drivers/net/epic100.c 查看文件

@@ -415,8 +415,7 @@ epic100_poll(struct nic *nic, int retrieve)
415 415
 
416 416
 
417 417
     static void
418
-epic100_disable(struct dev *dev __unused)
419
-{
418
+epic100_disable ( struct nic *nic __unused ) {
420 419
 	/* Soft reset the chip. */
421 420
 	outl(GC_SOFT_RESET, genctl);
422 421
 }

+ 1
- 2
src/drivers/net/forcedeth.c 查看文件

@@ -875,8 +875,7 @@ static void forcedeth_transmit(struct nic *nic, const char *d,	/* Destination */
875 875
 /**************************************************************************
876 876
 DISABLE - Turn off ethernet interface
877 877
 ***************************************************************************/
878
-static void forcedeth_disable(struct dev *dev __unused)
879
-{
878
+static void forcedeth_disable ( struct nic *nic __unused ) {
880 879
 	/* put the card in its initial state */
881 880
 	/* This function serves 3 purposes.
882 881
 	 * This disables DMA and interrupts so we don't receive

+ 1
- 2
src/drivers/net/mtd80x.c 查看文件

@@ -649,8 +649,7 @@ static void mtd_transmit(
649 649
 /**************************************************************************
650 650
 DISABLE - Turn off ethernet interface
651 651
 ***************************************************************************/
652
-static void mtd_disable(struct dev *dev)
653
-{
652
+static void mtd_disable ( struct nic *nic ) {
654 653
     /* put the card in its initial state */
655 654
     /* Disable Tx Rx*/
656 655
     outl( mtdx.crvalue & (~TxEnable) & (~RxEnable), mtdx.ioaddr + TCRRCR);

+ 1
- 3
src/drivers/net/natsemi.c 查看文件

@@ -728,9 +728,7 @@ natsemi_poll(struct nic *nic, int retrieve)
728 728
  */
729 729
 
730 730
 static void
731
-natsemi_disable(struct dev *dev)
732
-{
733
-    struct nic *nic = (struct nic *)dev;
731
+natsemi_disable ( struct nic *nic ) {
734 732
     /* merge reset and disable */
735 733
     natsemi_init(nic);
736 734
 

+ 1
- 2
src/drivers/net/ns83820.c 查看文件

@@ -756,8 +756,7 @@ static void ns83820_transmit(struct nic *nic, const char *d,	/* Destination */
756 756
 /**************************************************************************
757 757
 DISABLE - Turn off ethernet interface
758 758
 ***************************************************************************/
759
-static void ns83820_disable(struct dev *dev)
760
-{
759
+static void ns83820_disable ( struct nic *nic ) {
761 760
 	/* put the card in its initial state */
762 761
 	/* This function serves 3 purposes.
763 762
 	 * This disables DMA and interrupts so we don't receive

+ 1
- 3
src/drivers/net/ns8390.c 查看文件

@@ -583,9 +583,7 @@ static int ns8390_poll(struct nic *nic, int retrieve)
583 583
 /**************************************************************************
584 584
 NS8390_DISABLE - Turn off adapter
585 585
 **************************************************************************/
586
-static void ns8390_disable(struct dev *dev)
587
-{
588
-	struct nic *nic = (struct nic *)dev;
586
+static void ns8390_disable ( struct nic *nic ) {
589 587
 	/* reset and disable merge */
590 588
 	ns8390_reset(nic);
591 589
 }

+ 1
- 2
src/drivers/net/pcnet32.c 查看文件

@@ -634,8 +634,7 @@ static void pcnet32_transmit(struct nic *nic __unused, const char *d,	/* Destina
634 634
 /**************************************************************************
635 635
 DISABLE - Turn off ethernet interface
636 636
 ***************************************************************************/
637
-static void pcnet32_disable(struct dev *dev __unused)
638
-{
637
+static void pcnet32_disable ( struct nic *nic __unused ) {
639 638
 	/* Stop the PCNET32 here -- it ocassionally polls memory if we don't */
640 639
 	lp->a.write_csr(ioaddr, 0, 0x0004);
641 640
 

+ 1
- 2
src/drivers/net/prism2.c 查看文件

@@ -727,8 +727,7 @@ static void prism2_transmit(
727 727
 /**************************************************************************
728 728
 DISABLE - Turn off ethernet interface
729 729
 ***************************************************************************/
730
-static void prism2_disable(struct dev *dev __unused)
731
-{
730
+static void prism2_disable ( struct nic *nic __unused ) {
732 731
   /* put the card in its initial state */
733 732
 }
734 733
 

+ 1
- 2
src/drivers/net/r8169.c 查看文件

@@ -683,8 +683,7 @@ static void r8169_reset(struct nic *nic)
683 683
 /**************************************************************************
684 684
 DISABLE - Turn off ethernet interface
685 685
 ***************************************************************************/
686
-static void r8169_disable(struct dev *dev __unused)
687
-{
686
+static void r8169_disable ( struct nic *nic __unused ) {
688 687
 	int i;
689 688
 	/* Stop the chip's Tx and Rx DMA processes. */
690 689
 	RTL_W8(ChipCmd, 0x00);

+ 1
- 3
src/drivers/net/rtl8139.c 查看文件

@@ -511,9 +511,7 @@ static void rtl_irq(struct nic *nic, irq_action_t action)
511 511
 	}
512 512
 }
513 513
 
514
-static void rtl_disable(struct dev *dev)
515
-{
516
-	struct nic *nic = (struct nic *)dev;
514
+static void rtl_disable ( struct nic *nic ) {
517 515
 	/* merge reset and disable */
518 516
 	rtl_reset(nic);
519 517
 

+ 1
- 3
src/drivers/net/sis900.c 查看文件

@@ -1213,9 +1213,7 @@ sis900_poll(struct nic *nic, int retrieve)
1213 1213
  */
1214 1214
 
1215 1215
 static void
1216
-sis900_disable(struct dev *dev)
1217
-{
1218
-    struct nic *nic = (struct nic *)dev;
1216
+sis900_disable ( struct nic *nic ) {
1219 1217
     /* merge reset and disable */
1220 1218
     sis900_init(nic);
1221 1219
 

+ 1
- 3
src/drivers/net/sk_g16.c 查看文件

@@ -728,9 +728,7 @@ const char *pack)		/* Packet */
728 728
 /**************************************************************************
729 729
 DISABLE - Turn off ethernet interface
730 730
 ***************************************************************************/
731
-static void SK_disable(struct dev *dev)
732
-{
733
-	struct nic *nic = (struct nic *)dev;
731
+static void SK_disable ( struct nic *nic ) {
734 732
 
735 733
 	/* put the card in its initial state */
736 734
 	SK_lance_init(nic, MODE_NORMAL);	/* reset and disable merge */

+ 1
- 2
src/drivers/net/skel.c 查看文件

@@ -81,8 +81,7 @@ static void skel_transmit(
81 81
 /**************************************************************************
82 82
 DISABLE - Turn off ethernet interface
83 83
 ***************************************************************************/
84
-static void skel_disable(struct dev *dev)
85
-{
84
+static void skel_disable ( struct nic *nic ) {
86 85
 	/* put the card in its initial state */
87 86
 	/* This function serves 3 purposes.
88 87
 	 * This disables DMA and interrupts so we don't receive

+ 1
- 2
src/drivers/net/smc9000.c 查看文件

@@ -359,8 +359,7 @@ static int smc9000_poll(struct nic *nic, int retrieve)
359 359
    return 0;
360 360
 }
361 361
 
362
-static void smc9000_disable(struct dev *dev __unused)
363
-{
362
+static void smc9000_disable ( struct nic *nic __unused ) {
364 363
    if(!smc9000_base)
365 364
      return;
366 365
 

+ 1
- 2
src/drivers/net/sundance.c 查看文件

@@ -555,8 +555,7 @@ static void sundance_transmit(struct nic *nic, const char *d,	/* Destination */
555 555
 /**************************************************************************
556 556
 DISABLE - Turn off ethernet interface
557 557
 ***************************************************************************/
558
-static void sundance_disable(struct dev *dev __unused)
559
-{
558
+static void sundance_disable ( struct nic *nic __unused ) {
560 559
 	/* put the card in its initial state */
561 560
 	/* This function serves 3 purposes.
562 561
 	 * This disables DMA and interrupts so we don't receive

+ 1
- 2
src/drivers/net/tg3.c 查看文件

@@ -3186,8 +3186,7 @@ static void tg3_transmit(struct nic *nic, const char *dst_addr,
3186 3186
 /**************************************************************************
3187 3187
 DISABLE - Turn off ethernet interface
3188 3188
 ***************************************************************************/
3189
-static void tg3_disable(struct dev *dev __unused)
3190
-{
3189
+static void tg3_disable ( struct nic *nic __unused ) {
3191 3190
 	struct tg3 *tp = &tg3;
3192 3191
 	/* put the card in its initial state */
3193 3192
 	/* This function serves 3 purposes.

+ 1
- 2
src/drivers/net/tlan.c 查看文件

@@ -718,8 +718,7 @@ static void tlan_transmit(struct nic *nic, const char *d,	/* Destination */
718 718
 /**************************************************************************
719 719
 DISABLE - Turn off ethernet interface
720 720
 ***************************************************************************/
721
-static void tlan_disable(struct dev *dev __unused)
722
-{
721
+static void tlan_disable ( struct nic *nic __unused ) {
723 722
 	/* put the card in its initial state */
724 723
 	/* This function serves 3 purposes.
725 724
 	 * This disables DMA and interrupts so we don't receive

+ 1
- 3
src/drivers/net/tulip.c 查看文件

@@ -1180,9 +1180,7 @@ static int tulip_poll(struct nic *nic, int retrieve)
1180 1180
 /*********************************************************************/
1181 1181
 /* eth_disable - Disable the interface                               */
1182 1182
 /*********************************************************************/
1183
-static void tulip_disable(struct dev *dev)
1184
-{
1185
-    struct nic *nic = (struct nic *)dev;
1183
+static void tulip_disable ( struct nic *nic ) {
1186 1184
 #ifdef TULIP_DEBUG_WHERE
1187 1185
     whereami("tulip_disable\n");
1188 1186
 #endif

+ 1
- 3
src/drivers/net/via-rhine.c 查看文件

@@ -1162,9 +1162,7 @@ rhine_probe1 (struct nic *nic, struct pci_device *pci, int ioaddr, int chip_id,
1162 1162
 }
1163 1163
 
1164 1164
 static void 
1165
-rhine_disable (struct dev *dev)
1166
-{
1167
-    struct nic *nic = (struct nic *)dev;
1165
+rhine_disable ( struct nic *nic ) {
1168 1166
     struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
1169 1167
     int ioaddr = tp->ioaddr;
1170 1168
 

+ 1
- 3
src/drivers/net/w89c840.c 查看文件

@@ -579,9 +579,7 @@ static void w89c840_transmit(
579 579
 /**************************************************************************
580 580
 w89c840_disable - Turn off ethernet interface
581 581
 ***************************************************************************/
582
-static void w89c840_disable(struct dev *dev)
583
-{
584
-    struct nic *nic = (struct nic *)dev;
582
+static void w89c840_disable ( struct nic *nic ) {
585 583
     /* merge reset and disable */
586 584
     w89c840_reset(nic);
587 585
 

正在加载...
取消
保存