diff options
Diffstat (limited to 'drivers/net/eth16i.c')
| -rw-r--r-- | drivers/net/eth16i.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/net/eth16i.c b/drivers/net/eth16i.c index 10e39f2b31c3..12d28e9d0cb7 100644 --- a/drivers/net/eth16i.c +++ b/drivers/net/eth16i.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | This driver supports following cards : | 13 | This driver supports following cards : |
| 14 | - ICL EtherTeam 16i | 14 | - ICL EtherTeam 16i |
| 15 | - ICL EtherTeam 32 EISA | 15 | - ICL EtherTeam 32 EISA |
| 16 | (Uses true 32 bit transfers rather than 16i compability mode) | 16 | (Uses true 32 bit transfers rather than 16i compatibility mode) |
| 17 | 17 | ||
| 18 | Example Module usage: | 18 | Example Module usage: |
| 19 | insmod eth16i.o io=0x2a0 mediatype=bnc | 19 | insmod eth16i.o io=0x2a0 mediatype=bnc |
| @@ -637,7 +637,9 @@ static void eth16i_initialize(struct net_device *dev, int boot) | |||
| 637 | 637 | ||
| 638 | /* Set interface port type */ | 638 | /* Set interface port type */ |
| 639 | if(boot) { | 639 | if(boot) { |
| 640 | char *porttype[] = {"BNC", "DIX", "TP", "AUTO", "FROM_EPROM" }; | 640 | static const char * const porttype[] = { |
| 641 | "BNC", "DIX", "TP", "AUTO", "FROM_EPROM" | ||
| 642 | }; | ||
| 641 | 643 | ||
| 642 | switch(dev->if_port) | 644 | switch(dev->if_port) |
| 643 | { | 645 | { |
| @@ -794,7 +796,7 @@ static int eth16i_receive_probe_packet(int ioaddr) | |||
| 794 | 796 | ||
| 795 | if(eth16i_debug > 1) | 797 | if(eth16i_debug > 1) |
| 796 | printk(KERN_DEBUG "RECEIVE_PACKET\n"); | 798 | printk(KERN_DEBUG "RECEIVE_PACKET\n"); |
| 797 | return(0); /* Found receive packet */ | 799 | return 0; /* Found receive packet */ |
| 798 | } | 800 | } |
| 799 | } | 801 | } |
| 800 | 802 | ||
| @@ -803,7 +805,7 @@ static int eth16i_receive_probe_packet(int ioaddr) | |||
| 803 | printk(KERN_DEBUG "RX_STATUS_REG = %x\n", inb(ioaddr + RX_STATUS_REG)); | 805 | printk(KERN_DEBUG "RX_STATUS_REG = %x\n", inb(ioaddr + RX_STATUS_REG)); |
| 804 | } | 806 | } |
| 805 | 807 | ||
| 806 | return(0); /* Return success */ | 808 | return 0; /* Return success */ |
| 807 | } | 809 | } |
| 808 | 810 | ||
| 809 | #if 0 | 811 | #if 0 |
| @@ -839,7 +841,7 @@ static int __init eth16i_get_irq(int ioaddr) | |||
| 839 | 841 | ||
| 840 | if( ioaddr < 0x1000) { | 842 | if( ioaddr < 0x1000) { |
| 841 | cbyte = inb(ioaddr + JUMPERLESS_CONFIG); | 843 | cbyte = inb(ioaddr + JUMPERLESS_CONFIG); |
| 842 | return( eth16i_irqmap[ ((cbyte & 0xC0) >> 6) ] ); | 844 | return eth16i_irqmap[((cbyte & 0xC0) >> 6)]; |
| 843 | } else { /* Oh..the card is EISA so method getting IRQ different */ | 845 | } else { /* Oh..the card is EISA so method getting IRQ different */ |
| 844 | unsigned short index = 0; | 846 | unsigned short index = 0; |
| 845 | cbyte = inb(ioaddr + EISA_IRQ_REG); | 847 | cbyte = inb(ioaddr + EISA_IRQ_REG); |
| @@ -847,7 +849,7 @@ static int __init eth16i_get_irq(int ioaddr) | |||
| 847 | cbyte = cbyte >> 1; | 849 | cbyte = cbyte >> 1; |
| 848 | index++; | 850 | index++; |
| 849 | } | 851 | } |
| 850 | return( eth32i_irqmap[ index ] ); | 852 | return eth32i_irqmap[index]; |
| 851 | } | 853 | } |
| 852 | } | 854 | } |
| 853 | 855 | ||
| @@ -907,7 +909,7 @@ static int eth16i_read_eeprom(int ioaddr, int offset) | |||
| 907 | data = eth16i_read_eeprom_word(ioaddr); | 909 | data = eth16i_read_eeprom_word(ioaddr); |
| 908 | outb(CS_0 | SK_0, ioaddr + EEPROM_CTRL_REG); | 910 | outb(CS_0 | SK_0, ioaddr + EEPROM_CTRL_REG); |
| 909 | 911 | ||
| 910 | return(data); | 912 | return data; |
| 911 | } | 913 | } |
| 912 | 914 | ||
| 913 | static int eth16i_read_eeprom_word(int ioaddr) | 915 | static int eth16i_read_eeprom_word(int ioaddr) |
| @@ -926,7 +928,7 @@ static int eth16i_read_eeprom_word(int ioaddr) | |||
| 926 | eeprom_slow_io(); | 928 | eeprom_slow_io(); |
| 927 | } | 929 | } |
| 928 | 930 | ||
| 929 | return(data); | 931 | return data; |
| 930 | } | 932 | } |
| 931 | 933 | ||
| 932 | static void eth16i_eeprom_cmd(int ioaddr, unsigned char command) | 934 | static void eth16i_eeprom_cmd(int ioaddr, unsigned char command) |
