summaryrefslogtreecommitdiff
path: root/sys/dev/ep
AgeCommit message (Collapse)Author
2019-05-17FCP-101: Remove ep(4).Brooks Davis
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=347912
2018-10-25Deprecate a number of less used 10 and 10/100 Ethernet devices.Brooks Davis
The current deprecated list is: ae, bm, cs, de, dme, ed, ep, ex, fe, pcn, sf, sn, tl, tx, txp, vx, wb, xe The list as refined as part of FCP-0101. Per the FCP, devices may be removed from the deprecation list if enough users are found or they are converted to iflib. FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Notes: svn path=/head/; revision=339703
2018-10-20Remove incorrect BSD-2-Clause-FreeBSD SPDX tagsEd Maste
Notes: svn path=/head/; revision=339469
2018-10-20Remove incorrect BSD-2-Clause-FreeBSD SPDX tagEd Maste
Notes: svn path=/head/; revision=339467
2017-12-30Fix r327383:Cy Schubert
.../sys/dev/ep/elink.c:31:1: error: '/*' within block comment [-Werror,-Wcomment] /* $NetBSD: elink.c,v 1.6 1995/01/07 21:37:54 mycroft Exp $ ^ Notes: svn path=/head/; revision=327384
2017-12-30elink.[ch]: Move historic VCS tags after the license.Pedro F. Giffuni
This matches better our common practices and style. Notes: svn path=/head/; revision=327383
2017-12-30Move i386/isa/elink.[hc] to dev/ep.Konstantin Belousov
The ep(4) driver is the only consumer of the two functions from elink.c. I removed the standalone module as well, and most likely, the module metadata is not needed anywhere, but this is for later cleanup. Discussed with: imp, jhb Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=327381
2017-12-23Create a new ISA_PNP_INFO macro. Use this macro every where we haveWarner Losh
ISA PNP card support (replace by hand version in if_ed). Move module declarations to the end of some files. Fix PCCARD_PNP_INFO to use nitems(). Remove some stale comments about pc98, turns out the comment was simply wrong. Notes: svn path=/head/; revision=327102
2017-11-27sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
2017-02-16Remove EISA support for ep driver. Left in place EISA strings that areWarner Losh
still relevant (ISA cards can still be in EISA mode, and we're still ignoring those in the identify routine). Notes about cards in EISA mode have been left in the manual since they aren't relevant to EISA support, but instruct how to properly configure an ISA card in a mode when it is in a ISA bus slot. Notes: svn path=/head/; revision=313831
2017-02-16Remove references to EISA support from the vx driver, along with EISAWarner Losh
support. Fix a comment block that's shared with both vx and ep. Remove obsolete refernce to statically compiling a kernel with a fixed number of vx devices. Have not removed EISA from the title of the document the register definitions were originally derived from (though no doubt more recent docments were also consulted). Notes: svn path=/head/; revision=313830
2017-02-15Remove Micro Channel Architecture support. Of the commonly availableWarner Losh
machines, only a few 486 machines that used it, and those haven't had enough memory to run FreeBSD for quite some time (often limited to 16MB). Not to be confused with the Machine Check Architecture, which is still very much alive and used (and untouched by this commit). No Objection From: arch@ Notes: svn path=/head/; revision=313783
2017-01-28Remove pc98 support completely.Yoshihiro Takahashi
I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
2016-02-01These files were getting sys/malloc.h and vm/uma.h with header pollutionGleb Smirnoff
via sys/mbuf.h Notes: svn path=/head/; revision=295126
2015-12-11Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingWarner Losh
block. Use it in all the PNP drivers to export either the current PNP table. For uart, create a custom table and export it using MODULE_PNP_INFO since it's the only one that matches on function number. Differential Review: https://reviews.freebsd.org/D3461 Notes: svn path=/head/; revision=292079
2014-09-18Mechanically convert to if_inc_counter().Gleb Smirnoff
Notes: svn path=/head/; revision=271806
2014-08-21Add missing locking.Adrian Chadd
Whilst here, assert that the lock is held when calling epstop(). Tested: ep0: <3com Megahertz 574B> Notes: svn path=/head/; revision=270254
2013-10-29- Provide necessary includes.Gleb Smirnoff
- Remove unnecessary includes. Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=257324
2013-10-26The r48589 promised to remove implicit inclusion of if_var.h soon. PrepareGleb Smirnoff
to this event, adding if_var.h to files that do need it. Also, include all includes that now are included due to implicit pollution via if_var.h Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=257176
2013-01-30Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵Sofian Brabez
device_method_t arrays Reviewed by: cognet Approved by: cognet Notes: svn path=/head/; revision=246128
2012-12-04Mechanically substitute flags from historic mbuf allocator withGleb Smirnoff
malloc(9) flags in sys/dev. Notes: svn path=/head/; revision=243857
2012-01-07ether_ifattach() sets if_mtu to ETHERMTU, don't bother set it againKevin Lo
Reviewed by: yongari Notes: svn path=/head/; revision=229767
2011-02-21Fix typos - remove duplicate "the".Rebecca Cran
PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218909
2010-05-03Add new tunable 'net.link.ifqmaxlen' to set default send interfaceMaxim Sobolev
queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value. MFC after: 1 month Notes: svn path=/head/; revision=207554
2010-01-08Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in orderEdward Tomasz Napierala
to silence newer GCC versions. Notes: svn path=/head/; revision=201794
2009-11-19- Add a private timer to drive the transmit watchdog instead of usingJohn Baldwin
if_watchdog and if_timer. - Fix some issues in detach for sn(4), ste(4), and ti(4). Primarily this means calling ether_ifdetach() before anything else. Notes: svn path=/head/; revision=199559
2009-09-08Cleanup tortured logic a big. Noticed by FlexLint, per phk.Warner Losh
# My reading of the docs suggests this can only happen on 10Base5 and # 10Base2 setups (and maybe only the former), which I can't test # adequately since I have nothing but 10BaseT, etc here. Notes: svn path=/head/; revision=196984
2009-09-08Revert previous commit and add myself to the list of people who shouldPoul-Henning Kamp
know better than to commit with a cat in the area. Notes: svn path=/head/; revision=196970
2009-09-08Add necessary include.Poul-Henning Kamp
Notes: svn path=/head/; revision=196969
2009-05-15Add a missing break in a switch statement.Christian Brueffer
Found with: Coverity Prevent(tm) CID: 4302 MFC after: 2 weeks Notes: svn path=/head/; revision=192158
2009-04-11Two refinements to the 3c1 support:Warner Losh
1) Flag it and only access that command on the 3c1 2) The TX PLL appears to power down when not in use, so we have to power it back up when we've been idle. Do this at the start of ifstart. Otherwise we fall off the net. Notes: svn path=/head/; revision=190908
2009-04-11o Report ethernet status for at least 10BaseT media. Since I don'tWarner Losh
have other media to test against, I've left that media reporting unchanged. o Enable the TX_PLL when we enable TX. This is harmless on most cards, but required to get the 3c1 CF card working. Power savings could be had by managing this better, but for now it gets my card working. Notes: svn path=/head/; revision=190907
2007-02-23 o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati
bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) Notes: svn path=/head/; revision=166906
2007-02-23o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati
bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ Notes: svn path=/head/; revision=166901
2006-12-01ALTQify ep(4).Max Laier
Tested and Requested by: Andy Brook MFC after: 3 days Notes: svn path=/head/; revision=164810
2006-02-04Remove ifdef notdef SIOCHWADDR vestige.Warner Losh
Notes: svn path=/head/; revision=155281
2005-11-11- Store pointer to the link-level address right in "struct ifnet"Ruslan Ermilov
rather than in ifindex_table[]; all (except one) accesses are through ifp anyway. IF_LLADDR() works faster, and all (except one) ifaddr_byindex() users were converted to use ifp->if_addr. - Stop storing a (pointer to) Ethernet address in "struct arpcom", and drop the IFP2ENADDR() macro; all users have been converted to use IF_LLADDR() instead. Notes: svn path=/head/; revision=152315
2005-09-20Better use of gone.Warner Losh
Notes: svn path=/head/; revision=150395
2005-09-19Make sure that we call if_free(ifp) after bus_teardown_intr. Since weWarner Losh
could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call. Notes: svn path=/head/; revision=150306
2005-09-13MFp4: Migrate from CARD_CIS_SCAN to pccard_cis_scanWarner Losh
Notes: svn path=/head/; revision=150110
2005-08-29Simplify names.Warner Losh
Notes: svn path=/head/; revision=149559
2005-08-09Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andRobert Watson
IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days Notes: svn path=/head/; revision=148887
2005-07-31The isa attachment calls ep_free after it has already been called onceWarner Losh
in the resource error in ep_alloc case. This results in a panic. Zero resources to make it safe to call twice pending resolution of layering questions. MFC After: 3 days Notes: svn path=/head/; revision=148581
2005-07-31Add newer commandsWarner Losh
Notes: svn path=/head/; revision=148579
2005-07-19Spell destroy in a more traditional wayWarner Losh
Notes: svn path=/head/; revision=148164
2005-07-13NitsWarner Losh
Notes: svn path=/head/; revision=147960
2005-07-01Upon relection, we shouldn't allow the tuple structs to be modified byWarner Losh
the functor, so make it a const pointer, and chase down the resulting const-poisoning. Approved by: re (scottl) Notes: svn path=/head/; revision=147729
2005-07-01Make a pass and cleanup the printfs from this driver.Warner Losh
Approved by: re (scottl) blanket ep Notes: svn path=/head/; revision=147717
2005-07-01Minor cleanup of ep driver and pccard attachment:Warner Losh
o Grab the MAC address out of the CIS if the card has the special 3Com 0x88 tuple. Most 3Com cards don't have this tuple, but we prefer it to the eeprom since it only appears to be present when the eeprom doesn't have the info. So far, I've only observed this on my 3C362 and 3C362B cards, but the NetBSD driver implies that the 3C362C also has this tuple, and that some 3C574 cards do too (none of mine do). ep_pccard_mac was written after looking at the NetBSD code. o Store the enet addr in the softc for this device, so we can use the overridden MAC to set the station address. o Create a routine to set the station address and use it where we need it. o setup the cmd shitfs and such before we call ep_alloc(), and remove setting up the cmd shift value there. It initializes to 0, and those attachments that need to frob it do so before calling ep_alloc. o Remove some obsolete comments o No longer a need to export ep_get_macaddr, so make it static o ep_alloc already grabs the EEPROM id, so we don't need to grab it again in ep_pccard_attach. o eliminate unit, it isn't needed, fix some printfs to be device_printf instead. # All my pccards except the 3C1 work now. Didn't test ISA or cbus cards # that I have: 3C509B-TP or 3C569B-J-TPO Tested on: 3C589B, 3C589C, 3C589D, 3C589D-TP, 3C562, 3C562B/3C563B, 3C562D/3C563D, 3CCFE574BT, 3CXEM556, 3CCSH572BT, 3C574-TX, 3CCE589EC, 3CXE589EC, 3CCFEM556, 3C1 Approved by: re (scottl) Notes: svn path=/head/; revision=147715
2005-06-28Add a chipset field to the lookup. Use this chipset type to determineWarner Losh
which command to use to read the eeprom and which devices have an MII. Simplify code by no longer using the OLDCARD compat rouintes (I don't know if this breaks OLDCARD on pc98 or not, but OLDCARD on pc98 days are numbered, I hope). This also removes a number of kludges that we had before because they are OBE. Add a convenience routine to lookup the device to avoid many casts in many places. Tested with: 3C589D-TP, 3CCSH572BT Approved by: re (scottl, blanket ep) Notes: svn path=/head/; revision=147649