summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_le.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-251-11/+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-2/+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-75/+6
| | | | | | | | 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-7/+7
|
* Divorce "dev_t" from the "major|minor" bitmap, which is now calledphk1999-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | udev_t in the kernel but still called dev_t in userland. Provide functions to manipulate both types: major() umajor() minor() uminor() makedev() umakedev() dev2udev() udev2dev() For now they're functions, they will become in-line functions after one of the next two steps in this process. Return major/minor/makedev to macro-hood for userland. Register a name in cdevsw[] for the "filedescriptor" driver. In the kernel the udev_t appears in places where we have the major/minor number combination, (ie: a potential device: we may not have the driver nor the device), like in inodes, vattr, cdevsw registration and so on, whereas the dev_t appears where we carry around a reference to a actual device. In the future the cdevsw and the aliased-from vnode will be hung directly from the dev_t, along with up to two softc pointers for the device driver and a few houskeeping bits. This will essentially replace the current "alias" check code (same buck, bigger bang). A little stunt has been provided to try to catch places where the wrong type is being used (dev_t vs udev_t), if you see something not working, #undef DEVT_FASCIST in kern/kern_conf.c and see if it makes a difference. If it does, please try to track it down (many hands make light work) or at least try to reproduce it as simply as possible, and describe how to do that. Without DEVT_FASCIST I belive this patch is a no-op. Stylistic/posixoid comments about the userland view of the <sys/*.h> files welcome now, from userland they now contain the end result. Next planned step: make all dev_t's refer to the same devsw[] which means convert BLK's to CHR's at the perimeter of the vnodes and other places where they enter the game (bootdev, mknod, sysctl).
* Silence -Wtrigraph.hoek1998-12-301-2/+2
| | | | Submitted by: Bradley Dunn <bradley@dunn.org> (pr: kern/8817)
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-221-2/+4
| | | | | | | 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
* Removed support for FreeBSD-1.x.bde1998-08-121-6/+1
|
* Don't pretend to support ix86's with 16-bit ints by using longsbde1998-07-151-3/+3
| | | | just to ensure 32-bit variables.
* 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.)
* Police 4.4Lite #include style.bde1997-08-251-3/+3
|
* Get le_intr decl from sys/conf.hfsmp1997-08-211-2/+2
|
* Forward declaration for the intr routine, avoids compiler warning.fsmp1997-08-211-1/+2
|
* Removed unused #includes.bde1997-07-201-12/+1
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Use the new if_multiaddrs list for multicast addresses rather than thewollman1997-01-131-32/+13
| | | | | | | previous hackery involving struct in_ifaddr and arpcom. Get rid of the abominable multi_kludge. Update all network interfaces to use the new machanism. Distressingly few Ethernet drivers program the multicast filter properly (assuming the hardware has one, which it usually does).
* Remove devconf, it never grew up to be of any use.phk1996-09-061-27/+1
|
* 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).
* Clean up -Wunused warnings.gpalmer1996-06-121-2/+1
| | | | Reviewed by: bde
* Remove reference to ac_ipaddr, which was being used tofenner1996-03-231-3/+3
| | | | | | | determine if the interface had been assigned an IP address. This code prevented the interface from receiving ethernet broadcasts if it had no IP address assigned, and appeared to be an optimization that is not completely needed.
* Clean up Ethernet drivers:wollman1996-02-061-26/+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
* The last part of the ether_sprint -> %6D change.phk1996-01-261-3/+3
| | | | | Sorry for the delay. (%D is for hexdumping.)
* Remove the "no board found at" message, ia rather similar message withjoerg1996-01-251-3/+2
| | | | | the same information is printed one line below by the generic isa code anyway.
* Completed function declarations and/or added prototypes and/or addedbde1995-12-151-1/+2
| | | | #includes to get prototypes.
* Staticize and cleanup.phk1995-12-101-12/+11
|
* Untangled the vm.h include file spaghetti.dg1995-12-071-1/+3
|
* all:dg1995-12-051-13/+15
| | | | | | | | | | | | | | | | 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/+3
|
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-2/+25
| | | | | | | | | | | | | | | | | | | | | 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-3/+2
| | | | | dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
* Fix benign type mismatches in isa interrupt handlers. Many returned intbde1995-09-191-4/+3
| | | | instead of void.
* The lemac driver didn't pass transmitted packets to bpf. Now it does.paul1995-07-291-1/+7
| | | | | | Reviewed by: Submitted by: Obtained from:
* Remove trailing whitespace.rgrimes1995-05-301-29/+29
|
* Fix -Wformat warnings, still need to do something about %b and pointerrgrimes1995-05-091-2/+2
| | | | type args.
* Fix compiler warnings about benign overflow in initializers.bde1995-04-171-5/+7
|
* Add a class field to devconf and mst drivers.wollman1995-04-121-57/+9
| | | | | | | | | | | | 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-281-3/+6
| | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
* Move ARP interface initialization into if_ether.c:arp_ifinit().wollman1994-12-221-8/+7
|
* > ../../i386/isa/if_le.c still has a mountain of warnings.. Anyone keenphk1994-12-181-7/+13
| | | | | | | | | > to fix? Sure. How's this? - Reviewed by: phk Submitted by: Mark Murray <mark@grondar.za>
* Moved conversion of ether_type to host byte order out of ethernet driversdg1994-11-241-2/+14
| | | | | | 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.
* Finished device configuration database work for all ISA devices (except `ze')wollman1994-10-231-3/+11
| | | | | | | | | | | | | 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).
* Add support for devconf to a large number of device drivers, and dowollman1994-10-191-28/+51
| | | | the right thing in dev_goawayall() when kdc_goaway is null.
* Submitted by: Matt Thomas <thomas@lkg.dec.com>se1994-10-121-0/+8
| | | | #ifdef MULTICAST removed.
* Update DEPCA/DE422 et al driver to latest version, from Matt Thomas.wollman1994-10-011-119/+111
| | | | This file was run through unifdef -DMULTICAST in preparation.
OpenPOWER on IntegriCloud