aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/de
Commit message (Collapse)AuthorAgeFilesLines
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-2/+2
| | | | Notes: svn path=/head/; revision=102412
* Fix typo in the BSD copyright: s/withough/without/Jens Schweikhardt2002-06-023-3/+3
| | | | | | | | Spotted and suggested by: des MFC after: 3 weeks Notes: svn path=/head/; revision=97748
* Move the new byte order function prototypes from <sys/param.h> toMike Barcroft2002-04-261-0/+1
| | | | | | | <sys/endian.h>. This puts us in line with NetBSD and OpenBSD. Notes: svn path=/head/; revision=95533
* No FreeBSD/vax here either.Peter Wemm2001-11-031-1/+1
| | | | Notes: svn path=/head/; revision=85959
* Remove some unused stuffPeter Wemm2001-03-251-27/+1
| | | | Notes: svn path=/head/; revision=74773
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedPoul-Henning Kamp2001-02-061-3/+3
| | | | | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh Notes: svn path=/head/; revision=72084
* Another round of the <sys/queue.h> FOREACH transmogriffer.Poul-Henning Kamp2001-02-041-6/+3
| | | | | | | | Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=72012
* Mechanical change to use <sys/queue.h> macro API instead ofPoul-Henning Kamp2001-02-041-6/+6
| | | | | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=71999
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-251-8/+8
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=69152
* Convert the de driver into a loadable module. Still missing is anMark Murray2000-10-311-72/+14
| | | | | | | | | | | unload method. Lots of old cruft is removed. Thanks to WPaul for large clue-injection and debugging services. Reviewed by: wpaul Notes: svn path=/head/; revision=68021
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Make all Ethernet drivers attach using ether_ifattach() and detach usingArchie Cobbs2000-07-131-4/+1
| | | | | | | | | | | | ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net Notes: svn path=/head/; revision=63090
* Use the correct name for the PCI command register (PCIR_COMMAND). Don'tPeter Wemm2000-05-281-3/+3
| | | | | | | use constant that used to be a variable in our (very) old pci code. Notes: svn path=/head/; revision=61040
* Move code to handle BPF and bridging for incoming Ethernet packets outArchie Cobbs2000-05-141-27/+2
| | | | | | | | | | | | | | | | | | of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code. The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers. The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists. Reviewed by: freebsd-net Notes: svn path=/head/; revision=60536
* Use bus_space for all register accesses.Doug Rabson2000-05-132-42/+24
| | | | Notes: svn path=/head/; revision=60528
* Bounce a copy of the mbuf to the bpf listener when we submit the framesJonathan Lemon2000-05-061-2/+6
| | | | | | | | | | for transmit to the adapter, not when we receive a transmit interrupt indicating that they were sent. This fix now allows tcpdump to produce sane results by recording the timestamp at the point where the mbuf was actually transmitted. Notes: svn path=/head/; revision=60102
* Ignore tulip chips on LanMedia WAN cards.Poul-Henning Kamp2000-04-251-0/+7
| | | | Notes: svn path=/head/; revision=59629
* A fairly simple newbusification of if_dePeter Wemm2000-03-201-84/+99
| | | | Notes: svn path=/head/; revision=58339
* Include the file that defines PCIM_CMD_BUSMASTEREN.Matt Jacob2000-02-161-0/+1
| | | | Notes: svn path=/head/; revision=57249
* Ensure that the busmaster enable bit is set; we can't assume that allMike Smith2000-02-161-1/+8
| | | | | | | | | | BIOS code will get this right (and some certainly doesn't). Submitted by: W. Gerald Hicks <jhix@mindspring.com> Approved by: jkh Notes: svn path=/head/; revision=57248
* Remove NBPF conditionality of bpf calls in most of our network drivers.Poul-Henning Kamp1999-09-251-9/+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. Notes: svn path=/head/; revision=51646
* Add missing include.Bill Fumerola1999-08-211-0/+1
| | | | | | | | Submitted by: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> Reviewed by: Alex Perel <veers@disturbed.net> Notes: svn path=/head/; revision=50133
* Implement a new generic mechanism for attaching handler functions toMike Smith1999-08-211-2/+3
| | | | | | | | | | | | | | | | events, in order to pave the way for removing a number of the ad-hoc implementations currently in use. Retire the at_shutdown family of functions and replace them with new event handler lists. Rework kern_shutdown.c to take greater advantage of the use of event handlers. Reviewed by: green Notes: svn path=/head/; revision=50107
* Replace the tulip_delay_300ns() with a DELAY(1). Hammering the PCI busPeter Wemm1999-08-191-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | to achieve a delay is pretty mean. Andrew reports: "The tulip_delay_300ns() is, well, bloody stupid on machines with a heavily loaded PCI bus. It tries to do a delay by assuming PCI reads will take a certain amount of time & issues a large amount of (expensive, 5% CPU when your PCI bus is heavily loaded) pci reads. Locally, we've replaced the calls to tulip_delay_300ns(sc) in the EMIT macros with a simple DELAY(1) and not seen any problems. Plus we've gained about 50Mb/sec throughput on our gigabit network cards because of the added PCI bus bandwidth available." Also, I do not understand why, but this change appears to stop the Transmit Fifo underrun on one of my systems (but not the Alpha PC164SX). This shouldn't make that much of a difference since the mii bus isn't touched all that often, but perhaps when it does get accessed and hence hammers the register, it was causing the chip to get upset. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=50055
* A little more tidying up.Peter Wemm1999-08-092-63/+22
| | | | Notes: svn path=/head/; revision=49575
* Expand a heap of macros that obscure readability and are no longer neededPeter Wemm1999-08-092-237/+122
| | | | | | | here, and do a bit of general tidy up. Notes: svn path=/head/; revision=49572
* More pre-lite2 support zapped and some more tidy-up.Peter Wemm1999-08-092-74/+1
| | | | Notes: svn path=/head/; revision=49568
* Unifdef -D__FreeBSD__ - and remove pre-lite2 support.Peter Wemm1999-08-092-115/+12
| | | | Notes: svn path=/head/; revision=49567
* Unifdef -U__NetBSD__Peter Wemm1999-08-092-258/+1
| | | | Notes: svn path=/head/; revision=49566
* Unifdef -U__bsdi__Peter Wemm1999-08-092-305/+4
| | | | Notes: svn path=/head/; revision=49563
* s/Id/FreeBSD/Peter Wemm1999-08-093-3/+6
| | | | Notes: svn path=/head/; revision=49562
* Strip __FreeBSD_version >= 300000 conditionals.Peter Wemm1999-08-092-32/+9
| | | | Notes: svn path=/head/; revision=49561
* Merge changes from NetBSD rev 1.82 -> 1.86 via vendor branch.Peter Wemm1999-08-091-15/+102
| | | | | | | Among the changes: 1.84: support compex 4-port cards. Notes: svn path=/head/; revision=49560
* s/TULUP/TULIP/ - from vendor branch.Peter Wemm1999-08-081-3/+3
| | | | Notes: svn path=/head/; revision=49541
* Rename bpfilter to bpf.Dag-Erling Smørgrav1999-07-062-9/+9
| | | | Notes: svn path=/head/; revision=48645
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirePeter Wemm1999-07-031-4/+1
| | | | | | | files. config will leave the whole file out if configured to do so. Notes: svn path=/head/; revision=48528
* Forgotten in previous commit:Andrew Gallatin1999-05-261-2/+2
| | | | | | | | | | | | Allow chipset drivers to specify the direct-mapped DMA window's mask in preparation for tsunami support. Previous chipsets' direct-mapped DMA mask was always 1024*1024*1024. The Tsunami chipset needs it to be 2*1024*1024*1024 Reviewed by: Doug Rabson <dfr@nlsystems.com> Notes: svn path=/head/; revision=47530
* #include "pci.h" for the build dir, not <pci.h>Peter Wemm1999-05-101-2/+2
| | | | Notes: svn path=/head/; revision=46896
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:Peter Wemm1999-05-091-5/+1
| | | | | | | | | | | #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.) Notes: svn path=/head/; revision=46813
* Changes to support diskless booting on the alpha:Doug Rabson1999-05-031-5/+5
| | | | | | | | | | | | | | | * Make the network code in the bootstrap more chatty (helps debugging) * Add nfs root stuff to cpu_rootconf(). I also added a check to make sure it really was netbooting which allows the use of the same kernel for local and network boots. * Tweak the de driver so that it takes the speed setting from the console for the alpha (some PWSs have broken de chipsets). This is the same behaviour as NetBSD/alpha. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=46356
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tPeter Wemm1999-04-241-1/+5
| | | | | | | hurt the driver portability to 3.x too much for where drivers are shared. Notes: svn path=/head/; revision=46024
* MF22... add bridging support to the device drivers. Without thisLuigi Rizzo1999-03-171-1/+22
| | | | | | | bridging cannot work on -current/releng3! Notes: svn path=/head/; revision=44829
* Merge NetBSD 1.80->1.82 changes from vendor branch into mainline.Peter Wemm1999-03-141-18/+20
| | | | Notes: svn path=/head/; revision=44738
* set if_snd.ifq_maxlen to something reasonable - note that if_de.c hasPeter Wemm1999-03-131-1/+5
| | | | | | | | | | a wierd double-queue arrangement.. It always empties the if_snd queue then puts the transmit packets into a different queue that is limited by the number of TX descriptors and does it's own discards... This should stop the boot-time XXX warning anyway. Notes: svn path=/head/; revision=44719
* Fix handling of IFF_ALLMULTI. The code did not callLuigi Rizzo1999-03-011-2/+4
| | | | | | | | | tulip_addr_filter() on SIOCSIFFLAGS, and was nuking the IFF_ALLMULTI on entering tulip_addr_filter(). As a result it was impossible to run a multicast router on a machine with a "de" interface. Notes: svn path=/head/; revision=44377
* Removed a bogus cast to v_caddr_t. This is part of terminatingBruce Evans1999-01-291-2/+2
| | | | | | | | | | v_caddr_t with extreme prejudice. Here the bogons were originally the same as for c_caddr_t (half-baked K&R support), but rev.1.95 changed one wrong cast and one harmless cast to 2 wrong casts, and rev.1.96 only fixed the originally wrong cast. Notes: svn path=/head/; revision=43391
* Removed bogus casts to c_caddr_t. This is part of terminatingBruce Evans1999-01-291-4/+3
| | | | | | | | | c_caddr_t with extreme prejudice. Here the original casts to caddr_t were to support K&R compilers (or missing prototypes), but the relevant source files require an ANSI compiler. Notes: svn path=/head/; revision=43386
* Fix warnings related to -Wall -Wcast-qualMatthew Dillon1999-01-281-2/+2
| | | | Notes: svn path=/head/; revision=43351
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-281-2/+2
| | | | | | | kernel compile Notes: svn path=/head/; revision=43311
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-5/+5
| | | | | | | | | | kernel compile. This commit includes significant work to proper handle const arguments for the DDB symbol routines. Notes: svn path=/head/; revision=43309