summaryrefslogtreecommitdiffstats
path: root/sys/dev/sr
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
* Fix the rest of the 64-bit warnings for the sr(4) driver.jhb2002-11-071-4/+4
|
* Fix lots of places that assume sizeof(int) == sizeof(void *). Most ofjhb2002-11-071-18/+18
| | | | | | | these were cosmetic. However, at least two of these changes fix bugs where a (fake) pointer to a RX descriptor was added to the physical memory start address with the cast in the wrong place resulting in rxdesc[pmem_start] instead of (uintptr_t)rxdesc + pmem_start.
* Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit).brooks2002-10-011-4/+4
|
* Don't abuse __FreeBSD__ as version number. Since it was >= 3, removeimp2002-07-211-2/+0
| | | | the ifdef completely.
* 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
* Fix clock selection for X.21 interfaces.jhay2001-02-261-13/+5
|
* Newbusify the sr device and move it to its new location.jhay2001-01-304-3797/+700
|
* Stop counting sppp interfaces, we were just testing its presence to givepeter2001-01-292-14/+0
| | | | a warning if it was missing.
* 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-46/+72
| | | | | | | | 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/+60
| | | | | | | | | 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)
* Another mismatch found by Gcc:julian2000-12-122-2/+0
| | | | | This is what happenss when you let the patches pile up too long without committing them.. brain rot..
* Reviewed by: Archie@freebsd.orgjulian2000-12-122-4/+12
| | | | | | | | | | | | | 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-18/+12
| | | | | 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..
* Mass update of isa drivers using compatability shims to usepeter2000-05-282-2/+24
| | | | 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
* Make the N2 isa cards probe again. Remove the unused frame relay hooks.jhay2000-04-082-430/+16
| | | | | | | This should also fix PR 17814 where flags were ignored on the first usage of ifconfig on the interface. PR: 17814
* 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
|
* Fix an #ifdef that should have been and #ifndef.archie2000-01-202-2/+2
| | | | Noticed by: Hellmuth Michaelis <hm@hcs.de>
* Add explicit null entries for new entrypoints.julian1999-12-012-2/+4
| | | | Forgotten by: Archie
* fix braino.. line misplaced.julian1999-11-192-2/+2
|
* protect some more operations with splimp() under Netgraph.julian1999-11-192-6/+6
|
* Fix typo in previous commit.archie1999-11-022-2/+2
|
* User netgraph typedefs for methodsjulian1999-11-012-18/+18
|
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-213-74/+1347
| | | | | | | | | | 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
* 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-284-4/+4
|
* Rename bpfilter to bpf.des1999-07-062-12/+12
|
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirepeter1999-07-031-6/+1
| | | | files. config will leave the whole file out if configured to do so.
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:peter1999-05-091-6/+3
| | | | | | | | #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.)
* GC unused variablepeter1999-05-062-4/+2
|
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tpeter1999-04-241-1/+5
| | | | hurt the driver portability to 3.x too much for where drivers are shared.
* 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.
* Fix typo. Unit is spelled with a 'u'. 'init' just types too easily.julian1999-01-182-4/+4
|
* Fix screwed up previous commit.julian1999-01-182-8/+18
| | | | | Obviously no-one is using this card on ISA as the interrupts were NOT being handled.
* From inspection, ISA interrupts were completely broken..julian1999-01-182-2/+40
| | | | | revert some of the old ISA code. (I can't test this but I'm working on the file.)
* Remove/comment out unused functions.eivind1999-01-122-42/+2
|
* Straigthen out the use of the tls and tlf callbacks.phk1998-12-162-30/+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.
* probe function changed from returning char * to const char *.dillon1998-12-141-3/+3
|
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-222-4/+6
| | | | | | | 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
* 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.
OpenPOWER on IntegriCloud