summaryrefslogtreecommitdiffstats
path: root/sys/dev/lnc
Commit message (Collapse)AuthorAgeFilesLines
* network interface driver changes:sam2002-11-144-29/+19
| | | | | | | | | | | | | | 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
* Fix mis-indentation.phk2002-10-021-7/+7
| | | | Spotted by: FlexeLint
* Remove __P.alfred2002-03-202-26/+26
|
* Get rid of the twisted MFREE() macro entirely.dillon2002-02-051-5/+7
| | | | | Reviewed by: dg, bmilekic MFC after: 3 days
* - Don't overwrite inb, inw and outw.nyan2001-07-047-221/+392
| | | | | | | | - Move the lance_probe function to if_lnc.c. - Support C-NET(98)S again. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and nyan No response from: Paul Richards
* Use a module name of 'if_lnc' in both the PCI and ISA sections ofiedowse2001-03-182-2/+2
| | | | | | | | | | | | the driver. Doing this breaks the ability to unload the unneeded parts of the driver (e.g unload the PCI section when using an ISA card), but currently ifconfig(8) expects an interface `XXX' to have a driver name of `if_XXX'. PR: kern/25582 Submitted by: Alexander N. Kabaev <kabaev@mail.ru>, imp (apparently Warner suggested a similar fix some time ago). Reviewed by: paul (who would prefer to see ifconfig changed instead)
* There were a few changes missed when this file was converted toiedowse2001-03-021-3/+9
| | | | | | | | | | | | | newbus in revision 1.19. As a result, lnc was, I believe, broken for all PCI cards. The softc fields `lnc_btag' and `lnc_bhandle' were not initialised, `rap', `rdp' and `bdp' were initialised to the wrong values, and the size of the DMA ring memory was calculated incorrectly. Paul Richards has further cleanups in the pipeline, but this at least is enough to make the driver usable with VMware. Approved by: paul
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead ofphk2001-02-031-2/+1
| | | | | | | <sys/queue.h> implementation details. Created with: /usr/sbin/sed Reviewed with: /sbin/md5
* Remove unused #include "lnc.h"peter2001-01-291-1/+0
|
* Make it clear that the macro `inb' is being overridden.wollman2001-01-091-0/+1
|
* The pci and isa drivers were meant to share the same devclass butpaul2000-12-294-4/+5
| | | | | | | the devclass definitions were all wrong so they had their own private ones with the same name. Fix it so they all use the same global devclass.
* Set a lower probe return value for PCI cards so that the pcn driver wins.paul2000-12-291-2/+4
|
* Fix a legacy issue. The offset for reading the MAC address is 0 usingpaul2000-12-291-1/+2
| | | | bus space, not iosize which is what it was when using inb().
* Switch off some debugging code.paul2000-12-162-3/+1
|
* Fixup some problems with the merged code of the previous commit.paul2000-12-163-5/+4
|
* Newbusify.paul2000-12-166-544/+627
| | | | Temporarily disable PC98 until I bring it up to date.
* fix problem with vmware DAD. reported by many, tested @ IETF49 withume2000-12-111-5/+15
| | | | | | help from Florent Parent <Florent.Parent@viagenie.qc.ca>. Obtained from: KAME
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-3/+1
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-132-10/+3
| | | | | | | | | 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
* be sure to wipe out m_pkthdr when you set M_PKTHDR, you may see junk pointeritojun2000-07-041-0/+1
| | | | | in m_pkthdr portion. actually, we should not change pkthdr mbuf <-> non-pkthdr mbuf.
* MF4: add support for the Am79C973.gj2000-06-182-0/+2
|
* Unused includes: #include "pci.h" and #include "lnc.h"peter2000-06-101-3/+0
|
* Dynamically allocate softc structuresbrian2000-06-092-7/+33
| | | | Reviewed by: Mark Knight <mkn@uk.FreeBSD.org>
* Mass update of isa drivers using compatability shims to usepeter2000-05-281-1/+13
| | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
* Fixed to support PC-98.nyan2000-05-192-2/+5
|
* Replace all references to lnc_softc with a typedef.paul2000-05-165-58/+58
|
* Update copyright.paul2000-05-161-8/+29
|
* Re-organise lnc driver in preparation for newbusifying it.paul2000-05-165-442/+540
|
* Unchain lnc include files.paul2000-05-142-2/+1
|
* Fix includes to build from /sys/dev/lncpaul2000-05-142-2/+2
|
* Sync with the BPF and BRIDGE changes.paul2000-05-141-52/+5
|
* Add $FreeBSD$peter2000-05-011-0/+1
|
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Ahhrggg. Put the test for the compat shims AFTER the file that includesimp2000-03-271-4/+4
| | | | | | them. Pointed out by: bde
* Per conversations in -current, add #error to these drivers when you don'timp2000-03-271-0/+4
| | | | have the right compatibility shims enabled. ISA drivers to follow later.
* Update the copyright. Remove the advertising clause.paul2000-03-201-5/+2
|
* Remove a bunch of unused (NO-OP) #if NFOO > 0 type includes and somepeter2000-01-291-3/+0
| | | | #include "foo.h" headers.
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-252-13/+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-283-3/+3
|
* Set ifp->if_init to the right function.mdodd1999-08-201-3/+6
| | | | | | | | | | | | if_init_f_t is passed void * containing the address of ifp->if_softc not the unit number. Someone tell me if these things don't work as I don't have the hardware needed to test them. (thats a first.) I'll get if_ze and if_zp later. Pointed out by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Make these actually compile. I got a little delete happy pruning includesmdodd1999-08-181-2/+5
| | | | | | | 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-31/+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>
* Add support for the Am79C978. (AMD PCHome/PCI Ethernet adapter)mdodd1999-08-104-3/+27
| | | | | | | See: http://www.amd.com/products/npd/overview/homenetworking/intro.html PR: kern/12275 Submitted by: Robert Watson <robert@cyrus.watson.org>
* Rename bpfilter to bpf.des1999-07-062-8/+8
|
* Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entirepeter1999-07-031-7/+1
| | | | files. config will leave the whole file out if configured to do so.
* Set the bus master bit.paul1999-05-101-4/+11
| | | | Submitted by: Ted Faber
* #ifdef BRIDGE around a goto label used by the bridge code to silcence apeter1999-05-091-1/+3
| | | | warning.
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:peter1999-05-091-5/+1
| | | | | | | | #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.)
* Fix up a few easy 'assignment used as truth value' and 'suggest parenspeter1999-05-061-2/+2
| | | | | around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately.
OpenPOWER on IntegriCloud