diff options
| author | Christoph Egger <siccegge@cs.fau.de> | 2010-07-14 16:40:36 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-07-14 16:40:36 -0400 |
| commit | ef3cf9f2fbef8279a29a027db0d02b56bd0b75f3 (patch) | |
| tree | 32c95f4a48a82529fe4dbb97d582342ea7e28752 /drivers/net | |
| parent | 7e4ee4d947b8499451705ec8ce419b3321d14edf (diff) | |
cs89x0: Removing dead SH_HICOSH4
SH_HICOSH4 doesn't exist in Kconfig, therefore removing all references
for it from the source code.
Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/cs89x0.c | 51 | ||||
| -rw-r--r-- | drivers/net/cs89x0.h | 4 |
2 files changed, 2 insertions, 53 deletions
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index e3a7dca23025..89f2ef7f16de 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
| @@ -170,11 +170,7 @@ static char version[] __initdata = | |||
| 170 | /* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps | 170 | /* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps |
| 171 | them to system IRQ numbers. This mapping is card specific and is set to | 171 | them to system IRQ numbers. This mapping is card specific and is set to |
| 172 | the configuration of the Cirrus Eval board for this chip. */ | 172 | the configuration of the Cirrus Eval board for this chip. */ |
| 173 | #if defined(CONFIG_SH_HICOSH4) | 173 | #if defined(CONFIG_MACH_IXDP2351) |
| 174 | static unsigned int netcard_portlist[] __used __initdata = | ||
| 175 | { 0x0300, 0}; | ||
| 176 | static unsigned int cs8900_irq_map[] = {1,0,0,0}; | ||
| 177 | #elif defined(CONFIG_MACH_IXDP2351) | ||
| 178 | static unsigned int netcard_portlist[] __used __initdata = {IXDP2351_VIRT_CS8900_BASE, 0}; | 174 | static unsigned int netcard_portlist[] __used __initdata = {IXDP2351_VIRT_CS8900_BASE, 0}; |
| 179 | static unsigned int cs8900_irq_map[] = {IRQ_IXDP2351_CS8900, 0, 0, 0}; | 175 | static unsigned int cs8900_irq_map[] = {IRQ_IXDP2351_CS8900, 0, 0, 0}; |
| 180 | #elif defined(CONFIG_ARCH_IXDP2X01) | 176 | #elif defined(CONFIG_ARCH_IXDP2X01) |
| @@ -578,12 +574,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
| 578 | goto out1; | 574 | goto out1; |
| 579 | } | 575 | } |
| 580 | 576 | ||
| 581 | #ifdef CONFIG_SH_HICOSH4 | ||
| 582 | /* truly reset the chip */ | ||
| 583 | writeword(ioaddr, ADD_PORT, 0x0114); | ||
| 584 | writeword(ioaddr, DATA_PORT, 0x0040); | ||
| 585 | #endif | ||
| 586 | |||
| 587 | /* if they give us an odd I/O address, then do ONE write to | 577 | /* if they give us an odd I/O address, then do ONE write to |
| 588 | the address port, to get it back to address zero, where we | 578 | the address port, to get it back to address zero, where we |
| 589 | expect to find the EISA signature word. An IO with a base of 0x3 | 579 | expect to find the EISA signature word. An IO with a base of 0x3 |
| @@ -649,37 +639,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
| 649 | the driver will always do *something* instead of complain that | 639 | the driver will always do *something* instead of complain that |
| 650 | adapter_cnf is 0. */ | 640 | adapter_cnf is 0. */ |
| 651 | 641 | ||
| 652 | #ifdef CONFIG_SH_HICOSH4 | ||
| 653 | if (1) { | ||
| 654 | /* For the HiCO.SH4 board, things are different: we don't | ||
| 655 | have EEPROM, but there is some data in flash, so we go | ||
| 656 | get it there directly (MAC). */ | ||
| 657 | __u16 *confd; | ||
| 658 | short cnt; | ||
| 659 | if (((* (volatile __u32 *) 0xa0013ff0) & 0x00ffffff) | ||
| 660 | == 0x006c3000) { | ||
| 661 | confd = (__u16*) 0xa0013fc0; | ||
| 662 | } else { | ||
| 663 | confd = (__u16*) 0xa001ffc0; | ||
| 664 | } | ||
| 665 | cnt = (*confd++ & 0x00ff) >> 1; | ||
| 666 | while (--cnt > 0) { | ||
| 667 | __u16 j = *confd++; | ||
| 668 | |||
| 669 | switch (j & 0x0fff) { | ||
| 670 | case PP_IA: | ||
| 671 | for (i = 0; i < ETH_ALEN/2; i++) { | ||
| 672 | dev->dev_addr[i*2] = confd[i] & 0xFF; | ||
| 673 | dev->dev_addr[i*2+1] = confd[i] >> 8; | ||
| 674 | } | ||
| 675 | break; | ||
| 676 | } | ||
| 677 | j = (j >> 12) + 1; | ||
| 678 | confd += j; | ||
| 679 | cnt -= j; | ||
| 680 | } | ||
| 681 | } else | ||
| 682 | #endif | ||
| 683 | 642 | ||
| 684 | if ((readreg(dev, PP_SelfST) & (EEPROM_OK | EEPROM_PRESENT)) == | 643 | if ((readreg(dev, PP_SelfST) & (EEPROM_OK | EEPROM_PRESENT)) == |
| 685 | (EEPROM_OK|EEPROM_PRESENT)) { | 644 | (EEPROM_OK|EEPROM_PRESENT)) { |
| @@ -734,11 +693,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
| 734 | printk("\n"); | 693 | printk("\n"); |
| 735 | 694 | ||
| 736 | /* First check to see if an EEPROM is attached. */ | 695 | /* First check to see if an EEPROM is attached. */ |
| 737 | #ifdef CONFIG_SH_HICOSH4 /* no EEPROM on HiCO, don't hazzle with it here */ | 696 | |
| 738 | if (1) { | ||
| 739 | printk(KERN_NOTICE "cs89x0: No EEPROM on HiCO.SH4\n"); | ||
| 740 | } else | ||
| 741 | #endif | ||
| 742 | if ((readreg(dev, PP_SelfST) & EEPROM_PRESENT) == 0) | 697 | if ((readreg(dev, PP_SelfST) & EEPROM_PRESENT) == 0) |
| 743 | printk(KERN_WARNING "cs89x0: No EEPROM, relying on command line....\n"); | 698 | printk(KERN_WARNING "cs89x0: No EEPROM, relying on command line....\n"); |
| 744 | else if (get_eeprom_data(dev, START_EEPROM_DATA,CHKSUM_LEN,eeprom_buff) < 0) { | 699 | else if (get_eeprom_data(dev, START_EEPROM_DATA,CHKSUM_LEN,eeprom_buff) < 0) { |
| @@ -1275,7 +1230,6 @@ net_open(struct net_device *dev) | |||
| 1275 | int i; | 1230 | int i; |
| 1276 | int ret; | 1231 | int ret; |
| 1277 | 1232 | ||
| 1278 | #if !defined(CONFIG_SH_HICOSH4) && !defined(CONFIG_ARCH_PNX010X) /* uses irq#1, so this won't work */ | ||
| 1279 | if (dev->irq < 2) { | 1233 | if (dev->irq < 2) { |
| 1280 | /* Allow interrupts to be generated by the chip */ | 1234 | /* Allow interrupts to be generated by the chip */ |
| 1281 | /* Cirrus' release had this: */ | 1235 | /* Cirrus' release had this: */ |
| @@ -1304,7 +1258,6 @@ net_open(struct net_device *dev) | |||
| 1304 | } | 1258 | } |
| 1305 | } | 1259 | } |
| 1306 | else | 1260 | else |
| 1307 | #endif | ||
| 1308 | { | 1261 | { |
| 1309 | #ifndef CONFIG_CS89x0_NONISA_IRQ | 1262 | #ifndef CONFIG_CS89x0_NONISA_IRQ |
| 1310 | if (((1 << dev->irq) & lp->irq_map) == 0) { | 1263 | if (((1 << dev->irq) & lp->irq_map) == 0) { |
diff --git a/drivers/net/cs89x0.h b/drivers/net/cs89x0.h index 204ed37fa9d5..91423b70bb45 100644 --- a/drivers/net/cs89x0.h +++ b/drivers/net/cs89x0.h | |||
| @@ -437,11 +437,7 @@ | |||
| 437 | #define IRQ_MAP_EEPROM_DATA 0x0046 /* Offset into eeprom for the IRQ map */ | 437 | #define IRQ_MAP_EEPROM_DATA 0x0046 /* Offset into eeprom for the IRQ map */ |
| 438 | #define IRQ_MAP_LEN 0x0004 /* No of bytes to read for the IRQ map */ | 438 | #define IRQ_MAP_LEN 0x0004 /* No of bytes to read for the IRQ map */ |
| 439 | #define PNP_IRQ_FRMT 0x0022 /* PNP small item IRQ format */ | 439 | #define PNP_IRQ_FRMT 0x0022 /* PNP small item IRQ format */ |
| 440 | #ifdef CONFIG_SH_HICOSH4 | ||
| 441 | #define CS8900_IRQ_MAP 0x0002 /* HiCO-SH4 board has its IRQ on #1 */ | ||
| 442 | #else | ||
| 443 | #define CS8900_IRQ_MAP 0x1c20 /* This IRQ map is fixed */ | 440 | #define CS8900_IRQ_MAP 0x1c20 /* This IRQ map is fixed */ |
| 444 | #endif | ||
| 445 | 441 | ||
| 446 | #define CS8920_NO_INTS 0x0F /* Max CS8920 interrupt select # */ | 442 | #define CS8920_NO_INTS 0x0F /* Max CS8920 interrupt select # */ |
| 447 | 443 | ||
