summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
Commit message (Collapse)AuthorAgeFilesLines
* Belkin F5D5020 is an OEM'd card from RACORE based on the AX88190imp2005-02-221-1/+1
| | | | | | chipset. Add support for this card. Office Max has them on sale and I was surprised that we didn't have it in our supported list when I plugged it in...
* Add a stratigic newlineimp2005-02-221-0/+1
|
* Minor style nits missed in earlier passesimp2005-02-222-5/+4
|
* MFp4: Optimize in/out macros. Cache the handle and tag in softc andimp2005-02-222-44/+34
| | | | | use them in the macros. Since the rman_get_bus{tag,handle} transitioned from macros to function calls, this unpessimizes that conversion.
* Minor optimization of calling enable_16bit. We always have to call itimp2005-02-221-7/+2
| | | | | and error is going to be right for both forks of the if, so just return that.
* Minor style(9)isms.imp2005-02-211-40/+32
|
* Fix merging botch I made in last version.imp2005-02-201-1/+0
|
* Minor optimizations to compile out bits that aren't necessary whenimp2005-02-202-5/+27
| | | | | | certain options aren't enabled. Submitted by: Chiharu Shibata-san (chi at bd mbn or jp)
* Minor style(9) tweaks.imp2005-02-201-7/+4
|
* Correct typo in comment.imp2005-02-201-1/+1
| | | | Submitted by: Chiharu Shibata-san (chi at bd mbn or jp)
* Fix the support for the ax88[17]90 to print the right type, ratherimp2005-02-171-27/+31
| | | | | | | | than the generic ne-2000 string. This should have no effect on the actual support of the parts, just reporting what the part was. Also, rename a few functins and symbols to reflect a more generic part support that grew out of the early specific support.
* Move the harvesting of the MAC address out of the generic novell probeimp2005-02-143-21/+49
| | | | | | | | | and into the bus front ends. For ISA and C-BUS cards, we always need to grab it. For PC Card, already committed, we need to do some sanity checking on the data that's in the ROMs before we decide that they are OK to use. The PC Card code has already been committed and is independent of this code (which also has to work on NE-1000 cards, assuming that those cards still work :-).
* Move the #defines from edreg to edvar which don't have anything to doimp2005-02-142-46/+48
| | | | with talking to the hardware.
* o It turns out that most of the ne-2000 cards that I have got real unhappyimp2005-02-141-9/+42
| | | | | | | | | with the latest changes. They actually have valid ROM data at location 0 of memory, just like a real NE-2000 ISA card. Use this data, if the ROM passes a few basic tests, as an additional source for the MAC address. Prefer the CIS over this source, but have it take precidence over falling back to reading the attribtue memory. o Minor cleanup of a few devices that we match on based on CIS string.
* Rework DL10019/DL10022 support. This tries to reset things in a moreimp2005-02-142-12/+26
| | | | | | | | | | | proper way, or at least the same way that NetBSD and Linux do things (I've been unable to obtain datasheets for these parts to know for sure). This has some marginal improvement in the DL10022 and DL10019 cards that I have. Also, report which type, exactly. # There's one or two ed cards that I have which still don't work, but I think # that's due to MII losage on the card that's not presently compensated # for in the MII drivers.
* MFp4: Merge in AX88790 support from my p4 tree. I've had this in myimp2005-02-142-3/+17
| | | | | | | | | tree since 2003/02/20, and I recently cleaned it up. I'd even closed the PR that I obtained this from Fri Jul 18 23:25:08 MDT 2003 since I looked at my p4 tree. PR: 46889 Submitted by: HASEGAWA Tomoki
* Add some comments in preparation for converting bcopy/bzero to busspace.imp2005-02-141-9/+14
| | | | Minor style nits.
* MFP4: Optimize the layout of softc somewhat. This groups the u_charsimp2005-02-141-4/+4
| | | | | into larger sections. I'd like to move to having a flags word, but I need to make sure that there's no adverse locking problems.
* Improve the mining of MAC address from the card:imp2005-02-121-7/+36
| | | | | | | | | | | | | o Add a fallback location for the MAC address. Most of the early ne2000 PC Cards were built from the same parts, so most of them have the same address in the CIS to grab the MAC from. Use this address as our fallback if we don't find anything better. o Add printf, in bootverbose, noting the MAC addresses that we find along the way. # Better sanity checking of the MAC address is needed. Will have to # investigate using/creating a centralized function to do this as a number # of other PC Card drivers each have their own ad-hoc tests.
* Add comment about MAC miningimp2005-02-121-0/+8
|
* Really old PCMCIA cards stored the MAC address in the attribute memoryimp2005-02-121-3/+41
| | | | | | | | | | | | | | | | | | at some offset. Unlike newer cards, the MAC address wasn't part of the CIS as a specific FUNCE. These older cards were having their MAC address show up as 0:2:4:6:8:a because that's what's in the ROM locations that would be there in a real ne2000. This patch allows one to specify the offset for the MAC address for these cards. Specify one for the IBM Ethernet II card, as it is one that has this problem. One shouldn't specify this unless the MAC address really isn't in the CIS at all. Side note: The novell probe likely shouldn't read the MAC address, and that should be moved to the bus specific attach routine(s), maybe as a convenience function in if_ed_novell.c. My IBM Ethernet II (aka Info Mover) now has a believable MAC address.
* Diff reduction with p4.imp2005-02-111-6/+3
|
* Eliminate the ED_VENDOR_{PCCARD,LINKSYS} types. These cards reallyimp2005-02-113-8/+9
| | | | | | are NOVELL NE2000 with just a tiny quirk that's non vendor specific. Instead, use the chip_type of DL100XX instead. This is more inline with how the AX88190 support was added, and seems a little cleaner.
* Move enable/disable 16bit access routines into if_ed. Slightlyimp2005-02-103-35/+30
| | | | | | | pessmize the error recover path through edintr by calling these functions, rather than expanding it inline. This error path already does a lot in it, so an extra function call will be lost in the noise. It also happens rarely.
* useimp2005-02-101-3/+8
| | | | | | | | | | while (complicated-expr) continune; in preference to while (complicated-expr); since the code generated is identical, and the former is easier to read, especially for complicated-expr that reach to the end of the line...
* Extricate probing of the gwether card (Gateway AT) from the middle ofimp2005-02-101-64/+74
| | | | | | | | | | | | | | | | probing the novell ne[12]000 cards. It should be its own thing, ala how we do the dl100xx support doing its own thing at the right time. For the moment, it is just a function, which makes the mainline of the generic probe easier to follow. Also, correct a couple of comments that looked wrong. # there may be a bug in setting up gwether, in that we set # sc->rec_page_stop based on memsize, rather than sc->mem_size, so if # these two are different, then the rec_page_stop will be wrong. I'm # hesitant to fix it without real hardware to test with. Since # gwether isn't in the hardware list of the man page nor in the commit # messages, it is hard to know for sure.
* Remove an ifdef that's been here for a long time. So long, in fact,imp2005-02-101-7/+0
| | | | | | | that it references a function parameter that's not been passed in for more than 4 years. This has been if 0'd since 1994.
* Break out obscure ISA cards into their own files, as well as ne2000imp2005-02-098-1722/+1958
| | | | | | | | | | | | | | | | | | | | | | and wd80x3 support. Make the obscure ISA cards optional, and add those options to NOTES on i386 (note: the ifdef around the whole code is for module building). Tweak pc98 ed support to include wd80x3 too. Add goo for alpha too. The affected cards are the 3Com 3C503, HP LAN+ and SIC (whatever that is). I couldn't find any of these for sale on ebay, so they are untested. If you have one of these cards, and send it to me, I'll ensure that you have no future problems with it... Minor cleanups as well by using functions rather than cut and paste code for some probing operations (where the function call overhead is lost in the noise). Remove use of kvtop, since they aren't required anymore. This driver needs to get its memory mapped act together, however, and use bus space. It doesn't right now. This reduces the size of if_ed.ko from about 51k to 33k on my laptop.
* Since we no longer use kvtop, we no longer need machine/md_var.himp2005-02-091-1/+0
|
* If either ed_probe_Novell or ed_attach returns an error, release theimp2005-02-091-2/+5
| | | | resources too.
* o Remove duplicate LINKSYS ETHERFAST entry.imp2005-02-091-4/+3
| | | | | | | | | | | | o The COMBO_ECARD comes in many flavors, it seems, so probe both the DL10019 and the AX88x90 on it. Since this seems to work with no ill effects, maybe the probing should happen more generally rather than being table driven. Need to think more about this. o Remove PCM100 because it is duplicative (the ETHERFAST is the pcm100 and apparently has the same IDs). It was here for NetBSD because they match up an expected MAC address OID, but since we don't bother with that, we don't need to be so finely discriminating. o Minor style nit.
* Remove reference to softc from probe entirely...imp2005-02-091-1/+0
|
* Minor style cleanup. Get rid of extra {}, extra blank lines and someimp2005-02-091-131/+67
| | | | continued line indentation. Should be no functional changes.
* o Remove ifdef PC98, since this file has diverged quite a bit fromimp2005-02-091-134/+59
| | | | | | | | | | if_ed_isa.c, and they seem to not be helpful anymore. o Fix style issues from de-Pification. o change from _isa_ to _cbus_ to the largest extent possible to reflect that this is really for cbus, not isa. o Use ANSI function definitions. o Use ed_clear_memory o eliminate kvtop
* No need to bzero softc.imp2005-02-081-2/+0
|
* Convenience function to clear memory of the card, and then check to makeimp2005-02-082-0/+23
| | | | sure that it works by reading back as 0.
* Use ANSI function definitions, tweak a couple of prototypes to match (sinceimp2005-02-081-116/+48
| | | | | K&R prototypes needed to mismatch in the way that they were mismatched), rename ds_getmcaf to ed_ds_getmcaf. Remove a few register keywords.
* use fixed types for the calls to ed_pio_readmem, ed_pio_writemem.imp2005-02-083-35/+18
| | | | | | | Make the special hp versions match the general ones. Also use fixed types in the WD80x3_generic probe, and change callers' arrays to match. Fix a couple of minor style issues by using newstyle function definitions in a couple places.
* Make it possible to unload ed. Move the ed_pccard_detach routine toimp2005-02-086-22/+25
| | | | | | | | | | | | if_ed and rename it to ed_detach(). Tell other busses to use this routine for detach. Since I don't actually have any non-pccard ed hardware I can test with, I've only tested with my pccards. More improvements in this area likely are possible. Prodded by: rwatson
* Fix style bugs introduced in the de__Pification of this code.imp2005-02-081-25/+23
| | | | Style bug generically noted by: bde
* Add back support for D-LINK DMR-650TX, and all the other OEMd versionsimp2005-01-271-0/+1
| | | | | | | of this card (evidentally MultiMobile also sold this card as MT5634ZLXI/E). Reported by: Bastian Brinkman
* Remove unused static declaration of ed_pccard_dl100xx(), which probablyrwatson2005-01-261-1/+0
| | | | | | | accidentally snuck into a prior commit to if_ed, and prevented building with -Werror. Pointed out by: csjp
* Kill stray debugging line not fully removedimp2005-01-261-1/+1
|
* Rework how we deal with the DL10019 and DL10022 cards (as well as theimp2005-01-261-35/+28
| | | | | | | | | | | | | | | | | | | | | | | | AX88190 ones, but that one only minorly): o don't set flags in the match routine. They appear to be cleared when probe/attach is called. Before this change, they were always treated as a simple ne2000, which would fail to get the right NIC address. o Lookup device again in the probe routine and probe based on the cards that you see. o Detect and report the DL10022 seprately from the DL10019 cards. While I'm here: o remove a bad printf o change another bad printf to device_printf. o minor style(9) formatting tweaks. # note: a lot of OEM entries are in the ed_pccard_products such that we can # likely remove, or collapse, many of them. This makes all of my DL100xx cards at least probe the ethernet address correctly, which it wasn't doing before. I can't seem to locate my AX88xxx based cards, so those haven't been tested, but they were busted before the change so they can't be any worse now...
* Repair probe messages a bit. Previously, we'd print the ethernetimp2005-01-261-14/+17
| | | | | | | | address, and additional information. Then the printing of the ethernet address was moved into ether_attach, and so we were printing orphaned information about the card. Now the probe message is prefixed by edX:. Prepare for it to move under bootverbose, but don't move it there yet (the || 1 trick).
* Turns out that Digital's DEPCM-BA and I-O Data PCLATE are both OEMimp2005-01-251-3/+3
| | | | | | | | | versions of the Racore PC Card Ethernet card. Rearrange to reflect this reality. This ejects IODATA from 0x1bf, which belongs to Racore. Thanks to Wilko for providing me with a dumpcis for the DEPCM card. Also, added Nextcom Nexthawk card from NetBSD
* Use DIGITAL2 for DEPCM cardimp2005-01-251-1/+1
|
* Remove obsolete comment from head this time. The RELENG_5 commit wasimp2005-01-251-6/+0
| | | | | accidental, but harmless and correct so I'll not be reverting it unless there's some hidden damage I can't see right now...
* Add MagicRAM PC Card Ethernet as ne2000 cloneimp2005-01-251-0/+1
|
* Only attach to network functions.imp2005-01-201-0/+10
|
OpenPOWER on IntegriCloud