aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ex
Commit message (Collapse)AuthorAgeFilesLines
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-9/+7
| | | | | | | | | | | | | | | | 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
* add newcard support to exWarner Losh2003-10-261-2/+28
| | | | Notes: svn path=/head/; revision=121565
* Use __FBSDID().David E. O'Brien2003-08-243-3/+9
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* - Declare ex_devclass in if_ex.cMatthew N. Dodd2003-03-294-8/+8
| | | | | | | - Rename module datastructures in if_ex_isa.c to be more standard. Notes: svn path=/head/; revision=112801
* - Move ex_pccard_detach() to if_ex.c and rename it to ex_detach().Matthew N. Dodd2003-03-294-15/+22
| | | | | | | - Add detach method to ISA front end. Notes: svn path=/head/; revision=112800
* Reformat for readability.Matthew N. Dodd2003-03-291-96/+98
| | | | Notes: svn path=/head/; revision=112799
* Don't panic if we aren't plugged into a hub.Matthew N. Dodd2003-03-291-5/+18
| | | | Notes: svn path=/head/; revision=112764
* Multicast support, gleaned from NetBSD's if_iy driver.Matthew N. Dodd2003-03-282-5/+103
| | | | | | | Submitted by: Craig Boston <craig@xfoil.gank.org> Notes: svn path=/head/; revision=112731
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-3/+3
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-3/+3
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* network interface driver changes:Sam Leffler2002-11-141-6/+3
| | | | | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re Notes: svn path=/head/; revision=106937
* Remove __P.Alfred Perlstein2002-03-203-16/+16
| | | | Notes: svn path=/head/; revision=92739
* Mechanical change to use <sys/queue.h> macro API instead ofPoul-Henning Kamp2001-02-041-1/+1
| | | | | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=71999
* Warning police:John Baldwin2001-01-192-2/+2
| | | | | | | | - Share the ex_stop() prototype in if_exvar.h - Remove an unused local variable. Notes: svn path=/head/; revision=71235
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-153-3/+0
| | | | Notes: svn path=/head/; revision=67164
* Add support for pccard attachments of the ex driver. It supports theWarner Losh2000-09-293-3/+166
| | | | | | | | | | Olicom OC-2220 card, and maybe others. Submitted by: iwasaki Reviewed by: mdodd Notes: svn path=/head/; revision=66440
* Make all Ethernet drivers attach using ether_ifattach() and detach usingArchie Cobbs2000-07-131-6/+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
* Unused include: #include "ex.h"Peter Wemm2000-06-101-2/+0
| | | | Notes: svn path=/head/; revision=61488
* Move code to handle BPF and bridging for incoming Ethernet packets outArchie Cobbs2000-05-141-17/+0
| | | | | | | | | | | | | | | | | | 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
* Split out the ISA bus front end code into its own file. PCCARD attachmentMatthew N. Dodd2000-05-014-297/+472
| | | | | | | | | coming later this week. Mitsuru IWASAKI provided a patch to -mobile which I used to make sure I was doing the right thing but only a small part of the actual patch was used. Notes: svn path=/head/; revision=59816
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-1/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* Add 'bootverbose' debug messages to assist with tracking down problemsMatthew N. Dodd2000-03-131-5/+27
| | | | | | | some users have encountered. Notes: svn path=/head/; revision=57989
* Initial ifmedia support. Once I figure out autoselection I'll put theMatthew N. Dodd2000-03-132-15/+113
| | | | | | | | | | | | rest of the code in (so changing media actually works.) Add a few more register definitions for use with this and other new code. Print a few details in the probe message; this should be useful in bug reports and such but should not add to the clutter. Notes: svn path=/head/; revision=57987
* Pre 4.0 tidy up.Peter Wemm2000-01-141-1/+1
| | | | | | | | | | | | | | | Collect together the components of several drivers and export eisa from the i386-only area (It's not, it's on some alphas too). The code hasn't been updated to work on the Alpha yet, but that can come later. Repository copies were done a while ago. Moving these now keeps them in consistant place across the 4.x series as the newbusification progresses. Submitted by: mdodd Notes: svn path=/head/; revision=55953
* Cosmetic cleanups.Matthew N. Dodd2000-01-131-34/+23
| | | | Notes: svn path=/head/; revision=55883
* Implement a DEVICE_IDENTIFY method. I want to revisit some of this laterMatthew N. Dodd2000-01-131-22/+59
| | | | | | | but this is enough to get us going. Notes: svn path=/head/; revision=55882
* When I converted this driver to newbus I also cleaned up the codeMatthew N. Dodd2000-01-131-50/+51
| | | | | | | | | | | | | | | | | layout. It seems that I cleaned it up a bit too much and confused a few if () { if () { } else { } } statements in the obvious manner. This allows the driver to transmit packets again. *sigh* Notes: svn path=/head/; revision=55881
* Fix bus_setup_intr(); I changed exintr() to take a pointer to ex_softcMatthew N. Dodd1999-11-031-1/+1
| | | | | | | | | but didn't change bus_setup_intr() to pass the softc in. Submitted by: Warner Losh <imp@village.org> Notes: svn path=/head/; revision=52842
* - Convert this driver to newbus.Matthew N. Dodd1999-10-161-485/+723
| | | | | | | | | | | | | | | | | - Generally clean things up. - PnP now supported. Will convert to bus_space, ifmedia and add a DEVICE_IDENTIFY() method for autodetection. As it stands device ex0 at isa0 should find a card if one is present. I feel less dirty now. Notes: svn path=/head/; revision=52286
* 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
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Make these actually compile. I got a little delete happy pruning includesMatthew N. Dodd1999-08-181-3/+6
| | | | | | | | | | and used 'command' instead of 'cmd' in a few cases. Also clear up some unused variables. Pointed out by: phk Notes: svn path=/head/; revision=50026
* SIOCSIFADDR, SIOCGIFADDR, and SIOCSIFMTU are implemented inMatthew N. Dodd1999-08-181-76/+4
| | | | | | | | | | | sys/net/if_ethersubr.c:ether_ioctl(). Drivers need not implement generic behavior. PR: kern/12126 Submitted by: in part by Boris Popov <bp@butya.kz> Notes: svn path=/head/; revision=50002
* Rename bpfilter to bpf.Dag-Erling Smørgrav1999-07-061-6/+6
| | | | Notes: svn path=/head/; revision=48645
* Set ifq_maxlen to default value. (This should be safe, it's not clearPeter Wemm1999-05-021-1/+2
| | | | | | | | | | | | | if there's benefit to setting it to the exact amount, it appears the card has 32K of ram, and 8K is used for outgoing packets, that would be something like a queue limit of 5 packets. I don't think that's useful...) PR: 11456 Submitted by: Stephen J. Roznowski <sjr@home.net> Notes: svn path=/head/; revision=46347
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-281-2/+2
| | | | | | | kernel compile Notes: svn path=/head/; revision=43314
* Initialize isa_devtab entries for interrupt handlers in individualBruce Evans1998-10-221-2/+5
| | | | | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato Notes: svn path=/head/; revision=40565
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-3/+3
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735
* Removed unused #includes.Bruce Evans1998-03-281-3/+1
| | | | Notes: svn path=/head/; revision=34928
* Make INET a proper option.Eivind Eklund1998-01-081-1/+4
| | | | | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>. Notes: svn path=/head/; revision=32350
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.Eivind Eklund1997-12-151-1/+2
| | | | | | | | | | | The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and ifconfig.c only). I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code inside, as it never could have compiled - doh.) Notes: svn path=/head/; revision=31742
* Remove a bunch of variables which were unused both in GENERIC and LINT.Poul-Henning Kamp1997-11-071-7/+3
| | | | | | | Found by: -Wunused Notes: svn path=/head/; revision=31016
* The previous commit broke support for the Pro/10; detect which sort ofMike Smith1997-09-261-7/+25
| | | | | | | card we are using and calculate the IRQ accordingly. Notes: svn path=/head/; revision=29877
* Support Intel EtherExpress Pro 10+Mike Smith1997-09-121-4/+10
| | | | | | | | PR: kern/4335 Reviewed by: Stephen Roznowski (sjr@home.net) Notes: svn path=/head/; revision=29313
* Removed unused #includes.Bruce Evans1997-07-201-9/+0
| | | | Notes: svn path=/head/; revision=27555
* Don't depend on gcc's feature of permitting labels that aren't followedBruce Evans1997-07-011-1/+1
| | | | | | | by a statement. Notes: svn path=/head/; revision=27125
* Fix two typos in this driver that prevented it from working properly.Justin T. Gibbs1997-06-101-2/+2
| | | | | | | | PR: kern/3776 Submitted by: flash@hway.ru Notes: svn path=/head/; revision=26545
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includeBruce Evans1997-03-241-1/+1
| | | | | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files. Notes: svn path=/head/; revision=24204
* Add the ex driver (Intel EtherExpress Pro/10).Jordan K. Hubbard1997-01-162-0/+1083
I have no idea if this works since I don't have one of the cards to test. I also don't know what the LINT and GENERIC entries should look like, so I just made up some values for now and left them commented out. Someone who knows the factory settings for a Pro/10, please contact me! Submitted-By: Javier Martín Rueda <jmrueda@diatel.upm.es> Notes: svn path=/head/; revision=21769