aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lmc
Commit message (Collapse)AuthorAgeFilesLines
* Retire lmc(4)Ed Maste2018-05-012-5917/+0
| | | | | | | | | | | | | | This driver supports legacy, 32-bit PCI devices, and had an ambiguous license. Supported devices were already reported to be rare in 2003 (when an earlier version of the driver was removed in r123201). Reviewed by: rgrimes Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15245 Notes: svn path=/head/; revision=333144
* Add deprecation notice for lmc(4)Ed Maste2018-04-241-0/+1
| | | | | | | | | | | | | | | | | | | | We intend to remove support before FreeBSD 12 is branched. These are available only as 32-bit PCI devices. The driver has an ambiguous license and I have not been successful in contacting the driver's author in order to address this. The planned deprecation has been announced on -current and -stable; if we receive feedback that the driver is still useful and we are able to resolve the license issue this deprecation notice can be reverted. Reviewed by: bapt, brooks, imp, rgrimes MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15182 Notes: svn path=/head/; revision=332966
* SPDX: Reverse License ID tags from the lmc driver.Pedro F. Giffuni2017-12-222-4/+0
| | | | | | | | | | While the BSD-2-Clause license is there, the GPLv2 is also present. I am unsure of the implications of having both licenses as they are here. I'll just leave it untagged and open for interpretation. Notes: svn path=/head/; revision=327086
* Garbage collect IFCAP_POLLING_NOCOUNT. It wasn't used since veryGleb Smirnoff2017-12-061-1/+0
| | | | | | | | beginning of polling(4). The module always ignored return value from driver polling handler. Notes: svn path=/head/; revision=326642
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-272-2/+6
| | | | | | | | | | | | | | | 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
* lmc(4): fix the build without the bpf deviceEric van Gyzen2016-10-011-1/+5
| | | | | | | | | | | "make buildkernel" now works with and without "device bpf". Reported by: Dave Mischler <dave@mischler.com> MFC after: 3 days Sponsored by: Dell EMC Notes: svn path=/head/; revision=306567
* s/struct device */device_t/gAdrian Chadd2016-05-041-1/+1
| | | | | | | Submitted by: kmacy Notes: svn path=/head/; revision=299048
* sys/dev: minor spelling fixes.Pedro F. Giffuni2016-05-032-3/+3
| | | | | | | Most affect comments, very few have user-visible effects. Notes: svn path=/head/; revision=298955
* Replace several bus_alloc_resource() calls using default arguments with ↵Justin Hibbits2016-02-191-4/+4
| | | | | | | | | | | | bus_alloc_resource_any() Since these calls only use default arguments, bus_alloc_resource_any() is the right call. Differential Revision: https://reviews.freebsd.org/D5306 Notes: svn path=/head/; revision=295790
* Remove compat code for pre-FreeBSD 7 systems.Warner Losh2015-02-171-103/+10
| | | | Notes: svn path=/head/; revision=278881
* In order to reduce use of M_EXT outside of the mbuf allocator andRobert Watson2015-01-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | socket-buffer implementations, introduce a return value for MCLGET() (and m_cljget() that underlies it) to allow the caller to avoid testing M_EXT itself. Update all callers to use the return value. With this change, very few network device drivers remain aware of M_EXT; the primary exceptions lie in mbuf-chain pretty printers for debugging, and in a few cases, custom mbuf and cluster allocation implementations. NB: This is a difficult-to-test change as it touches many drivers for which I don't have physical devices. Instead we've gone for intensive review, but further post-commit review would definitely be appreciated to spot errors where changes could not easily be made mechanically, but were largely mechanical in nature. Differential Revision: https://reviews.freebsd.org/D1440 Reviewed by: adrian, bz, gnn Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=276750
* - Provide lmc_get_counter() to return counters that are not collected,Gleb Smirnoff2014-09-251-15/+34
| | | | | | | | but taken from hardware. - Mechanically convert to if_inc_counter() the rest of counters. Notes: svn path=/head/; revision=272095
* Run through unifdef(1) with slight hand-editing after. It is obvious,Gleb Smirnoff2014-09-252-2763/+14
| | | | | | | | | | that the driver is not going to be ever improved in terms of hardware support, it is going to be only maintained as our kernel APIs change. Carrying all the compatibility with ancient versions of NetBSD, OpenBSD, Linux and BSDI, as well as obsoleted FreeBSD versions has no reason. Notes: svn path=/head/; revision=272094
* Remove ifq_drops from struct ifqueue. Now queue drops are accounted inGleb Smirnoff2014-09-191-0/+1
| | | | | | | | | | | | | struct ifnet if_oqdrops. Some netgraph modules used ifqueue w/o ifnet. Accounting of queue drops is simply removed from them. There were no API to read this statistic. Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=271856
* Quiesce warning -Wmissing-variable-declarations from buildworld, which isSean Bruno2013-10-281-1/+1
| | | | | | | | | | | | | slightly unnerving. In file included from ioctl.c:48: /var/tmp/home/sbruno/bsd/head/tmp/usr/include/dev/lmc/if_lmc.h:939:13: warning: no previous extern declaration for non-static variable 'ssi_cables' [-Wmissing-variable-declarations] const char *ssi_cables[] = Notes: svn path=/head/; revision=257236
* The r48589 promised to remove implicit inclusion of if_var.h soon. PrepareGleb Smirnoff2013-10-261-0/+2
| | | | | | | | | | | 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
* Clean up SIOCSIFDSTADDR usage from ifnet drivers. The ioctl itself isGleb Smirnoff2013-09-111-1/+0
| | | | | | | | | | | extremely outdated, and I doubt that it was ever used for ifnet drivers. It was used for AF_INET sockets in pre-FreeBSD time. Approved by: re (hrs) Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=255471
* Add const qualifier to the dst parameter of the ifnet if_output method.Gleb Smirnoff2013-04-262-2/+2
| | | | Notes: svn path=/head/; revision=249925
* Mechanically substitute flags from historic mbuf allocator withGleb Smirnoff2012-12-041-3/+3
| | | | | | | malloc(9) flags in sys/dev. Notes: svn path=/head/; revision=243857
* More conversions of drivers to use the PCI parent DMA tag.Scott Long2012-03-121-1/+2
| | | | Notes: svn path=/head/; revision=232874
* In r191367 the need for if_free_type() was removed and a new memberBrooks Davis2011-11-111-1/+3
| | | | | | | | | | | if_alloctype was used to store the origional interface type. Take advantage of this change by removing all existing uses of if_free_type() in favor of if_free(). MFC after: 1 Month Notes: svn path=/head/; revision=227459
* Tag mbufs of all incoming frames or packets with the interface's FIBBjoern A. Zeeb2011-07-031-0/+1
| | | | | | | | | | | | setting (either default or if supported as set by SIOCSIFFIB, e.g. from ifconfig). Submitted by: Alexander V. Chernikov (melifaro ipfw.ru) Reviewed by: julian MFC after: 2 weeks Notes: svn path=/head/; revision=223741
* Merge amd64 and i386 bus.h and move the resulting header to x86. ReplaceTijl Coosemans2010-12-201-2/+2
| | | | | | | | | | | | the original amd64 and i386 headers with stubs. Rename (AMD64|I386)_BUS_SPACE_* to X86_BUS_SPACE_* everywhere. Reviewed by: imp (previous version), jhb Approved by: kib (mentor) Notes: svn path=/head/; revision=216592
* One more #ifdef fix for GCC 4.4.Edward Tomasz Napierala2010-01-081-1/+1
| | | | Notes: svn path=/head/; revision=201799
* This driver has two modes, a netgraph mode and an ifnet mode. In theJohn Baldwin2009-11-192-18/+15
| | | | | | | | netgraph mode it used a private timer to drive the transmit watchdog. In the ifnet mode it used if_watchdog. Now it always uses the private timer. Notes: svn path=/head/; revision=199538
* Unbreak build.Attilio Rao2009-05-302-2/+3
| | | | | | | Pointy hat to: attilio Notes: svn path=/head/; revision=193105
* When user_frac in the polling subsystem is low it is going to busy theAttilio Rao2009-05-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | CPU for too long period than necessary. Additively, interfaces are kept polled (in the tick) even if no more packets are available. In order to avoid such situations a new generic mechanism can be implemented in proactive way, keeping track of the time spent on any packet and fragmenting the time for any tick, stopping the processing as soon as possible. In order to implement such mechanism, the polling handler needs to change, returning the number of packets processed. While the intended logic is not part of this patch, the polling KPI is broken by this commit, adding an int return value and the new flag IFCAP_POLLING_NOCOUNT (which will signal that the return value is meaningless for the installed handler and checking should be skipped). Bump __FreeBSD_version in order to signal such situation. Reviewed by: emaste Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=193096
* The module name convention is foo, not if_foo.Warner Losh2009-05-151-5/+5
| | | | Notes: svn path=/head/; revision=192147
* Change if_output to take a struct route as its fourth argument in orderKip Macy2009-04-162-2/+3
| | | | | | | | | to allow passing a cached struct llentry * down to L2 Reviewed by: rwatson Notes: svn path=/head/; revision=191148
* shutdown returns an intWarner Losh2009-02-052-2/+3
| | | | Notes: svn path=/head/; revision=188178
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).Dag-Erling Smørgrav2008-10-231-2/+2
| | | | | | | MFC after: 3 months Notes: svn path=/head/; revision=184205
* Make lmc(4) compile without INET6 defined[1]. While here make itBjoern A. Zeeb2008-08-241-0/+6
| | | | | | | | | | compile if there is no INET defined. Obtained from: zec (via p4 vimage branch)[1] MFC after: 3 months Notes: svn path=/head/; revision=182112
* Rename several functions in if_lmc with potential name collisions withRobert Watson2008-07-052-33/+35
| | | | | | | | | | | | global symbols, such as raw_input and raw_output, to have lmc_ prefixes. This doesn't affect actual functionality since the functions are static, but will limit the opportunities for current confusion and future difficulty. MFC after: 3 days Notes: svn path=/head/; revision=180304
* Universally adopt most conventional spelling of acquire.Robert Watson2007-05-271-1/+1
| | | | Notes: svn path=/head/; revision=170035
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-231-1/+1
| | | | | | | | | | | | | | | | 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
* Sweep kernel replacing suser(9) calls with priv(9) calls, assigningRobert Watson2006-11-062-1/+8
| | | | | | | | | | | | | | | | specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net> Notes: svn path=/head/; revision=164033
* The contents pointed by ssi_cables[] is never changed so explicitlyXin LI2006-07-211-1/+1
| | | | | | | | | | declare it as const char * instead of char *. This change have no side impact to the code itself, and is a step forward to WARNS=6 truss(1). Notes: svn path=/head/; revision=160541
* Cleanup: Use if_initname to set if_dname, if_dunit, and if_xname insteadBrooks Davis2006-07-151-3/+1
| | | | | | | of doing it by hand. Notes: svn path=/head/; revision=160375
* add missed calls to bpf_peers_presentSam Leffler2006-06-021-1/+1
| | | | Notes: svn path=/head/; revision=159183
* Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp2006-05-161-1/+0
| | | | | | | unnecessary. Notes: svn path=/head/; revision=158651
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andRuslan Ermilov2005-12-052-39/+39
| | | | | | | custom kernels. Notes: svn path=/head/; revision=153110
* Fix -Wundef from compiling the amd64 LINT.Ruslan Ermilov2005-12-041-58/+60
| | | | Notes: svn path=/head/; revision=153084
* - Don't include opt_global.h, it is always included implicitly.Gleb Smirnoff2005-10-051-1/+3
| | | | | | | - Include opt_device_polling.h Notes: svn path=/head/; revision=150967
* For some utterly bizarre reason, sparc64 coerces PAGE_SIZE to be a longScott Long2005-10-041-2/+3
| | | | | | | | | instead of an int. No other FreeBSD architecture does this. Patch over this problem in the lmc driver. While I'm here, correct a mistake with DEVICE_POLLING. Notes: svn path=/head/; revision=150899
* Reintroduce the lmc T1/E1/T3 WAN driver. This version is locked, supportsScott Long2005-10-032-0/+8713
| | | | | | | | | | | | | | interface polling, compiles on 64-bit platforms, and compiles on NetBSD, OpenBSD, BSD/OS, and Linux. Woo! Thanks to David Boggs for providing this driver. Altq, sppp, netgraph, and bpf are required for this driver to operate. Userland tools and man pages will be committed next. Submitted by: David Boggs Notes: svn path=/head/; revision=150849
* Continue to remove drivers that don't compile and haven't compiled inWarner Losh2003-12-076-3829/+0
| | | | | | | | | | | | | a long time: lmc The LAN Media Corp PCI WAN driver based on tulip. This driver hasn't compiled for 3 years since the PCI compat shims were removed, and Lan Media appears to have gone out of business. These cards appear to be rare (a recent search of ebay had no hits). Should someone wish to revive this driver, submitting patches to make it compile plus a testing report will bring it back. Notes: svn path=/head/; revision=123201
* Use __FBSDID().David E. O'Brien2003-08-244-4/+12
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-1/+1
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119291
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-7/+7
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-7/+7
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623