summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_edvar.h
Commit message (Collapse)AuthorAgeFilesLines
* MFp4:imp2006-06-121-0/+2
| | | | | | | | | | | | o Implement a bunch of sysctl's to report the information that's now always reported. Mvoe reporting of that info to bootverbose, but maybe it can go away entirely. dev.ed.X.type: string name dev.ed.X.TxMem: amount of memory used for tx side of the card dev.ed.X.RxMem: amount of memory used for rx side of the card dev.ed.X.Mem: Total amount of mem on card. o Better comments about where NE-2000 (and clones) gets their MAC address from.
* Have a function pointer to the routine to call for writing an mbufimp2006-01-271-6/+3
| | | | | | | | | | into the card's memory. # this eliminates a more of the ifdef soup in if_ed and if_edvar # I've fixed the cbus drivers, but can't test them all easily. If I've broken anything, please let me know.
* Create mediachg functions for the 3c503 and hpp cards. This is usedimp2006-01-271-1/+0
| | | | | | | | | | | | to properly configure the right interface to use. Also call the mediachg function when we set flags UP and are already running. If this were a pure ifmedia driver, we'd not need to do this since we'd be ignoring the linkX flags. This reduces the number of ifdefs to support sub-devices a little as a nice side effect. It also reduces the number of hpp interfaces exposed by 33%.
* minor nit in comment about what kind of flags these areimp2006-01-271-1/+1
|
* MFp4:imp2005-10-051-0/+1
| | | | | | | | | | o Add support for Tamarack TC5299J + MII found on SMC 8041TX V.2 and corega PCCCCTXD o Add support for ISA/PCI RTL80[12]9 chips o Improve support for the ax88790 based o minor code movement Submitted by: (#2) David Madole
* MFp4:imp2005-09-181-5/+4
| | | | | | | | | | | | | | | | | | o eliminate the ED_NO_MIIBUS option. Now, you need miibus to use ed with pccard. If you have an old ISA or PCI card w/o a miibus, then you'll still be able to use the ed driver w/o miibus in the kernel. If you have pccard you'll need mii now. Most pccards these days have miibus, and many cards have ISSUES if you don't attach miibus. issues I don't want to constantly rediagnose. - Add new media_ioctl, mediachg and tick function pointers. The core driver will call these if they aren't NULL, or return an error if they are. - migrate remaining mii code into if_ed_pccard. o include some notes from my datasheet fishing. this may allow us to get media status from some pccards. o Fix one bug that's common to many drivers. call if_free(ifp) after we tear down the interrupt. ed_intr() depends on ifp being there and freeing it while interrupts can still happen is, ummm, bad.
* MFp4: Omnibus ed changesimp2005-09-131-2/+0
| | | | | | | | | | | | | | | | | | | o Attach AX88x90's MII bus to system, and require its presence. o Reorg the mii code a little, and move more of it into pccard attachment. o Eliminate ed_pccard_{read,write}_attrmem in favor of a more appropriate function in the pccard layer. o Update comments to reflect knowledge gained. o Update how re recognize a NE-2000 ROM. I found a couple of different datasheets that define the structure of the PROM data, so the code's old heuristics have been removed, and comments updated to reflect the structure. o Eliminate work around for EC2T. It is no longer needed, and was wrong headed since the EC2T has a Winbound 82C926C in it, not a AX88x90. o Add copyright to if_ed_pccard.c, since I believe I've re-written more than 3/4 of it. # With these changes, all of my 20-odd ed based cards work, except for the # NetGear FA-410, and I'm pretty sure that's a MII/PHY problem.
* o Expose ed_probe_Novel_generic, it is useful for pccard case.imp2005-09-071-0/+1
| | | | | o Fix a now stale comment. There are likely many others like them, but this one definitely hasn't been true since DELAY was introduced into the tree.
* It turns out that many of the ambicom cards have their CIS resourcesimp2005-09-061-0/+1
| | | | | | | | listed in different orders. Since it is easy to identify the Modem resources vs the Ethernet resources by looking at the size, use that rather than hard coded rids. For such parts, go ahead and guess which rid we should use based on the size. This guess appears reliable for the two example cards that I have with different CIS info.
* Finish conversion to bus space and make ed MP safe.imp2005-08-281-7/+23
| | | | | | | | | | | | | | | | | o Lock ed o Fix extra newline in probe messages o Eliminate gone. o Make detach less-racy. o Eliminate spl* o Switch from timeout/untimeout to callout interface. o Read/write card memory using bus_space calls. o generalize readmem so that we don't need ifs in the code. o Fix memory stuff to be consistant. o Remove OLDCARD compat stuff. o Mark interrupt as MPSAFE. # sic, hpp not tested at all # ISA and PCI attachments lightly tested
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam
* MFp4: Optimize in/out macros. Cache the handle and tag in softc andimp2005-02-221-44/+30
| | | | | use them in the macros. Since the rman_get_bus{tag,handle} transitioned from macros to function calls, this unpessimizes that conversion.
* 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-201-0/+9
| | | | | | certain options aren't enabled. Submitted by: Chiharu Shibata-san (chi at bd mbn or jp)
* Move the #defines from edreg to edvar which don't have anything to doimp2005-02-141-1/+48
| | | | with talking to the hardware.
* 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.
* Move enable/disable 16bit access routines into if_ed. Slightlyimp2005-02-101-0/+3
| | | | | | | 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.
* Break out obscure ISA cards into their own files, as well as ne2000imp2005-02-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | 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.
* Convenience function to clear memory of the card, and then check to makeimp2005-02-081-0/+1
| | | | sure that it works by reading back as 0.
* use fixed types for the calls to ed_pio_readmem, ed_pio_writemem.imp2005-02-081-3/+3
| | | | | | | 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-081-0/+1
| | | | | | | | | | | | 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
* MFp4: u_intXX_t to uintXX_t.imp2005-01-191-9/+9
|
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Adjust ed(4) for 64-bit platforms should it get newbus'ified.obrien2004-03-031-1/+1
|
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-1/+1
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* Add Allied Telesis SIC-AT boards support.shiba2003-10-151-0/+1
| | | | | | | | | | | | | Discussed in from [FreeBSD-tech-jp 3396] to [FreeBSD-tech-jp 3407] at FreeBSD-tech-jp@jp.freebsd.org. NOTE: We must put ed_probe_SIC() function into if_ed_isa.c because this is a bus dependent code. But the ed driver code is not separated explicitly whether it is bus dependent or independent now. Refer to: http://plaza17.mbn.or.jp/~chi/myprog/FreeBSD/sicat.html Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Remove __P.alfred2002-03-201-26/+26
|
* Add an option ED_NO_MIIBUS, which causes the `ed' driver to beiedowse2001-09-291-0/+2
| | | | | | built without support for miibus PHYs. Most ed cards don't need miibus support, so it's useful to be able to avoid the bloat of all the mii devices for small fixed-purpose kernels.
* Add support for Dlink DL10022 to the ed driver. This is a mii partimp2001-03-031-0/+9
| | | | | | | | | | | | | | bolted to a ne-2000 chip. This is necessary for the NetGear FA-410TX and other cards. This also requires you add mii to your kernel if you have an ed driver configured. This code will result in a couple of timeout messages for ed on the impacted cards. Additional work will be needed, but this does work right now, and many people need these cards. Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Minor newbus/style(9) cleanups.imp2000-12-261-0/+4
| | | | | | | | | | | o Move the ax88190 code to its own function. o Move all device_method_t, driver_t and DRIVER_MODULE definitions to the end of files. o Wrap a few lines > 80 characters. o Use the same devclass for all ed drivers. This allows machines with multiple types of cards to have their cards numbered correctly. Before, you could wind up with two ed0's. o Protect if_edvar.h from multiple includes because I was there.
* Fix my previous commit. Remove ed_get_Linksys() function prototypes.toshi2000-12-201-2/+0
|
* Move the detection of Linksys PCMCIA cards from attach to probe.ps2000-09-121-1/+1
| | | | | | This should solve the problems people were seeing with this driver. Reported by: phk & others.
* - Fixed the conversion to bus_space interface.nyan2000-08-171-20/+113
| | | | | | - Added PC-98 Cbus devices support. The original patch is submitted by chi@bd.mbn.or.jp (Chiharu Shibata) - Removed old ed driver.
* Newbusify ed driver.tanimura2000-08-141-5/+14
| | | | Partly submitted by: alex
* MFPAO: Add support for AX88190, equipped in MELCO LPC3-TX.tanimura2000-07-231-2/+1
|
* Only try to detect Linksys PCMCIA cards when we are in a pccardps2000-06-291-0/+1
| | | | | | environment. This fixes the breakage to ISA ethernet cards. Reviewed by: peter
* Fix pccard ed driver, I think.imp1999-12-101-0/+1
| | | | | | | o Expose ed_stop and call it early to shutdown the hardware. o When releasing the interrupt, pass the cookie for the irq, not a pointer to the cookie (this is the base problem). o Release other resources used, just like the ep driver
* - Remove the ISA, PCI, and PCCARD specific code from if_ed.c; itmdodd1999-10-151-0/+17
| | | | | | | now lives in the respective bus front end files. - Add various function prototypes to if_edvar.h - Clean up some debugging code that snuck into if_ed_isa.c - Turn on the right bits in files.i386
* $Id$ -> $FreeBSD$peter1999-09-051-1/+1
|
* This is part of an untested set of changes to the ed driver to supportdfr1999-09-011-0/+90
the new PnP code. Since the bulk of the driver changes are not being committed at this time, it will not affect the driver. The code is being committed early to allow others synchronise changes.
OpenPOWER on IntegriCloud