summaryrefslogtreecommitdiffstats
path: root/sys/dev/ar
Commit message (Collapse)AuthorAgeFilesLines
* Directives may not be used inside a macro argument, so don't.obrien2002-05-091-3/+3
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-2/+3
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Move the isa parts to a separate file.jhay2001-04-162-2443/+2
|
* Update include files to reflect the new location of the ar device.jhay2001-01-302-5/+5
|
* Stop counting sppp interfaces, we were just testing its presence to givepeter2001-01-292-14/+0
| | | | a warning if it was missing.
* Newbusify ar(4).jhay2001-01-244-408/+725
|
* Special case for compiling LINT - just give a warning and continue on.peter2001-01-171-0/+5
| | | | | At least we have a chance at getting test compile coverage for the rest of the kernel now.
* Part 2 of the netgraph rewrite.julian2001-01-082-30/+30
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-062-48/+76
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-182-66/+62
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Reviewed by: Archie@freebsd.orgjulian2000-12-122-6/+14
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-082-14/+8
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-252-6/+16
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Duh. These have been sitting in my tree since I committed this stuff.julian2000-11-201-0/+29
| | | | | Thes are identical to what I committed except that they had the correct copyright headers. This is what I was SUPPOSED to have checked in..
* Remove unneeded #include <machine/clock.h>phk2000-10-152-2/+0
|
* Mass update of isa drivers using compatability shims to usepeter2000-05-282-4/+26
| | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
* Two simple changes to the kernel internal API for netgraph modules,julian2000-04-282-6/+8
| | | | | | | to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie
* Ahhrggg. Put the test for the compat shims AFTER the file that includesimp2000-03-271-4/+4
| | | | | | them. Pointed out by: bde
* Per conversations in -current, add #error to these drivers when you don'timp2000-03-271-0/+4
| | | | have the right compatibility shims enabled. ISA drivers to follow later.
* Remove definition of the unimplemented "control" hook.archie2000-01-213-5/+2
|
* Add explicit null entries for new entrypoints.julian1999-12-012-2/+4
| | | | Forgotten by: Archie
* protect some more operations with splimp() under Netgraph.julian1999-11-192-6/+6
|
* Fix some warnings.peter1999-11-182-4/+4
|
* User netgraph typedefs for methodsjulian1999-11-012-18/+18
|
* Make it compile inthe NETGRAPH case.julian1999-10-252-2/+2
|
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-213-18/+1081
| | | | | | | | | | Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
* Add support for the PCI version of the Digi SYNC/570i cards.jhay1999-10-174-342/+1069
|
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-252-18/+0
| | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Rename bpfilter to bpf.des1999-07-062-12/+12
|
* Fix 'signed char as array index' warnings and an unused variable.peter1999-05-062-8/+6
|
* Organize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better,phk1999-03-302-16/+2
| | | | | | centralize the code. Remember to call TLF/TLS on the hardware in CISCO mode.
* Straigthen out the use of the tls and tlf callbacks.phk1998-12-162-16/+2
| | | | | | | | | Not tested on the if_sr, if_cx and if_ar drivers, but expected to work just the same as it used to. Any users of these drivers (or even better: donors of hardware for them) please contact phk@freebsd.org so we can test the next batch of changes to if_sppp.
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-222-4/+8
| | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato
* Fixed printf format errors. Only one left in LINT on i386's.bde1998-08-242-10/+10
|
* Removed unused includes.bde1998-06-212-6/+2
|
* Added used include of <i386/isa/isa_device.h> - don't depend onbde1998-06-172-2/+4
| | | | pollution in <sys/conf.h>
* This commit fixes various 64bit portability problems required fordfr1998-06-072-6/+6
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-172-4/+4
|
* Make INET a proper option.eivind1998-01-082-2/+14
| | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
* Added used #include - don't depend on <sys/mbuf.h> includingbde1997-09-022-2/+4
| | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
* Major overhaul of the SyncPPP layer. Basically, this comprises now ajoerg1997-05-192-2/+16
| | | | | | | | | | | | | | | | | | | | | full implementation of the sate machine as described in RFC1661, and provides support for plugging in various control protocols. I needed this to provide PPP support for the BISDN project (right now). Unfortunatley, while the existing API was almost up to the point, i needed one minor API change in order to decouple the this-layer- started and this-layer-finished actions from the respective Up and Down events of the lower layer. This requires two additional lines in the attach routines of all existing lower layer interface drivers that are using syncPPP (shortcutting these actions and events). Apart from this, i believe i didn't change the API of all this, so everything should plug in without too many hassles. Please report if i broke something in the existing drivers. For a list of features (including new ones like dial-on-demand), and things still to be done, please refer to the man page i'll commit asap. Encouraged by: Serge Vakulenko <vak@cronyx.ru>
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-223-3/+3
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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.
* if_sr.c corrupted the global variable `ticks'.jhay1996-10-312-18/+8
| | | | | | | Cosmetic changes: if_sr_.c won't compile with a K&R compiler, so there is no need to cast the timeout arg to the (wrong) type. Submitted by: bde
* Remove some unnecessary code in the interrupt handler.jhay1996-10-282-24/+30
| | | | | | | Check that a received packet isn't longer than MCLBYTES. This will sometimes happen if a cable is plugged into or removed from a live system. Try to cater better for early receive interrupts.
* Remove devconf, it never grew up to be of any use.phk1996-09-062-144/+2
|
* Added #include of <machine/md_var.h>. This will be needed whenbde1996-06-252-2/+4
| | | | | some declarations are moved from <machine/cpufunc.h> to better places.
* Improve the handling of receive errors. Fix a nasty bug in the receivejhay1996-04-122-110/+324
| | | | buffer code.
* Changes to the Digi/Arnet SYNC driver:peter1996-03-173-327/+552
| | | | | | | | | | | | | | | | | | 1. Create 2 x 8k transmit buffer blocks in place of the 16k block previously. With this change the speed as tested with ttcp on a 2Mbit link went up from 206kbyte/s to 236kbyte/s. 2. Change the rest of the functions to also have the definition of the return value on a sepperate line. 3. Remove some unused variables. 4. Add code to recover from DMA underruns. 5. Reorder ar_get_packets() to handle errors better. 6. Only allocate a mbuf cluster if the data is more than the mbuf. (and in a second diff in addition to the above) 7. Stops the occasional DMA underruns that occurred when 2 channels are running at 2Mbit/s. Submitted by: John Hay <jhay@mikom.csir.co.za>
OpenPOWER on IntegriCloud