aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vx
Commit message (Collapse)AuthorAgeFilesLines
* Fix mis-indentation.Poul-Henning Kamp2002-10-021-3/+3
| | | | | | | Spotted by: FlexeLint Notes: svn path=/head/; revision=104363
* Use if_printf(ifp, "blah") instead of printf("vx%d: blah", ifp->if_unit).Brooks Davis2002-10-011-2/+2
| | | | Notes: svn path=/head/; revision=104259
* Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoidMaxim Sobolev2002-08-181-1/+1
| | | | | | | | | | breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's. Reviewed by: -hackers, -net Notes: svn path=/head/; revision=102052
* Remove __P.Alfred Perlstein2002-03-203-24/+24
| | | | Notes: svn path=/head/; revision=92739
* Get rid of the twisted MFREE() macro entirely.Matthew Dillon2002-02-051-14/+12
| | | | | | | | Reviewed by: dg, bmilekic MFC after: 3 days Notes: svn path=/head/; revision=90227
* Quiet a variable format-string warning.Kris Kennaway2001-07-191-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=79885
* Change m_devget()'s outdated and unused `offset' argument to actually meanBosko Milekic2001-06-201-4/+1
| | | | | | | | | | | | | | | | | | | | | | | something: offset into the first mbuf of the target chain before copying the source data over. Make drivers using m_devget() with a first argument "data - ETHER_ALIGN" to use the offset argument to pass ETHER_ALIGN in. The way it was previously done is potentially dangerous if the source data was at the top of a page and the offset caused the previous page to be copied (if the previous page has not yet been appropriately mapped). The old `offset' argument in m_devget() is not used anywhere (it's always 0) and dates back to ~1995 (and earlier?) when support for ethernet trailers existed. With that support gone, it was merely collecting dust. Tested on alpha by: jlemon Partially submitted by: jlemon Reviewed by: jlemon MFC after: 3 weeks Notes: svn path=/head/; revision=78508
* When I converted this driver, I neglected to deal with packet alignment.Bill Paul2000-12-071-0/+17
| | | | | | | | | | We must force payload alignment to a longword boundary to make the alpha happy. This should stop the driver from trapping on the alpha when the interface is ifconfig'ed (actually, when the first frame is received). Notes: svn path=/head/; revision=69732
* Update the vortex driver so that it no longer needs the PCI compatBill Paul2000-11-074-180/+193
| | | | | | | | | interface. In addition to using newbus, it also uses bus_space rather than inb/outb to make it MI. The grody static softc allocation stuff has been removed as well. Notes: svn path=/head/; revision=68417
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Make all Ethernet drivers attach using ether_ifattach() and detach usingArchie Cobbs2000-07-131-4/+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
* be sure to wipe out m_pkthdr when you set M_PKTHDR, you may see junk pointerJun-ichiro itojun Hagino2000-07-041-1/+1
| | | | | | | | in m_pkthdr portion. actually, we should not change pkthdr mbuf <-> non-pkthdr mbuf. Notes: svn path=/head/; revision=62593
* Warn that this as an oldpci device..Peter Wemm2000-05-281-0/+4
| | | | Notes: svn path=/head/; revision=61038
* Move code to handle BPF and bridging for incoming Ethernet packets outArchie Cobbs2000-05-141-13/+4
| | | | | | | | | | | | | | | | | | 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
* This driver attempts to cache mbufs, and re-use them as headers insteadJonathan Lemon2000-05-121-0/+1
| | | | | | | | | | | of using the MGETHDR macro all the time. When an mbuf is reused as a header, initialize csum_flags to zero as well, so the delayed_checksum call woks properly. Debbugging work done by: jmas Notes: svn path=/head/; revision=60475
* Add missing $FreeBSD$Peter Wemm2000-05-011-0/+2
| | | | Notes: svn path=/head/; revision=59868
* Remove #if NVX > 0 and #if NEISA > 0 (and #include "eisa.h") as it's notPeter Wemm2000-01-293-15/+0
| | | | | | | needed. Notes: svn path=/head/; revision=56833
* Set ifq_maxlen to default (IFQ_MAXLEN).Matthew N. Dodd2000-01-161-0/+1
| | | | Notes: svn path=/head/; revision=56077
* Pre 4.0 tidy up.Peter Wemm2000-01-141-1/+2
| | | | | | | | | | | | | | | 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
* 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
* Clean up after removing sys/eventhandler.h from sys/systm.h at the lastMike Smith1999-08-211-0/+1
| | | | | | | | minute. This should cover all of the missed cases (and should let LINT build again). Notes: svn path=/head/; revision=50135
* Implement a new generic mechanism for attaching handler functions toMike Smith1999-08-211-4/+5
| | | | | | | | | | | | | | | | events, in order to pave the way for removing a number of the ad-hoc implementations currently in use. Retire the at_shutdown family of functions and replace them with new event handler lists. Rework kern_shutdown.c to take greater advantage of the use of event handlers. Reviewed by: green Notes: svn path=/head/; revision=50107
* Move the specification of EDGE/LEVEL triggered interrupts toMatthew N. Dodd1999-08-011-4/+2
| | | | | | | | | | | | | | | | | | | | eisa_add_intr() which now takes an additional arguement (one of EISA_TRIGGER_LEVEL or EISA_TRIGGER_EDGE). The flag RR_SHAREABLE has no effect when passed to bus_alloc_resource(dev, SYS_RES_IRQ, ...) in an EISA device context as the eisa_alloc_resource() call (bus_alloc_resource method) now deals with this flag directly, depending on the device ivars. This change does nothing more than move all the 'shared = inb(foo + iobsse)' nonesense to the device probe methods rather than the device attach. Also, print out 'edge' or 'level' in the IRQ announcement message. Reviewed by: dfr Notes: svn path=/head/; revision=49360
* Rename bpfilter to bpf.Dag-Erling Smørgrav1999-07-061-6/+6
| | | | Notes: svn path=/head/; revision=48645
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirePeter Wemm1999-07-031-4/+0
| | | | | | | files. config will leave the whole file out if configured to do so. Notes: svn path=/head/; revision=48528
* Missing revision markers.Peter Wemm1999-05-091-0/+1
| | | | Notes: svn path=/head/; revision=46814
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:Peter Wemm1999-05-091-4/+0
| | | | | | | | | | | #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.) Notes: svn path=/head/; revision=46813
* Move the declaration of the interrupt type from the driver structureDoug Rabson1999-05-081-2/+1
| | | | | | | to the BUS_SETUP_INTR call. Notes: svn path=/head/; revision=46743
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tPeter Wemm1999-04-241-0/+4
| | | | | | | hurt the driver portability to 3.x too much for where drivers are shared. Notes: svn path=/head/; revision=46024
* Implement an EISA new-bus framework. The old driver probe mechanismPeter Wemm1999-04-181-65/+87
| | | | | | | | | | | | had a quirk that made a shim rather hard to implement properly and it was just easier to convert the drivers in one go. The changes to the buslogic driver go beyond just this - the whole driver was new-bus'ed including pci and isa. I have only tested the EISA part of this so far. Submitted by: Doug Rabson <dfr@nlsystems.com> Notes: svn path=/head/; revision=45791
* Fix warnings preparing for -Wall -Wcast-qualMatthew Dillon1999-01-271-4/+4
| | | | | | | | Also disable one usb module in LINT due to fatal compilation errors, temporary. Notes: svn path=/head/; revision=43295
* Switch type of vxintr instead of using the previous casts.Eivind Eklund1999-01-124-8/+8
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=42558
* Silence warning by casting vxintr to correct typeEivind Eklund1999-01-121-1/+1
| | | | Notes: svn path=/head/; revision=42555
* vxalloc() can return NULL. Deal with it.Eivind Eklund1998-12-161-1/+3
| | | | Notes: svn path=/head/; revision=41837
* pci_device pd_probe function changed from returning char * to returningMatthew Dillon1998-12-141-2/+2
| | | | | | | | | const char *. Originally I was going to add casts from const char * to char * in some of the pci device drivers, but the reality is that the pci device probes return constant quoted strings. Notes: svn path=/head/; revision=41766
* Import the (Fast) Etherlink XL driver. I'm reasonally confident in itsBill Paul1998-08-161-0/+7
| | | | | | | | | | | | | stability now. ALso modify /sys/conf/files, /sys/i386/conf/GENERIC and /sys/i386/conf/LINT to add entries for the XL driver. Deactivate support for the XL adapters in the vortex driver. LAstly, add a man page. (Also added an MLINKS entry for the ThunderLAN man page which I forgot previously.) Notes: svn path=/head/; revision=38363
* Fixed printf format errors (only 1 left in GENERIC now).Bruce Evans1998-07-131-2/+2
| | | | Notes: svn path=/head/; revision=37618
* 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
* Add $Id$Gary Palmer1998-02-211-0/+2
| | | | Notes: svn path=/head/; revision=33707
* Provide a missing parameter to printf to stop the kernel from panicing.Gary Palmer1998-02-211-1/+1
| | | | Notes: svn path=/head/; revision=33705
* Removed unused #includes.Bruce Evans1998-02-203-31/+0
| | | | Notes: svn path=/head/; revision=33676
* Staticize.Eivind Eklund1998-02-091-1/+1
| | | | Notes: svn path=/head/; revision=33181
* Make INET a proper option.Eivind Eklund1998-01-083-5/+11
| | | | | | | | | | | | | | | 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
* Remove a bunch of variables which were unused both in GENERIC and LINT.Poul-Henning Kamp1997-11-071-1/+0
| | | | | | | Found by: -Wunused Notes: svn path=/head/; revision=31016
* To obey the traditional practice in mbuf chaining.Jun-ichiro itojun Hagino1997-10-011-10/+15
| | | | | | | | PR: 4020 Reviewed by: hamada@astec.co.jp Notes: svn path=/head/; revision=30022
* Add shared EISA interrupt support.Justin T. Gibbs1997-09-211-3/+8
| | | | | | | Clean up the match routines so that they return const char * Notes: svn path=/head/; revision=29674
* Convert to the new callout interface.Justin T. Gibbs1997-09-212-5/+15
| | | | | | | Guard against scheduling more than one callout. Notes: svn path=/head/; revision=29671
* Struct arpcom should be in the beginning of a softc struct for arp andJohn Hay1997-09-021-1/+1
| | | | | | | | ether_ioctl() to work correctly. Tested by: Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br> Notes: svn path=/head/; revision=29037
* Yank the casts.Steve Passe1997-08-211-1/+1
| | | | Notes: svn path=/head/; revision=28520