aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed/if_edreg.h
Commit message (Collapse)AuthorAgeFilesLines
* FCP-101: Remove ed(4).Brooks Davis2019-05-171-1081/+0
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347911
* sys/dev: minor spelling fixes.Pedro F. Giffuni2016-05-031-1/+1
| | | | | | | Most affect comments, very few have user-visible effects. Notes: svn path=/head/; revision=298955
* - Switch to using the common MII bitbang'ing code instead of duplicating it.Marius Strobl2013-12-291-19/+0
| | | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=260050
* More chip types, and fix a comment.Warner Losh2009-04-071-11/+14
| | | | Notes: svn path=/head/; revision=190811
* This is a major reworking of the AX88x90 support.Warner Losh2009-03-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Introduce new chip_type AX88790. There's a few places we need to know the exact chip for workaronds. o Explain the AX88190 workaround for the ISR bits being stuck, and don't apply them to the AX88790. The datasheet says the bits are fixed, and experience confirms. o Fix mii bit-bang read code to read and discard the 'floating' bit. o Remove empty ed_pccard_ax88x90_mii_reset routine o Report error from mii_phy_probe o Don't use ed_probe_Novel_generic for ax88x90 chips. It puts them into an odd state sometimes. Instead, use a more stream-lined version that avoids the trouble spots. This was copied and tweaked from the original. o Move chip reset into its own routine. o Minor code optimiation on getting MAC address o Add code for coping with AX88790 cards that are in power down state and need to be kicked before the PHY registers for the internal phy read right. o Remove ugly cap of PHYs at 17. o For AX88790, we need to set a special bit for accessig phy 16 (the internal phy) and clear it for all others according to a chip erratum. o streamline the bit-bang code for AX88x90: the delays aren't needed according to the datasheet timing diagrams and also the Linux driver o Fix minor bit definition for direction bit. o Generally: Some comments reformatted o Only try the toshiba probe on cards labelled as toshiba # From another Akihabara card (this one from a few years ago from a # friend in Japan). Fix the Corega FEther II PCC-TXD. This one is # still on sale new, as of a few weeks ago. should fix all other AX88x90 # based cards, but I have some testing left to finish on my collection... Notes: svn path=/head/; revision=190559
* MFp4:Warner Losh2005-10-051-31/+10
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=150957
* MFp4: Omnibus ed changesWarner Losh2005-09-131-21/+18
| | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=150108
* Consistancy is the hobgoblin of small minds:Warner Losh2005-09-071-8/+8
| | | | | | | o DLINK -> DL100XX Notes: svn path=/head/; revision=149842
* Move the #defines from edreg to edvar which don't have anything to doWarner Losh2005-02-141-45/+0
| | | | | | | with talking to the hardware. Notes: svn path=/head/; revision=141931
* Rework DL10019/DL10022 support. This tries to reset things in a moreWarner Losh2005-02-141-2/+4
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=141881
* MFp4: Merge in AX88790 support from my p4 tree. I've had this in myWarner Losh2005-02-141-2/+12
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=141880
* Eliminate the ED_VENDOR_{PCCARD,LINKSYS} types. These cards reallyWarner Losh2005-02-111-4/+3
| | | | | | | | | 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. Notes: svn path=/head/; revision=141681
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Add Allied Telesis SIC-AT boards support.Takeshi Shibagaki2003-10-151-0/+9
| | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=121118
* Attach the miibus for Linksys/Dlink cards from the attach routine,Ian Dowse2001-07-221-0/+1
| | | | | | | | | | | | | | not from the probe routine. This was an oversight when I originally ported the miibus support to -current, though it was mostly harmless. We now set the vendor code to the new value ED_VENDOR_LINKSYS in ed_pccard_Linksys() at probe time. Then ed_pccard_attach() checks the vendor code, and sets up the miibus if appropriate. Reviewed by: imp Notes: svn path=/head/; revision=80159
* Add support for Dlink DL10022 to the ed driver. This is a mii partWarner Losh2001-03-031-0/+29
| | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=73374
* Linksys Fast Ethernet PCCARD cards supported by the ed driver nowToshihiko ARAI2000-12-181-0/+1
| | | | | | | | | | | require the addition of flag 0x80000 to their config line in pccard.conf(5). This flag is not optional. These Linksys cards will not be recognized without it. Reviewed by: imp, iwasaki Notes: svn path=/head/; revision=70154
* MFPAO: Add support for AX88190, equipped in MELCO LPC3-TX.Seigo Tanimura2000-07-231-8/+32
| | | | Notes: svn path=/head/; revision=63775
* - Added new macros ED_P1_MAR(i) and ED_P1_PAR(i) that replaceKATO Takenori1999-09-021-2/+5
| | | | | | | | | | | `ED_P1_MAR + i' and `ED_P1_PAR + i', respectively. - convert ED_PC_RESET and ED_PC_MISC into relative offset from ED_PC_ASIC_OFFSET (those macros are not used in current source). Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=50808
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Discard previous commit.KATO Takenori1998-10-081-14/+1
| | | | Notes: svn path=/head/; revision=40072
* Add SMC EtherEZ98 support to ed driver (PC-98).KATO Takenori1998-10-081-1/+14
| | | | | | | | Reviewed by: kato Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=40068
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* This diff adds support for the HP PC Lan+ cards (model numbers: 27247BDavid Greenman1996-08-071-1/+85
| | | | | | | | | and 27252A) in FreeBSD's `ed' driver. Submitted by: A JOSEPH KOSHY <koshy@india.hp.com> Notes: svn path=/head/; revision=17465
* Fix a bunch of spelling errors in the comment fields ofMike Pritchard1996-01-301-9/+9
| | | | | | | a bunch of system include files. Notes: svn path=/head/; revision=13765
* if_ze.c was derived from if_ed.c about 42 (!) versions ago. It is nowPoul-Henning Kamp1995-09-261-1/+21
| | | | | | | | | | scheduled for demolition. This is a first step: get rid of if_zereg.h, by adding the five extra definitions to if_edreg.h. Also add some definitions which will become needed when if_ze.c gets replaced entirely by pccard and if_ed.c. (this is a 2.1.0 candidate) Notes: svn path=/head/; revision=11016
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-5/+5
| | | | Notes: svn path=/head/; revision=8876
* Much better fix/support for the 83c795 based cards (the new SMC EtherEZ)David Greenman1995-01-231-1/+21
| | | | | | | by steve@simon.chi.il.us (Steven E. Piette). Minor changes by me. Notes: svn path=/head/; revision=5807
* Updated to include improvements from FreeBSD 1.1.5. Fixed brokenessDavid Greenman1994-08-041-12/+4
| | | | | | | with multicast support and BPF. Notes: svn path=/head/; revision=1831
* Added $Id$David Greenman1994-08-021-1/+10
| | | | Notes: svn path=/head/; revision=1817
* Fixed brokeness in the support of the 83C790/Elite Ultra (now that IDavid Greenman1994-04-101-8/+49
| | | | | | | | | | | | | finally have the f**king documentation!): 1) Changed all the numeric register offsets to symbolic ones (it should have been this way originally). 2) If 16 bit, disable the shared memory when not using it. Apparantly switching between 8/16bit mode makes the Ultra unhappy unless this is done (i.e. it trashes the bus). Notes: svn path=/head/; revision=1349
* Added 8003EB board type. Clue from Gerard J van der Grinten (gvdg@cdc.com)David Greenman1994-02-021-1/+2
| | | | Notes: svn path=/head/; revision=1075
* Added type code for 8003W.David Greenman1994-02-021-2/+3
| | | | Notes: svn path=/head/; revision=1073
* Put some more info about the toshiba ethernet cards into if_edreg.h.Andreas Schulz1994-01-251-3/+20
| | | | | | | | Changed some numeric constants to defines in if_ed.c for the toshiba cards. Notes: svn path=/head/; revision=1015
* Thrown out the obsolete drivers in the TODO list.Andreas Schulz1994-01-111-1/+7
| | | | | | | | Added the Toshiba board-id's into the if_edreg.h file and the different checksum for the Toshiba ethernet-boards. Notes: svn path=/head/; revision=968
* * Revision 2.16 1993/11/29 16:55:56 davidgDavid Greenman1993-11-291-1/+6
| | | | | | | | | | | * merged in Garrett Wollman's strict prototype changes * * Revision 2.15 1993/11/29 16:32:58 davidg * From Thomas Sandford <t.d.g.sandford@comp.brad.ac.uk> * Add support for the 8013W board type Notes: svn path=/head/; revision=808
* * Revision 2.14 1993/11/22 10:55:30 davidgDavid Greenman1993-11-221-19/+7
| | | | | | | | | | | | | | | | * change all splnet's to splimp's * * Revision 2.13 1993/11/22 10:53:52 davidg * patch to add support for SMC8216 (Elite-Ultra) boards * from Glen H. Lowe * * Revision 2.12 1993/11/07 18:04:13 davidg * fix from Garrett Wollman: * add a return(0) at the end of ed_probe so that if the various device * specific probes fail that we just don't fall of the end of the function. Notes: svn path=/head/; revision=791
* * Revision 2.2 93/09/29 13:23:25 davidgDavid Greenman1993-09-291-6/+58
| | | | | | | | | | | | | | | | | | | * added no multi-buffer override for 3c503 * * Revision 2.1 93/09/29 12:32:12 davidg * changed multi-buffer count for 16bit 3c503's from 5 to 2 after * noticing that the transmitter becomes idle because of so many * packets to load. * * Revision 2.0 93/09/29 00:00:19 davidg * many changes, rewrites, additions, etc. Now supports the * NE1000, NE2000, WD8003, WD8013, 3C503, 16bit 3C503, and * a variety of similar clones. 16bit 3c503 now does multi * transmit buffers. Nearly every part of the driver has * changed in some way since rev 1.30. Notes: svn path=/head/; revision=520
* rewrote interrupt code to be cleaner, fixed up some other partsDavid Greenman1993-09-221-0/+4
| | | | | | | to make it easier to add future board types. Notes: svn path=/head/; revision=498
* As of this revision, all known bugs have been fixed. Some of the fixes include:David Greenman1993-09-091-1/+8
| | | | | | | | | | | | | | 1) fixed 3c503 lock-up if the thinwire cable was disconnected at boot time 2) 8013EBT boards now work (quite well!) in 16bit/16k mode 3) ED_NO_DOUBLE_BUFFERING flag now works 4) slightly higer performance (about 3%) with 16bit WD/SMC boards 5) support for WD8013WC (10BaseT) boards Additionally, the probe code has been reorganized to be much cleaner. This revision of the driver is 1.25. The release notes have been updated as well. Notes: svn path=/head/; revision=426
* Added config file override for memory size and added flags to forceDavid Greenman1993-07-201-1/+17
| | | | | | | | | | | 8bit or 16bit operation, and a flag to disable transmitter double buffering. See the updated "ed.relnotes" file for information about how to set the flags. This should be considered the first "production" release. It still needs a manual page, though. Notes: svn path=/head/; revision=172
* Second beta release of device driver for SMC/WD 80x3 ethernet boards +David Greenman1993-06-231-1/+36
| | | | | | | some additional comments. Notes: svn path=/head/; revision=43
* Second beta release of device driver for WD/SMC 80x3 and 3c503 ethernet boardsDavid Greenman1993-06-221-0/+8
| | | | Notes: svn path=/head/; revision=42
* Beta release of device driver for SMC/WD80x3 and 3C503 ethernet boards.David Greenman1993-06-141-0/+781
Notes: svn path=/head/; revision=6