aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/de
Commit message (Collapse)AuthorAgeFilesLines
...
* Use get_cyclecount() rather than hardcoding rdtsc and rpcc in asm for i386John Baldwin2005-07-211-20/+2
| | | | | | | and alpha, respectively. Notes: svn path=/head/; revision=148249
* Fix a typo and some whitespace nits.John Baldwin2005-07-211-5/+3
| | | | Notes: svn path=/head/; revision=148248
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-102-150/+143
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* Return BUS_PROBE_DEFAULT instead of 0.Warner Losh2005-02-241-1/+1
| | | | Notes: svn path=/head/; revision=142398
* Hide link up/down/media printfs behind bootverbosePoul-Henning Kamp2004-11-081-1/+2
| | | | Notes: svn path=/head/; revision=137402
* fix (for me) the problems where if_de gets really slow after timeJohn-Mark Gurney2004-10-181-21/+0
| | | | | | | | | | (usually taking 20 seconds to transmit a packet).. no longer fall back to only transmitting one packet (instead of the entire queue) after we have processed the entire send queue... I have no idea why we didn't start seeing this problem ~6 years ago when this code was introduced... Notes: svn path=/head/; revision=136683
* Since the if_de driver doesn't contain locking, mark it asRobert Watson2004-08-131-1/+1
| | | | | | | | IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant when running debug.mpsafenet=1. Notes: svn path=/head/; revision=133674
* Apply the long-overdue hatchet of style(9) death to this file.Bruce M Simpson2004-07-091-455/+544
| | | | Notes: svn path=/head/; revision=131847
* style(9) pass on prototypes.Bruce M Simpson2004-07-051-21/+27
| | | | Notes: svn path=/head/; revision=131651
* Consistently use __inline instead of __inline__ as the former is an empty macroStefan Farfeleder2004-07-042-3/+3
| | | | | | | in <sys/cdefs.h> for compilers without support for inline. Notes: svn path=/head/; revision=131575
* Bring in the first chunk of altq driver modifications. This covers theMax Laier2004-07-021-9/+14
| | | | | | | | | | | | | | following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4), sis(4) and xl(4) More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take a look and tell me if "your" driver is missing, so I can fix this. Tested-by: many No-objection: -current, -net Notes: svn path=/head/; revision=131455
* Replace handrolled CRC calculation with ether_crc32_[lb]e().Christian Weisgerber2004-06-091-23/+2
| | | | Notes: svn path=/head/; revision=130270
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129878
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-6/+4
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-141-0/+2
| | | | Notes: svn path=/head/; revision=126966
* Stop setting ifp->if_output to ether_output() since ether_ifattach()Maxime Henrion2004-03-111-1/+0
| | | | | | | does it for us already. Notes: svn path=/head/; revision=126847
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-312-79/+80
| | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=121816
* Prefer new location of pci include files (which have only been in theWarner Losh2003-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. Notes: svn path=/head/; revision=119288
* Fix alignment requirements of tulip_rombuf by further increasingBernd Walter2003-06-131-4/+4
| | | | | | | | | tulip_boardid size. Add a comment to tulip_rombuf about this requirement. I have had panics on alpha while probing a de card. Notes: svn path=/head/; revision=116321
* Use __FBSDID().David E. O'Brien2003-06-111-4/+4
| | | | Notes: svn path=/head/; revision=116192
* Move some FALLTHROUGH comments so they work.Poul-Henning Kamp2003-05-312-7/+6
| | | | | | | | | | | Fix indentation error. Make boardid string long enough. Remove unused variable. Found by: FlexeLint Notes: svn path=/head/; revision=115519
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-151-1/+1
| | | | | | | | | | | 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.) Notes: svn path=/head/; revision=113506
* - Use if_broadcastaddr from struct ifnet rather than relying onMatthew N. Dodd2003-03-211-1/+1
| | | | | | | | | | extern 'etherbroadcastaddr'. - Make 'etherbroadcastaddr' static. Reviewed by: imp Notes: svn path=/head/; revision=112469
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-8/+8
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-8/+8
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* o track either_ifattach/ether_ifdetach API changesSam Leffler2002-11-141-14/+5
| | | | | | | | | | | | | | o use if_input for input packet processing o don't strip the Ethernet header for input packets o use BPF_* macros bpf tapping o call ether_ioctl to handle default ioctl case o track vlan changes Reviewed by: many Approved by: re Notes: svn path=/head/; revision=106936
* 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