diff options
| author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2013-01-14 21:17:25 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-01-14 21:26:06 -0500 |
| commit | 55eb555d9674e2ebe9d4de0146602f96ff18e7d6 (patch) | |
| tree | 31a0f38aac31bc9760e103310319b9e1d13acd23 | |
| parent | 73bf0d0eecba15e2a2f96b1092554b01fc07044b (diff) | |
drivers/net: delete orphaned MCA ibmlana driver content
In commit a5e371f61ad33c07b28e7c9b60c78d71fdd34e2a ("drivers/net: delete
all code/drivers depending on CONFIG_MCA") most of the MCA drivers went,
including the Kconfig/Makefile hooks for ibmlana, but it seems that I
missed the "git rm" on these actual driver files, and with the namespace
overlap with machine check architecture, it got missed by various git
grep type checking done at that time.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/natsemi/ibmlana.c | 1075 | ||||
| -rw-r--r-- | drivers/net/ethernet/natsemi/ibmlana.h | 278 |
2 files changed, 0 insertions, 1353 deletions
diff --git a/drivers/net/ethernet/natsemi/ibmlana.c b/drivers/net/ethernet/natsemi/ibmlana.c deleted file mode 100644 index 923e640d604c..000000000000 --- a/drivers/net/ethernet/natsemi/ibmlana.c +++ /dev/null | |||
| @@ -1,1075 +0,0 @@ | |||
| 1 | /* | ||
| 2 | net-3-driver for the IBM LAN Adapter/A | ||
| 3 | |||
| 4 | This is an extension to the Linux operating system, and is covered by the | ||
| 5 | same GNU General Public License that covers that work. | ||
| 6 | |||
| 7 | Copyright 1999 by Alfred Arnold (alfred@ccac.rwth-aachen.de, | ||
| 8 | alfred.arnold@lancom.de) | ||
| 9 | |||
| 10 | This driver is based both on the SK_MCA driver, which is itself based on the | ||
| 11 | SK_G16 and 3C523 driver. | ||
| 12 | |||
| 13 | paper sources: | ||
| 14 | 'PC Hardware: Aufbau, Funktionsweise, Programmierung' by | ||
| 15 | Hans-Peter Messmer for the basic Microchannel stuff | ||
| 16 | |||
| 17 | 'Linux Geraetetreiber' by Allesandro Rubini, Kalle Dalheimer | ||
| 18 | for help on Ethernet driver programming | ||
| 19 | |||
| 20 | 'DP83934CVUL-20/25 MHz SONIC-T Ethernet Controller Datasheet' by National | ||
| 21 | Semiconductor for info on the MAC chip | ||
| 22 | |||
| 23 | 'LAN Technical Reference Ethernet Adapter Interface Version 1 Release 1.0 | ||
| 24 | Document Number SC30-3661-00' by IBM for info on the adapter itself | ||
| 25 | |||
| 26 | Also see http://www.national.com/analog | ||
| 27 | |||
| 28 | special acknowledgements to: | ||
| 29 | - Bob Eager for helping me out with documentation from IBM | ||
| 30 | - Jim Shorney for his endless patience with me while I was using | ||
| 31 | him as a beta tester to trace down the address filter bug ;-) | ||
| 32 | |||
| 33 | Missing things: | ||
| 34 | |||
| 35 | -> set debug level via ioctl instead of compile-time switches | ||
| 36 | -> I didn't follow the development of the 2.1.x kernels, so my | ||
| 37 | assumptions about which things changed with which kernel version | ||
| 38 | are probably nonsense | ||
| 39 | |||
| 40 | History: | ||
| 41 | Nov 6th, 1999 | ||
| 42 | startup from SK_MCA driver | ||
| 43 | Dec 6th, 1999 | ||
| 44 | finally got docs about the card. A big thank you to Bob Eager! | ||
| 45 | Dec 12th, 1999 | ||
| 46 | first packet received | ||
| 47 | Dec 13th, 1999 | ||
| 48 | recv queue done, tcpdump works | ||
| 49 | Dec 15th, 1999 | ||
| 50 | transmission part works | ||
| 51 | Dec 28th, 1999 | ||
| 52 | added usage of the isa_functions for Linux 2.3 . Things should | ||
| 53 | still work with 2.0.x.... | ||
| 54 | Jan 28th, 2000 | ||
| 55 | in Linux 2.2.13, the version.h file mysteriously didn't get | ||
| 56 | included. Added a workaround for this. Furthermore, it now | ||
| 57 | not only compiles as a modules ;-) | ||
| 58 | Jan 30th, 2000 | ||
| 59 | newer kernels automatically probe more than one board, so the | ||
| 60 | 'startslot' as a variable is also needed here | ||
| 61 | Apr 12th, 2000 | ||
| 62 | the interrupt mask register is not set 'hard' instead of individually | ||
| 63 | setting registers, since this seems to set bits that shouldn't be | ||
| 64 | set | ||
| 65 | May 21st, 2000 | ||
| 66 | reset interrupt status immediately after CAM load | ||
| 67 | add a recovery delay after releasing the chip's reset line | ||
| 68 | May 24th, 2000 | ||
| 69 | finally found the bug in the address filter setup - damned signed | ||
| 70 | chars! | ||
| 71 | June 1st, 2000 | ||
| 72 | corrected version codes, added support for the latest 2.3 changes | ||
| 73 | Oct 28th, 2002 | ||
| 74 | cleaned up for the 2.5 tree <alan@lxorguk.ukuu.org.uk> | ||
| 75 | |||
| 76 | *************************************************************************/ | ||
| 77 | |||
| 78 | #include <linux/kernel.h> | ||
| 79 | #include <linux/string.h> | ||
| 80 | #include <linux/errno.h> | ||
| 81 | #include <linux/ioport.h> | ||
| 82 | #include <linux/interrupt.h> | ||
| 83 | #include <linux/delay.h> | ||
| 84 | #include <linux/time.h> | ||
| 85 | #include <linux/mca.h> | ||
| 86 | #include <linux/module.h> | ||
| 87 | #include <linux/netdevice.h> | ||
| 88 | #include <linux/etherdevice.h> | ||
| 89 | #include <linux/if_ether.h> | ||
| 90 | #include <linux/skbuff.h> | ||
| 91 | #include <linux/bitops.h> | ||
| 92 | |||
| 93 | #include <asm/processor.h> | ||
| 94 | #include <asm/io.h> | ||
| 95 | |||
| 96 | #define _IBM_LANA_DRIVER_ | ||
| 97 | #include "ibmlana.h" | ||
| 98 | |||
| 99 | #undef DEBUG | ||
| 100 | |||
| 101 | #define DRV_NAME "ibmlana" | ||
| 102 | |||
| 103 | /* ------------------------------------------------------------------------ | ||
| 104 | * global static data - not more since we can handle multiple boards and | ||
| 105 | * have to pack all state info into the device struct! | ||
| 106 | * ------------------------------------------------------------------------ */ | ||
| 107 | |||
| 108 | static char *MediaNames[Media_Count] = { | ||
| 109 | "10BaseT", "10Base5", "Unknown", "10Base2" | ||
| 110 | }; | ||
| 111 | |||
| 112 | /* ------------------------------------------------------------------------ | ||
| 113 | * private subfunctions | ||
| 114 | * ------------------------------------------------------------------------ */ | ||
| 115 | |||
| 116 | #ifdef DEBUG | ||
| 117 | /* dump all registers */ | ||
| 118 | |||
| 119 | static void dumpregs(struct net_device *dev) | ||
| 120 | { | ||
| 121 | int z; | ||
| 122 | |||
| 123 | for (z = 0; z < 160; z += 2) { | ||
| 124 | if (!(z & 15)) | ||
| 125 | printk("REGS: %04x:", z); | ||
| 126 | printk(" %04x", inw(dev->base_addr + z)); | ||
| 127 | if ((z & 15) == 14) | ||
| 128 | printk("\n"); | ||
| 129 | } | ||
| 130 | } | ||
| 131 | |||
| 132 | /* dump parts of shared memory - only needed during debugging */ | ||
| 133 | |||
| 134 | static void dumpmem(struct net_device *dev, u32 start, u32 len) | ||
| 135 | { | ||
| 136 | ibmlana_priv *priv = netdev_priv(dev); | ||
| 137 | int z; | ||
| 138 | |||
| 139 | printk("Address %04x:\n", start); | ||
| 140 | for (z = 0; z < len; z++) { | ||
| 141 | if ((z & 15) == 0) | ||
| 142 | printk("%04x:", z); | ||
| 143 | printk(" %02x", readb(priv->base + start + z)); | ||
| 144 | if ((z & 15) == 15) | ||
| 145 | printk("\n"); | ||
| 146 | } | ||
| 147 | if ((z & 15) != 0) | ||
| 148 | printk("\n"); | ||
| 149 | } | ||
| 150 | |||
| 151 | /* print exact time - ditto */ | ||
| 152 | |||
| 153 | static void PrTime(void) | ||
| 154 | { | ||
| 155 | struct timeval tv; | ||
| 156 | |||
| 157 | do_gettimeofday(&tv); | ||
| 158 | printk("%9d:%06d: ", (int) tv.tv_sec, (int) tv.tv_usec); | ||
| 159 | } | ||
| 160 | #endif /* DEBUG */ | ||
| 161 | |||
| 162 | /* deduce resources out of POS registers */ | ||
| 163 | |||
| 164 | static void getaddrs(struct mca_device *mdev, int *base, int *memlen, | ||
| 165 | int *iobase, int *irq, ibmlana_medium *medium) | ||
| 166 | { | ||
| 167 | u_char pos0, pos1; | ||
| 168 | |||
| 169 | pos0 = mca_device_read_stored_pos(mdev, 2); | ||
| 170 | pos1 = mca_device_read_stored_pos(mdev, 3); | ||
| 171 | |||
| 172 | *base = 0xc0000 + ((pos1 & 0xf0) << 9); | ||
| 173 | *memlen = (pos1 & 0x01) ? 0x8000 : 0x4000; | ||
| 174 | *iobase = (pos0 & 0xe0) << 7; | ||
| 175 | switch (pos0 & 0x06) { | ||
| 176 | case 0: | ||
| 177 | *irq = 5; | ||
| 178 | break; | ||
| 179 | case 2: | ||
| 180 | *irq = 15; | ||
| 181 | break; | ||
| 182 | case 4: | ||
| 183 | *irq = 10; | ||
| 184 | break; | ||
| 185 | case 6: | ||
| 186 | *irq = 11; | ||
| 187 | break; | ||
| 188 | } | ||
