Archie Cobbs
21b8ebd926
Make all Ethernet drivers attach using ether_ifattach() and detach using
...
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
2000-07-13 22:54:34 +00:00
Jun-ichiro itojun Hagino
2f0dab8f41
be sure to wipe out m_pkthdr when you set M_PKTHDR, you may see junk pointer
...
in m_pkthdr portion.
actually, we should not change pkthdr mbuf <-> non-pkthdr mbuf.
2000-07-04 18:43:32 +00:00
Peter Wemm
ad4805bb07
Unused includes: #include "pci.h" and #include "lnc.h"
2000-06-10 11:13:39 +00:00
Brian Somers
fa33ce4b09
Dynamically allocate softc structures
...
Reviewed by: Mark Knight <mkn@uk.FreeBSD.org>
2000-06-09 17:03:29 +00:00
Peter Wemm
6a4c2576dc
Mass update of isa drivers using compatability shims to use
...
COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table.
2000-05-28 13:40:48 +00:00
Paul Richards
4d2d5ed69d
Replace all references to lnc_softc with a typedef.
2000-05-16 02:30:53 +00:00
Paul Richards
9b55e84fec
Re-organise lnc driver in preparation for newbusifying it.
2000-05-16 02:08:04 +00:00
Paul Richards
7e84fbbdfd
Unchain lnc include files.
2000-05-14 19:14:41 +00:00
Paul Richards
2e054666c6
Fix includes to build from /sys/dev/lnc
2000-05-14 18:21:39 +00:00
Paul Richards
e30ce7f9de
Sync with the BPF and BRIDGE changes.
2000-05-14 17:37:34 +00:00
Poul-Henning Kamp
3389ae9350
Remove ~25 unneeded #include <sys/conf.h>
...
Remove ~60 unneeded #include <sys/malloc.h>
2000-04-19 14:58:28 +00:00
Paul Richards
c4bf272b86
Update the copyright. Remove the advertising clause.
2000-03-20 00:53:46 +00:00
Peter Wemm
690f85de65
Remove a bunch of unused (NO-OP) #if NFOO > 0 type includes and some
...
#include "foo.h" headers.
2000-01-29 16:17:36 +00:00
Poul-Henning Kamp
46783fb897
Remove NBPF conditionality of bpf calls in most of our network drivers.
...
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.
1999-09-25 12:06:01 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Matthew N. Dodd
e4fd6edfd8
Set ifp->if_init to the right function.
...
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>
1999-08-20 14:12:14 +00:00
Matthew N. Dodd
4b31e9d6a7
Make these actually compile. I got a little delete happy pruning includes
...
and used 'command' instead of 'cmd' in a few cases. Also clear up some
unused variables.
Pointed out by: phk
1999-08-18 22:14:24 +00:00
Matthew N. Dodd
b2864868b3
SIOCSIFADDR, SIOCGIFADDR, and SIOCSIFMTU are implemented in
...
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>
1999-08-18 06:12:00 +00:00
Matthew N. Dodd
2825e76714
Add support for the Am79C978. (AMD PCHome/PCI Ethernet adapter)
...
See: http://www.amd.com/products/npd/overview/homenetworking/intro.html
PR: kern/12275
Submitted by: Robert Watson <robert@cyrus.watson.org>
1999-08-10 01:03:51 +00:00
Dag-Erling Smørgrav
6b5ca0d83e
Rename bpfilter to bpf.
1999-07-06 19:23:32 +00:00
Peter Wemm
87e37dccb6
#ifdef BRIDGE around a goto label used by the bridge code to silcence a
...
warning.
1999-05-09 23:24:47 +00:00
Peter Wemm
d5558c001a
Fix up a few easy 'assignment used as truth value' and 'suggest parens
...
around && within ||' type warnings. I'm pretty sure I have not masked
any problems here, I've committed real problem fixes seperately.
1999-05-06 18:44:42 +00:00
Peter Wemm
dfd5dee1b0
Add sufficient braces to keep egcs happy about potentially ambiguous
...
if/else nesting.
1999-05-06 18:13:11 +00:00
Paul Richards
3a129cf3d9
Set ifq_maxlen to IFQ_MAXLEN
1999-04-18 01:49:16 +00:00
Paul Richards
0fde788552
Set ifq_maxlen to number of transmit descriptors.
1999-04-18 01:37:19 +00:00
Paul Richards
195f63e808
The changes to vm_page.c have broken the assumption that mallocing
...
early will result in memory below 16M so now we need to explicitly use
contigmalloc to get low physical memory.
1999-04-18 01:03:46 +00:00
Luigi Rizzo
ab090e5b4e
MF22... add bridging support to the device drivers. Without this
...
bridging cannot work on -current/releng3!
1999-03-17 16:44:53 +00:00
Paul Richards
5619e92064
Add IFF_MULTICAST when setting flags in lnc_init().
1999-01-31 00:44:37 +00:00
Paul Richards
5448a2e522
Fix and enable multicast support.
1999-01-31 00:39:20 +00:00
Eivind Eklund
d20a303759
Silence warnings.
1999-01-12 00:36:36 +00:00
Paul Richards
1a3376721b
Add Id string to if_lnc.h and fix up copyrights to be consistent and up to date.
1998-11-26 00:57:32 +00:00
Paul Richards
6789e41fe6
Despite what people may think the Am79C970 returns the chip id of an Am79C965.
...
Fix the PCI probe code to accept this id otherwise cards based on the Am79C970
fail to probe.
1998-11-26 00:53:45 +00:00
Luigi Rizzo
2a62931083
Fix a typo, and remove verbose error reporting when in
...
promisc mode (they are annoying in normal mode
as well so i am really tempted to remove them unconditionally...)
1998-10-30 11:53:58 +00:00
Bruce Evans
fe310de802
Initialize isa_devtab entries for interrupt handlers in individual
...
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
1998-10-22 05:58:45 +00:00
Jordan K. Hubbard
36607a387c
MF22: Robert Swindells' patch for correct probing of more AMD cards.
...
Merged by: Max Khon <fjoe@iclub.nsu.ru>
1998-09-17 13:09:16 +00:00
Bruce Evans
00671271c3
Fixed printf format errors. Only one left in LINT on i386's.
1998-08-24 02:28:16 +00:00
Mike Smith
2512c3e67b
Add support for PCNet PCI chips that only work when we talk to them as ISA
...
devices. Specifically fix the case for the Hitachi version as used in
their VisionBook models.
Submitted by: Ted Faber <faber@isi.edu>
1998-07-20 17:33:01 +00:00
Doug Rabson
ecbb00a262
This commit fixes various 64bit portability problems required for
...
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.
1998-06-07 17:13:14 +00:00
Paul Richards
aa6b464e36
Fix some bitrot in the multicast support, the move from TAILQ macros wasn't implemented fully.
1998-05-27 11:05:17 +00:00
Paul Richards
697990295f
This time add an Id string that'll actually get expanded :-)
1998-05-27 09:59:13 +00:00
Paul Richards
f0a5342dc5
Add an ID string (can't believe it never had one!)
1998-05-27 09:58:00 +00:00
Bruce Evans
c1087c1324
Support compiling with `gcc -ansi'.
1998-04-15 17:47:40 +00:00
Bruce Evans
3c1300a6b3
Removed unused #includes.
1998-03-28 13:25:01 +00:00
Steve Price
6cc8ce08fe
Correct an ethernet framesize mismatch that caused poor
...
device performance among other things.
PR: 4989, 5910
Submitted by: Yoshikazu Goto <gotoh@ae.anritsu.co.jp>
1998-03-09 03:07:54 +00:00
KATO Takenori
c8d28276a8
Support C-NET(98)S ethernet card (PC-98 only).
...
Submitted by: Chiharu Shibata <chi@rd.njk.co.jp>
1998-02-10 03:22:20 +00:00
Eivind Eklund
0b08f5f737
Back out DIAGNOSTIC changes.
1998-02-06 12:14:30 +00:00
Eivind Eklund
47cfdb166d
Turn DIAGNOSTIC into a new-style option.
1998-02-04 22:34:03 +00:00
Eivind Eklund
1d5e9e2255
Make INET a proper option.
...
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>.
1998-01-08 23:42:31 +00:00
Bruce Evans
f71d35e402
Removed unused #includes.
1997-07-20 14:10:18 +00:00
KATO Takenori
5eba6c71a9
Enables lnc driver on PC-98 to support NEC SV-98/2-B06 PCI card.
...
Cascade mode of DMA is disabled when PC98 is defined because PC-98
doesn't support it.
1997-04-08 10:33:24 +00:00