#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
260050 |
|
29-Dec-2013 |
marius |
- Switch to using the common MII bitbang'ing code instead of duplicating it. - Based on lessons learnt with dc(4) (see r185750), add bus space barriers to the MII bitbang read and write functions as well as to instances of page switching. - Add missing locking to ed_ifmedia_{upd,sts}(). - Canonicalize some messages. - Based on actual functionality, ED_TC5299J_MII_DIROUT should be rather named ED_TC5299J_MII_DIRIN. - Remove unused headers. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers.
MFC after: 1 week
|
#
199380 |
|
17-Nov-2009 |
jhb |
Use a private callout timer to drive the transmit watchdog instead of using if_watchdog and if_timer. The driver already contained an optional stats timer that individual attachments could use to provide a 'tick' event. The stats timer only ran if the tick function pointer was non-NULL and the attachment's tick routine had to call callout_reset(), etc. Now the driver always schedules a stat timer and manages the callout_reset() internally. This timer is used to drive the watchdog and will also call the attachment's 'tick' handler if one is provided.
Tested by: WATANABE Kazuhiro
|
#
191299 |
|
19-Apr-2009 |
imp |
Cleanup resource allocation code a bit. Store the rids on the resources rather than on the softc. When we allocate resources for PC Card, if we only get 16 ports, try again to get the others.
|
#
190794 |
|
07-Apr-2009 |
imp |
Provide a generic ifmedia set of routines as a fallback. The DP8390-based cards have no generic way of reporting status of the link or setting the media type. Some specific versions of these cards do, however, allow for this, and we already support some of them. Make the 'ed' experience more uniform by providing "autoselect" as the meida and status "active" always. This won't affect the chips that provide more specific details.
|
#
190654 |
|
02-Apr-2009 |
imp |
Retire two flags that haven't been used since OLDCARD was retired (well, since before OLDCARD was retired, since I removed their use somewhat before that).
|
#
190483 |
|
28-Mar-2009 |
imp |
It turns out that the Toshiba LANCT00A PC Card is really like the Toshiba PCETC ISA card, and even has the same board type code in the card ID (0x14). So, for this card, call ed_probe_WD80x3_generic after setting things up apropriately. This makes the card attach and kinda work (I'm seeing panics in sbdrop). Since history has shown that the WD80x3 probe routine is dangerous, only do it for this card. Also, disable the memory range check to make sure it is an valid ISA memory. I think that it is bogus, but I'm not 100% sure, for these cards.
I removed probing for the WD80x3 in 2005 when I added support for the AX88x90 and DL100xx cards since none of my cards had ever matched it and PAO3 removed it and none of the cards in their database died.
It is possible there are other quirks about this card too, since no other open source OS supports it, or even claims to support it. But it was a fun half hour hack...
|
#
159538 |
|
12-Jun-2006 |
imp |
MFp4: 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.
|
#
154924 |
|
27-Jan-2006 |
imp |
Have a function pointer to the routine to call for writing an mbuf 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.
|
#
154895 |
|
27-Jan-2006 |
imp |
Create mediachg functions for the 3c503 and hpp cards. This is used 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%.
|
#
154891 |
|
27-Jan-2006 |
imp |
minor nit in comment about what kind of flags these are
|
#
150957 |
|
05-Oct-2005 |
imp |
MFp4: 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
|
#
150300 |
|
18-Sep-2005 |
imp |
MFp4: 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.
|
#
150108 |
|
13-Sep-2005 |
imp |
MFp4: Omnibus ed changes
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.
|
#
149840 |
|
07-Sep-2005 |
imp |
o Expose ed_probe_Novel_generic, it is useful for pccard case. 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.
|
#
149832 |
|
06-Sep-2005 |
imp |
It turns out that many of the ambicom cards have their CIS resources 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.
|
#
149558 |
|
28-Aug-2005 |
imp |
Finish conversion to bus space and make ed MP safe.
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
|
#
147256 |
|
10-Jun-2005 |
brooks |
Stop embedding struct ifnet at the top of driver softcs. Instead the 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
|
#
142202 |
|
22-Feb-2005 |
imp |
MFp4: Optimize in/out macros. Cache the handle and tag in softc and use them in the macros. Since the rman_get_bus{tag,handle} transitioned from macros to function calls, this unpessimizes that conversion.
|
#
142138 |
|
20-Feb-2005 |
imp |
Fix merging botch I made in last version.
|
#
142134 |
|
20-Feb-2005 |
imp |
Minor optimizations to compile out bits that aren't necessary when certain options aren't enabled.
Submitted by: Chiharu Shibata-san (chi at bd mbn or jp)
|
#
141931 |
|
14-Feb-2005 |
imp |
Move the #defines from edreg to edvar which don't have anything to do with talking to the hardware.
|
#
141877 |
|
14-Feb-2005 |
imp |
MFP4: Optimize the layout of softc somewhat. This groups the u_chars 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.
|
#
141673 |
|
10-Feb-2005 |
imp |
Move enable/disable 16bit access routines into if_ed. Slightly 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.
|
#
141586 |
|
09-Feb-2005 |
imp |
Break out obscure ISA cards into their own files, as well as ne2000 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.
|
#
141548 |
|
08-Feb-2005 |
imp |
Convenience function to clear memory of the card, and then check to make sure that it works by reading back as 0.
|
#
141495 |
|
08-Feb-2005 |
imp |
use fixed types for the calls to ed_pio_readmem, ed_pio_writemem. 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.
|
#
141494 |
|
08-Feb-2005 |
imp |
Make it possible to unload ed. Move the ed_pccard_detach routine to 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
|
#
141493 |
|
08-Feb-2005 |
imp |
Fix style bugs introduced in the de__Pification of this code.
Style bug generically noted by: bde
|
#
140468 |
|
19-Jan-2005 |
imp |
MFp4: u_intXX_t to uintXX_t.
|
#
139749 |
|
05-Jan-2005 |
imp |
Start each of the license/copyright comments with /*-, minor shuffle of lines
|
#
126531 |
|
03-Mar-2004 |
obrien |
Blah, s/newbus/busdma/ in the last commit.
|
#
126526 |
|
03-Mar-2004 |
obrien |
Adjust ed(4) for 64-bit platforms should it get newbus'ified.
|
#
121816 |
|
31-Oct-2003 |
brooks |
Replace the if_name and if_unit members of struct ifnet with new members 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)
|
#
121118 |
|
15-Oct-2003 |
shiba |
Add Allied Telesis SIC-AT boards support. 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)
|
#
92739 |
|
20-Mar-2002 |
alfred |
Remove __P.
|
#
84151 |
|
29-Sep-2001 |
iedowse |
Add an option ED_NO_MIIBUS, which causes the `ed' driver to be 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.
|
#
73374 |
|
03-Mar-2001 |
imp |
Add support for Dlink DL10022 to the ed driver. This is a mii part 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>
|
#
70355 |
|
26-Dec-2000 |
imp |
Minor newbus/style(9) cleanups. 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.
|
#
70234 |
|
20-Dec-2000 |
toshi |
Fix my previous commit. Remove ed_get_Linksys() function prototypes.
|
#
65771 |
|
12-Sep-2000 |
ps |
Move the detection of Linksys PCMCIA cards from attach to probe. This should solve the problems people were seeing with this driver.
Reported by: phk & others.
|
#
64777 |
|
17-Aug-2000 |
nyan |
- Fixed the conversion to bus_space interface. - Added PC-98 Cbus devices support. The original patch is submitted by chi@bd.mbn.or.jp (Chiharu Shibata) - Removed old ed driver.
|
#
64630 |
|
14-Aug-2000 |
tanimura |
Newbusify ed driver.
Partly submitted by: alex
|
#
63775 |
|
23-Jul-2000 |
tanimura |
MFPAO: Add support for AX88190, equipped in MELCO LPC3-TX.
|
#
62236 |
|
29-Jun-2000 |
ps |
Only try to detect Linksys PCMCIA cards when we are in a pccard environment. This fixes the breakage to ISA ethernet cards.
Reviewed by: peter
|
#
54384 |
|
10-Dec-1999 |
imp |
Fix pccard ed driver, I think. 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
|
#
52247 |
|
15-Oct-1999 |
mdodd |
- Remove the ISA, PCI, and PCCARD specific code from if_ed.c; it 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
|
#
50959 |
|
05-Sep-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
50770 |
|
01-Sep-1999 |
dfr |
This is part of an untested set of changes to the ed driver to support 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.
|