summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
Commit message (Collapse)AuthorAgeFilesLines
* This patch attempts to make the pccard probe in if_ed.c work withnate1996-10-171-96/+24
| | | | | | | non-memory-mapped cards. Submitted by: Michael Smith <msmith@atrad.adelaide.edu.au> Reviewed by: phk,dg
* Updated #includes to 4.4lite style.bde1996-10-151-2/+2
|
* Implement the RFC 1650 MIB.wollman1996-10-111-6/+64
|
* Remove devconf, it never grew up to be of any use.phk1996-09-061-65/+2
|
* Use "" instead of <> for a header in the current directory.bde1996-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.
* This diff adds support for the HP PC Lan+ cards (model numbers: 27247Bdg1996-08-072-32/+778
| | | | | | and 27252A) in FreeBSD's `ed' driver. Submitted by: A JOSEPH KOSHY <koshy@india.hp.com>
* Megacommit to straigthen out ETHER_ mess.phk1996-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 :-(
* Replace about 60 lines of code with a call to ether_ioctl().phk1996-08-041-80/+9
| | | | This can be done for most of our ethernet drivers.
* Added #include of <machine/md_var.h>. This will be needed whenbde1996-06-251-1/+2
| | | | | some declarations are moved from <machine/cpufunc.h> to better places.
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hbde1996-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).
* The Great PC98 Merge.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
* Detach the device at shutdown.alex1996-06-111-6/+4
| | | | | Add a prototype for ed_attach_NE2000_pci (this really belongs somewhere else, but where?).
* Clean up the warnings produced by the recent PCI code. Requested bygpalmer1996-05-271-1/+3
| | | | SE since he doesn't have good access right now
* Add support for NE2000 compatible PCI Ethernet cards. The PCI probese1996-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
* Format the already applied PCCARD additions to use KNF form. Nonate1996-04-231-41/+41
| | | | functional changes.
* Killed sections 3 and 4 of my copyright as I think it is unnecessarilydg1996-04-081-6/+1
| | | | restrictive.
* Fix a bogus message:joerg1996-03-311-2/+2
| | | | | ed0: Invalid irq configuration (2) must be 2-5 for 3c503 ^ ^
* Clean up Ethernet drivers: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
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-301-9/+9
| | | | a bunch of system include files.
* Use new printf features rather than local kludges.phk1996-01-241-3/+3
|
* Changed arg type for pio functions.dg1995-12-151-10/+10
| | | | Cast a few things appropriately to shut up the compiler.
* Completed function declarations and/or added prototypes and/or addedbde1995-12-151-10/+18
| | | | #includes to get prototypes.
* Staticize and cleanup.phk1995-12-101-2/+2
|
* Updated my copyright.dg1995-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.
* all:dg1995-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!).
* Fixed staticization - use `static' in function headers, not just inbde1995-11-181-19/+19
| | | | prototypes.
* Included <sys/conf.h>. It used to be included as a side effect ofbde1995-11-161-1/+2
| | | | including <sys/devconf.h>.
* Correct the bogus probe for 8216/8416 cards...it was broken.dg1995-11-151-19/+17
| | | | Submitted by: Steve Piette <steve@simon.chi.il.US>
* Added `#include "ioconf.h"' to <machine/conf.h> and cleaned up thebde1995-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.
* Cleanup, make things static.phk1995-10-311-25/+25
|
* Close out kern/46.pst1995-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)
* Remove unused functions and variables, make things static, and other cleanups.phk1995-10-281-3/+2
|
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-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
* A mixed bag of changes, relating to getting the state in "lsdev" right,phk1995-10-211-3/+10
| | | | and pccard support to work sensibly. Better by far, but still not good.
* Say goodbye to IFF_NOTRAILERS. Support for trailers was officiallywollman1995-10-131-3/+3
| | | | | dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
* PCCARD support.phk1995-10-101-33/+281
|
* if_ze.c was derived from if_ed.c about 42 (!) versions ago. It is nowphk1995-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)
* Remove extra arg from the call to ds_crc().bde1995-08-251-2/+2
|
* Fixed bug where a bogus packet length could cause a panic if the lengthdg1995-07-281-3/+5
| | | | was less than sizeof(struct ed_ring).
* Change memcmp() to bcmp(). memcmp() isn't declared or implementedbde1995-07-251-5/+5
| | | | | for the kernel, but gcc provides an inline version of it if the kernel is compiled with -O.
* Remove trailing whitespace.rgrimes1995-05-302-16/+16
|
* After carefully reading three reference documents, and analyzingdg1995-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.
* Only use card's soft-configured irq if no irq was specified in the kerneldg1995-05-121-5/+7
| | | | | config file. This should fix a number of complaints regarding the auto detection behavior.
* Kill bogus duplicated code that resulted in an editing screwup of minedg1995-05-041-24/+1
| | | | that happend about 4 months ago.
* Add a class field to devconf and mst drivers.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.
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-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.
* Doubled 'maxwait' to 200 (240us).dg1995-02-261-3/+3
| | | | Submitted by: brian@mediacity.com (Brian Litzinger)
* Spell "guaranteed" correctly.dg1995-02-251-2/+2
| | | | Submitted by: frank@fwi.uva.nl (Frank van der Linden)
* Much better fix/support for the 83c795 based cards (the new SMC EtherEZ)dg1995-01-232-13/+71
| | | | by steve@simon.chi.il.us (Steven E. Piette). Minor changes by me.
* Some fixes to device configuration, now that I've had a chance to do itwollman1995-01-151-12/+51
| | | | | | | | | | | | | | | | properly from the beginning: 1) The `kern_devconf' struct should be a part of the driver's `softc' structure (now it is). 2) The `description' should say what the device actually is, rather than just giving a model number (now it does). 3) The device should be registered even if the probe fails, so that it can be reconfigured later. 4) For netifs, the device state should follow the IFF_UP flag. Other network interfaces should follow this example. (Please?) Eventually there should be a rundown routine doing the equivalent of setting IFF_UP off, and perhaps more if warranted.
OpenPOWER on IntegriCloud