summaryrefslogtreecommitdiffstats
path: root/sys/dev/ex
Commit message (Collapse)AuthorAgeFilesLines
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-3/+3
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface driver changes:sam2002-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
* Remove __P.alfred2002-03-203-16/+16
|
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-1/+1
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* Warning police:jhb2001-01-192-2/+2
| | | | | - Share the ex_stop() prototype in if_exvar.h - Remove an unused local variable.
* Remove unneeded #include <machine/clock.h>phk2000-10-153-3/+0
|
* Add support for pccard attachments of the ex driver. It supports theimp2000-09-293-3/+166
| | | | | | | Olicom OC-2220 card, and maybe others. Submitted by: iwasaki Reviewed by: mdodd
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-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
* Unused include: #include "ex.h"peter2000-06-101-2/+0
|
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-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
* Split out the ISA bus front end code into its own file. PCCARD attachmentmdodd2000-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.
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Add 'bootverbose' debug messages to assist with tracking down problemsmdodd2000-03-131-5/+27
| | | | some users have encountered.
* Initial ifmedia support. Once I figure out autoselection I'll put themdodd2000-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.
* Pre 4.0 tidy up.peter2000-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
* Cosmetic cleanups.mdodd2000-01-131-34/+23
|
* Implement a DEVICE_IDENTIFY method. I want to revisit some of this latermdodd2000-01-131-22/+59
| | | | but this is enough to get us going.
* When I converted this driver to newbus I also cleaned up the codemdodd2000-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*
* Fix bus_setup_intr(); I changed exintr() to take a pointer to ex_softcmdodd1999-11-031-1/+1
| | | | | | but didn't change bus_setup_intr() to pass the softc in. Submitted by: Warner Losh <imp@village.org>
* - Convert this driver to newbus.mdodd1999-10-161-516/+754
| | | | | | | | | | | | | | - 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.
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Make these actually compile. I got a little delete happy pruning includesmdodd1999-08-181-3/+6
| | | | | | | and used 'command' instead of 'cmd' in a few cases. Also clear up some unused variables. Pointed out by: phk
* SIOCSIFADDR, SIOCGIFADDR, and SIOCSIFMTU are implemented inmdodd1999-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>
* Rename bpfilter to bpf.des1999-07-061-6/+6
|
* Set ifq_maxlen to default value. (This should be safe, it's not clearpeter1999-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>
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-281-2/+2
| | | | kernel compile
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-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
* This commit fixes various 64bit portability problems required fordfr1998-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.
* Removed unused #includes.bde1998-03-281-3/+1
|
* Make INET a proper option.eivind1998-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>.
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.eivind1997-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.)
* Remove a bunch of variables which were unused both in GENERIC and LINT.phk1997-11-071-7/+3
| | | | Found by: -Wunused
* The previous commit broke support for the Pro/10; detect which sort ofmsmith1997-09-261-7/+25
| | | | card we are using and calculate the IRQ accordingly.
* Support Intel EtherExpress Pro 10+msmith1997-09-121-4/+10
| | | | | PR: kern/4335 Reviewed by: Stephen Roznowski (sjr@home.net)
* Removed unused #includes.bde1997-07-201-9/+0
|
* Don't depend on gcc's feature of permitting labels that aren't followedbde1997-07-011-1/+1
| | | | by a statement.
* Fix two typos in this driver that prevented it from working properly.gibbs1997-06-101-2/+2
| | | | | PR: kern/3776 Submitted by: flash@hway.ru
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-241-1/+1
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Add the ex driver (Intel EtherExpress Pro/10).jkh1997-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>
OpenPOWER on IntegriCloud