summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep
Commit message (Collapse)AuthorAgeFilesLines
* Removed nested include if <sys/socket.h> from <net/if.h> andbde1996-10-121-1/+2
| | | | | | | <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
* Staticized. Things exported by linker sets should always be static.bde1996-10-121-2/+2
|
* Various cleanups for remanents of devconf.phk1996-09-081-3/+1
|
* Remove devconf, it never grew up to be of any use.phk1996-09-062-66/+4
|
* Megacommit to straigthen out ETHER_ mess.phk1996-08-061-7/+1
| | | | | I'm pretty convinced after looking at this that the majority of our drivers are confused about the in/exclusion of ETHER_CRC_LEN :-(
* Under the heavy load for transmiting condition, it will be write erroramurai1996-07-271-2/+2
| | | | | | | and then never accept for sending packet from upper layer anymore (i.e. ping -f ) Reviewed by: David Greenman <dg@root.com> Submitted by: amurai@spec.co.jp
* Add interrupt register set up with original register valueamurai1996-07-193-5/+13
| | | | | | | before attaching. Without this fix, 3c579(EISA) never make any H/W inturrupt. Reviewed by: "Justin T. Gibbs" <gibbs@freefall.freebsd.org>, nao@sbl.cl.nec.co.jp and owner-current on mailing list ;-) Submitted by: amurai@spec.co.jp, nao@sbl.cl.nec.co.jp
* Enable transmit complete interrupt...dg1996-07-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | (author's explaination): Bit 15 is the flag to request a transmit complete interrupt. The driver was apparently written to minimize interrupts, and if not for a 3-COM design quirk, everything would be just ducky. Prior to loading the outbound packet into the FIFO, the driver checks to see if there's enough space to contain the packet. If not, the driver requests a transmit-available interrupt when there is sufficient room. Unfortunately, the card is continuing to process the prior FIFO, and by the time the driver sets the threshold for a transmit available interrupt, the space is already available. When this occurs, the 3COM card ignores the interrupt request, and the driver is hung waiting for an interrupt that will never occur. There's probably a more elegant solution, but requesting the transmit complete interrupt was the easiest to implement. An alternative fix might be to check free FIFO space again, after requesting the transmit available interrupt, but I haven't bothered pursuing this. Since the patch, my 3C590 (PCI, same FIFO interface as 3C509) has been rock solid. Submitted by: mevans@candle.com (Mike Evans)
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hbde1996-06-181-3/+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).
* Whoops, I accidentally deleted a necessary ":" which is part of thenate1996-06-151-2/+2
| | | | | | parameters to printf() using the "D" format. (Why this even worked on my box during testing I don't know, but as soon as I powered it on/off it quite working.)
* At long last, we know have support for the 3C589 in a FreeBSD releasenate1996-06-142-3/+219
| | | | | | | | | | | using the existing files using the existing PCCARD support. Now that this is in place I would like to fixup the PCCARD hooks and remove the if_zp driver. At this point, we support everything we used to support *AND MORE* with the PCCARD code. Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp> (via the Nomad release) [ This works on both my 3C589B and 3C589C ]
* Better code for switching the ethernet transceiver.nate1996-06-141-30/+32
| | | | | | | | | | | | My 3C509B-COMBO works fine with the following patch. Switching between UTP and BNC is quite easy. (Just type 'ifconfig ep0 link1 -link2' or 'ifconifg ep0 link2 -link1'.) [ I tested this with the additional PC-CARD patches and it works on both connectors on my 3C589B and 3C589C ] Reviewed by: nate Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
* Clean up -Wunused warnings.gpalmer1996-06-122-7/+4
| | | | Reviewed by: bde
* Properly determine the offset of the remaining bytes we need to transfergibbs1996-05-241-2/+2
| | | | | | | after outsl'ing all the long words we can during transmission in 32bit mode. Closes PR:i386/1243 Submitted by: flash@eru.tubank.msk.su
* Fix media type determination.gibbs1996-02-283-10/+8
|
* Clean up the 3c5x9 driver and add an eisaconf probe to it. This shouldgibbs1996-02-262-188/+257
| | | | | | prevent it from conflicting with other drivers (like the aic7xxx driver). Most of the work was in spliting out common portions of the driver and making them generic enough to be called from the eisaconf probe.
* 3c5x9.c:gibbs1996-02-261-0/+308
| | | | | | | | | | | | | The eisaconf probe for the 3Com 3c579 and the 3c509 when in eisa configuration mode. aha1742.c aic7770.c bt74x.c: Only call eisa_registerdev after the probe is successfully. eisaconf.c: Increase kdc->kdc_datalen during the eisa_reg* functions instead of in the eisa_add* functions since eisa_registerdev has already been called and we have a kdc to manipulate.
* - Properly set the watchdog timer only during transmits.gibbs1996-02-131-26/+35
| | | | | | | - Clean up the access to our ifnet structure by caching a pointer to it instead of always digging through our softc structure. Submitted by: Watchdog fixes by Serge A. Babkin <babkin@hq.icb.chel.su>
* Clean up Ethernet drivers:wollman1996-02-062-10/+11
| | | | | | | | - 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-3/+3
| | | | a bunch of system include files.
* Finally commit Serge's multicast and "misc other changes" patch. Igibbs1996-01-292-43/+84
| | | | | | don't have a network to test it on here, but it does probe my card okay. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
* The last part of the ether_sprint -> %6D change.phk1996-01-261-2/+2
| | | | | Sorry for the delay. (%D is for hexdumping.)
* Completed function declarations and/or added prototypes and/or addedbde1995-12-151-1/+6
| | | | #includes to get prototypes.
* Staticize and cleanup.phk1995-12-101-14/+14
|
* all:dg1995-12-051-26/+7
| | | | | | | | | | | | | | | | 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!).
* 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.
* Remove unused functions and variables, make things static, and other cleanups.phk1995-10-281-5/+1
|
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-1/+24
| | | | | | | | | | | | | | | | | | | | | 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
* Say goodbye to IFF_NOTRAILERS. Support for trailers was officiallywollman1995-10-131-2/+2
| | | | | dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
* Add SIOCGIFADDR ioctl so rarpd actually works with the if_ep interface.guido1995-08-281-1/+10
|
* Protected entire epioctl routine with splimp(). In this case, it is betterdg1995-07-051-1/+6
| | | | | | | | form to do this than it is relying on individual subroutines (the logic in epioctl is itself very minimal). Ideally, unnecessary splimp()'s should now be removed if they exist; I'll leave this for a later date (a complete code review of the driver needs to be done). Fixes a bug I noticed that would show up when ifconfig'ing the interface down.
* Remove trailing whitespace.rgrimes1995-05-302-28/+28
|
* Increased delay after reset to 10ms. Suggested by several people, the lastdg1995-05-271-2/+2
| | | | | of which was Scott Mace. This fixes a bug where the card would be missed sometimes during the device probe.
* Add a class field to devconf and mst drivers.wollman1995-04-121-7/+10
| | | | | | | | | | | | 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.
* Performance enhancements and a redesign of the transmitter code.jkh1995-04-102-2/+25
| | | | Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
* Correct the watchdog routine.jkh1995-04-051-1/+26
| | | | Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
* * Promiscuous mode added and interrupt logic slightly changedjkh1995-03-312-50/+189
| | | | | | | * to reduce the number of adapter failures. Transceiver select * logic changed to use value from EEPROM. Autoconfiguration * features added. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-281-1/+5
| | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
* aha1742.c:gibbs1995-03-231-2/+1
| | | | | | | | | #include <i386/isa/isa.h> return IO_EISASIZE instead of hard coded 0x1000. if_ep.c: Remove commented out disabling of interrupts that gave a "comment withing a comment" warning.
* Patches from Serge Babkin to fix interrupt handling bugs.dg1995-03-232-8/+28
| | | | Submitted by: Serge Babkin
* Added Andres Vega Garcia's email address.dg1995-01-241-1/+8
| | | | Submitted by: Andres Vega Garcia
* Restored Herb's current copyright. The one in the file appeared to havedg1995-01-081-244/+28
| | | | | been run through indent and additionally doesn't contain clauses 3 and 4 that were apparantly added sometime after the driver was put into FreeBSD.
* Move ARP interface initialization into if_ether.c:arp_ifinit().wollman1994-12-221-2/+1
|
* Moved conversion of ether_type to host byte order out of ethernet driversdg1994-11-241-93/+1
| | | | | | and into ether_input(). It was silly to have bpf want this one way and ether_input want it another way. Ripped out trailer support from the few remaining drivers that still had it.
* Andres Vega Garcia's improvements to the ep driver. This driver is a merginggibbs1994-11-132-1019/+1405
| | | | | | | | | | of the 1.1.5 driver, a recent version of the NetBSD driver, Andres' transmission start threshold code, and all other relavent changes to the driver since it was brought into 2.0. The multicast support from NetBSD has not be folded in yet. I've tested it under high loads for two weeks and it is now robust enough to be included in the GENERIC kernel. Reviewed by: gibbs Submitted by: vega@sophia.inria.fr (Andres Vega Garcia)
* Finished device configuration database work for all ISA devices (except `ze')wollman1994-10-231-2/+24
| | | | | | | | | | | | | and all SCSI devices (except that it's not done quite the way I want). New information added includes: - A text description of the device - A ``state''---unknown, unconfigured, idle, or busy - A generic parent device (with support in the m.i. code) - An interrupt mask type field (which will hopefully go away) so that . ``doconfig'' can be written This requires a new version of the `lsdev' program as well (next commit).
* Removed inclusion of pio.h and cpufunc.h (cpufunc.h is included fromdg1994-09-161-3/+1
| | | | | systm.h). Merged functionality of pio.h into cpufunc.h. Cleaned up some related code.
* Reviewed by:ats1994-09-032-77/+247
| | | | | | | | | Submitted by: Update the if_ep driver for the 3C579 and bring over some of the changes from the netbsd driver. This is not complete: the detection of the irq in the eisa does not work and sometimes the reset for the 3C509 in ISA in an EISA bus system don't work ( Need a hard reset to be found again == reset knob).
* Added support for SIOCSIFMTU.dg1994-08-081-1/+13
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-3/+2
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
OpenPOWER on IntegriCloud