summaryrefslogtreecommitdiffstats
path: root/sys/dev/ar
Commit message (Collapse)AuthorAgeFilesLines
* As the if_ar driver doesn't contain locking or run its interruptrwatson2004-08-131-1/+2
| | | | | MPSAFE, mark it as IFF_NEEDSGIANT so that its if_start routine is run holding Giant.
* Convert Netgraph to use mbuf tags to pass its meta information around.julian2004-06-251-6/+5
| | | | | | | | Thanks to Sam for importing tags in a way that allowed this to be done. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also allow the sr and ar drivers to create netgraph versions of their modules. Document the change to the ksocket node.
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* Switch to using C99 sparse initialisers for the type methods array.julian2004-05-291-12/+9
| | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-2/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Get rid of the last two uses of NG_NODELEN + 1 in the base system byharti2004-01-261-1/+1
| | | | replacing them with NG_NODESIZ.
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-2/+2
| | | | | | | | | | | | | 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)
* Use __FBSDID().obrien2003-08-243-9/+10
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-08-221-2/+2
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Get rid of kvtop().jhay2003-04-234-79/+75
| | | | Change inb() and outb() to use bus_space*().
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-04-152-2/+4
| | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
* Move ar_devclass definition to if_ar.c.nyan2003-02-232-2/+2
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-3/+3
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-3/+3
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* network interface driver changes:sam2002-11-141-4/+2
| | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re
* Use if_printf(ifp, "blah") instead of printf("ar%d: blah", ifp->if_unit).brooks2002-10-011-4/+4
|
* 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.
OpenPOWER on IntegriCloud