summaryrefslogtreecommitdiff
path: root/sys/dev/ed
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix RFC 1650 stats... should have read the doco more carefully.Garrett Wollman1996-11-151-4/+1
| | | | | | | | | Fixes PR#2011 Submitted by: seki@sysrap.cs.fujitsu.co.jp Notes: svn path=/head/; revision=19780
* This patch attempts to make the pccard probe in if_ed.c work withNate Williams1996-10-171-96/+24
| | | | | | | | | | non-memory-mapped cards. Submitted by: Michael Smith <msmith@atrad.adelaide.edu.au> Reviewed by: phk,dg Notes: svn path=/head/; revision=18979
* Updated #includes to 4.4lite style.Bruce Evans1996-10-151-2/+2
| | | | Notes: svn path=/head/; revision=18946
* Implement the RFC 1650 MIB.Garrett Wollman1996-10-111-6/+64
| | | | Notes: svn path=/head/; revision=18869
* Remove devconf, it never grew up to be of any use.Poul-Henning Kamp1996-09-061-65/+2
| | | | Notes: svn path=/head/; revision=18084
* Use "" instead of <> for a header in the current directory.Bruce Evans1996-08-281-7/+2
| | | | | | | | Don't #include an unused header from i386/isa. Headers from there shouldn't be included in "isa-independent" files anyway. Notes: svn path=/head/; revision=17877
* This diff adds support for the HP PC Lan+ cards (model numbers: 27247BDavid Greenman1996-08-072-32/+778
| | | | | | | | | and 27252A) in FreeBSD's `ed' driver. Submitted by: A JOSEPH KOSHY <koshy@india.hp.com> Notes: svn path=/head/; revision=17465
* Megacommit to straigthen out ETHER_ mess.Poul-Henning Kamp1996-08-061-9/+4
| | | | | | | | I'm pretty convinced after looking at this that the majority of our drivers are confused about the in/exclusion of ETHER_CRC_LEN :-( Notes: svn path=/head/; revision=17455
* Replace about 60 lines of code with a call to ether_ioctl().Poul-Henning Kamp1996-08-041-80/+9
| | | | | | | This can be done for most of our ethernet drivers. Notes: svn path=/head/; revision=17416
* Added #include of <machine/md_var.h>. This will be needed whenBruce Evans1996-06-251-1/+2
| | | | | | | | some declarations are moved from <machine/cpufunc.h> to better places. Notes: svn path=/head/; revision=16733
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hBruce Evans1996-06-181-2/+1
| | | | | | | | | | is only used by the icu support modules and by a few drivers that know too much about the icu (most only use it to convert `n' to `IRQn'). isa.h is only used by ioconf.c and by a few drivers that know too much about isa addresses (a few have to, because config is deficient). Notes: svn path=/head/; revision=16471
* The Great PC98 Merge.Satoshi Asami1996-06-141-1/+5
| | | | | | | | | | | All new code is "#ifdef PC98"ed so this should make no difference to PC/AT (and its clones) users. Ok'd by: core Submitted by: FreeBSD(98) development team Notes: svn path=/head/; revision=16363
* Detach the device at shutdown.Alexander Langer1996-06-111-6/+4
| | | | | | | | Add a prototype for ed_attach_NE2000_pci (this really belongs somewhere else, but where?). Notes: svn path=/head/; revision=16289
* Clean up the warnings produced by the recent PCI code. Requested byGary Palmer1996-05-271-1/+3
| | | | | | | SE since he doesn't have good access right now Notes: svn path=/head/; revision=15943
* Add support for NE2000 compatible PCI Ethernet cards. The PCI probeStefan Eßer1996-05-182-25/+185
| | | | | | | | | | | | | | | | | is enabled by having an "device ed0 at isa? [...]" config line. The first PCI card will get a unit number one higher than the highest defined for any ISA card of the ED type, e.g. if ed0 and ed1 are configured, then the PCI cards will be ed2, ed3, ... BEWARE: If you have configured your kernel as ed0 with the port address as assigned by the PCI BIOS, then your card will be found by both the PCI and ISA probes, and bad things may happen. Make sure to restore the original port address form the GENERIC kernel for the ed0 device! Reviewed by: davidg Notes: svn path=/head/; revision=15813
* Format the already applied PCCARD additions to use KNF form. NoNate Williams1996-04-231-41/+41
| | | | | | | functional changes. Notes: svn path=/head/; revision=15363
* Killed sections 3 and 4 of my copyright as I think it is unnecessarilyDavid Greenman1996-04-081-6/+1
| | | | | | | restrictive. Notes: svn path=/head/; revision=15130
* Fix a bogus message:Joerg Wunsch1996-03-311-2/+2
| | | | | | | | ed0: Invalid irq configuration (2) must be 2-5 for 3c503 ^ ^ Notes: svn path=/head/; revision=14950
* Clean up Ethernet drivers:Garrett Wollman1996-02-061-13/+14
| | | | | | | | | | | - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly Notes: svn path=/head/; revision=13937
* Fix a bunch of spelling errors in the comment fields ofMike Pritchard1996-01-301-9/+9
| | | | | | | a bunch of system include files. Notes: svn path=/head/; revision=13765
* Use new printf features rather than local kludges.Poul-Henning Kamp1996-01-241-3/+3
| | | | Notes: svn path=/head/; revision=13619
* Changed arg type for pio functions.David Greenman1995-12-151-10/+10
| | | | | | | Cast a few things appropriately to shut up the compiler. Notes: svn path=/head/; revision=12868
* Completed function declarations and/or added prototypes and/or addedBruce Evans1995-12-151-10/+18
| | | | | | | #includes to get prototypes. Notes: svn path=/head/; revision=12854
* Staticize and cleanup.Poul-Henning Kamp1995-12-101-2/+2
| | | | Notes: svn path=/head/; revision=12724
* Updated my copyright.David Greenman1995-12-051-65/+95
| | | | | | | | | | | Fixed two cases of "=" that should have been "==" in card type comparison. Simplified expression that checks for interface up/down. Moved ed_ring_copy to before its first use so that it's inlined as intended. Change mbuf allocation policy so that a received packet is stored in just an mbuf header (no cluster) if it will fit in one. Notes: svn path=/head/; revision=12634
* all:David Greenman1995-12-051-81/+83
| | | | | | | | | | | | | | | | | | | Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc. if_ed.c: Changed some of the argument passing to some functions to make a little more sense. if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!). Notes: svn path=/head/; revision=12628
* Fixed staticization - use `static' in function headers, not just inBruce Evans1995-11-181-19/+19
| | | | | | | prototypes. Notes: svn path=/head/; revision=12362
* Included <sys/conf.h>. It used to be included as a side effect ofBruce Evans1995-11-161-1/+2
| | | | | | | including <sys/devconf.h>. Notes: svn path=/head/; revision=12326
* Correct the bogus probe for 8216/8416 cards...it was broken.David Greenman1995-11-151-19/+17
| | | | | | | Submitted by: Steve Piette <steve@simon.chi.il.US> Notes: svn path=/head/; revision=12309
* Added `#include "ioconf.h"' to <machine/conf.h> and cleaned up theBruce Evans1995-11-041-2/+1
| | | | | | | | | | | | | misplaced extern declarations (mostly prototypes of interrupt handlers) that this exposed. The prototypes should be moved back to the driver sources when the functions are staticalized. Added idempotency guards to <machine/conf.h>. "ioconf.h" can't be included when building LKMs so define a wart in bsd.kmod.mk to help guard against including it. Notes: svn path=/head/; revision=12080
* Cleanup, make things static.Poul-Henning Kamp1995-10-311-24/+24
| | | | Notes: svn path=/head/; revision=11961
* Close out kern/46.Paul Traina1995-10-281-6/+1
| | | | | | | | | Remove confusing backwards compatibility code that allowed driver to be used in pre-4.4 releases. The 3COM card's use -link2 to switch tranceivers. (no functional changes here) Notes: svn path=/head/; revision=11896
* Remove unused functions and variables, make things static, and other cleanups.Poul-Henning Kamp1995-10-281-3/+2
| | | | Notes: svn path=/head/; revision=11872
* Reviewed by: julian and jhay@mikom.csir.co.zaJulian Elischer1995-10-261-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com Notes: svn path=/head/; revision=11819
* A mixed bag of changes, relating to getting the state in "lsdev" right,Poul-Henning Kamp1995-10-211-3/+10
| | | | | | | and pccard support to work sensibly. Better by far, but still not good. Notes: svn path=/head/; revision=11602
* Say goodbye to IFF_NOTRAILERS. Support for trailers was officiallyGarrett Wollman1995-10-131-3/+3
| | | | | | | | dropped for 4.4, but for some reason this flag lived on. (Until today, that is.) Notes: svn path=/head/; revision=11460
* PCCARD support.Poul-Henning Kamp1995-10-101-33/+281
| | | | Notes: svn path=/head/; revision=11409
* if_ze.c was derived from if_ed.c about 42 (!) versions ago. It is nowPoul-Henning Kamp1995-09-261-1/+21
| | | | | | | | | | scheduled for demolition. This is a first step: get rid of if_zereg.h, by adding the five extra definitions to if_edreg.h. Also add some definitions which will become needed when if_ze.c gets replaced entirely by pccard and if_ed.c. (this is a 2.1.0 candidate) Notes: svn path=/head/; revision=11016
* Remove extra arg from the call to ds_crc().Bruce Evans1995-08-251-2/+2
| | | | Notes: svn path=/head/; revision=10270
* Fixed bug where a bogus packet length could cause a panic if the lengthDavid Greenman1995-07-281-3/+5
| | | | | | | was less than sizeof(struct ed_ring). Notes: svn path=/head/; revision=9745
* Change memcmp() to bcmp(). memcmp() isn't declared or implementedBruce Evans1995-07-251-5/+5
| | | | | | | | for the kernel, but gcc provides an inline version of it if the kernel is compiled with -O. Notes: svn path=/head/; revision=9717
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-16/+16
| | | | Notes: svn path=/head/; revision=8876
* After carefully reading three reference documents, and analyzingDavid Greenman1995-05-141-4/+4
| | | | | | | | | | | | | | | | | | the 802.3 frames generated by the DC21040 (which does automatic padding of less-than-minimum frames) and the frames generated by the 'ed' driver, I've found that there is indeed a bug in the size of "ETHER_MIN_LEN" as reported by several people, John Hay being the most recent. The driver was actually setting the length to 6+6+2+50 (64 bytes), which when adding in the CRC (which is automatically appended to the frame and not included in the length), the minimum frame is 4 bytes larger than it is supposed to be. All of this is confirmed by tcpdump showing 50 bytes of data for minimum frames from the 'ed' cards and 46 bytes from 'de' cards. This analysis has also revealed that there is garbage in the un-filled in portion at the end of the minimum frames from the 'ed' driver; I don't plan to fix this. Notes: svn path=/head/; revision=8511
* Only use card's soft-configured irq if no irq was specified in the kernelDavid Greenman1995-05-121-5/+7
| | | | | | | | config file. This should fix a number of complaints regarding the auto detection behavior. Notes: svn path=/head/; revision=8486
* Kill bogus duplicated code that resulted in an editing screwup of mineDavid Greenman1995-05-041-24/+1
| | | | | | | that happend about 4 months ago. Notes: svn path=/head/; revision=8266
* Add a class field to devconf and mst drivers.Garrett Wollman1995-04-121-3/+6
| | | | | | | | | | | | | | | For those where it was easy, drivers were also fixed to call dev_attach() during probe rather than attach (in keeping with the new design articulated in a mail message five months ago). For a few that were really easy, correct state tracking was added as well. The `fd' driver was fixed to correctly fill in the description. The CPU identify code was fixed to attach a `cpu' device. The code was also massively reordered to fill in cpu_model with somethingremotely resembling what identifycpu() prints out. A few bytes saved by using %b to format the features list rather than lots of ifs. Notes: svn path=/head/; revision=7780
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'Bruce Evans1995-03-161-1/+3
| | | | | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones. Notes: svn path=/head/; revision=7090
* Doubled 'maxwait' to 200 (240us).David Greenman1995-02-261-3/+3
| | | | | | | Submitted by: brian@mediacity.com (Brian Litzinger) Notes: svn path=/head/; revision=6742
* Spell "guaranteed" correctly.David Greenman1995-02-251-2/+2
| | | | | | | Submitted by: frank@fwi.uva.nl (Frank van der Linden) Notes: svn path=/head/; revision=6698
* Much better fix/support for the 83c795 based cards (the new SMC EtherEZ)David Greenman1995-01-232-13/+71
| | | | | | | by steve@simon.chi.il.us (Steven E. Piette). Minor changes by me. Notes: svn path=/head/; revision=5807