imp
cf874b345d
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
alfred
bf8e8a6e8f
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
sam
14c32b5f40
network interface driver changes:
...
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
2002-11-14 23:54:55 +00:00
phk
76d8452fbf
Fix mis-indentation.
...
Spotted by: FlexeLint
2002-10-02 09:09:25 +00:00
alfred
3264aec746
Remove __P.
2002-03-20 02:08:01 +00:00
dillon
b3ddc72561
Get rid of the twisted MFREE() macro entirely.
...
Reviewed by: dg, bmilekic
MFC after: 3 days
2002-02-05 02:00:56 +00:00
nyan
497620bac5
- Don't overwrite inb, inw and outw.
...
- 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
2001-07-04 13:00:21 +00:00
phk
d214ae2171
Convert if_multiaddrs from LIST to TAILQ so that it can be traversed
...
backwards in the three drivers which want to do that.
Reviewed by: mikeh
2001-02-06 10:12:15 +00:00
phk
408a00d7df
Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead of
...
<sys/queue.h> implementation details.
Created with: /usr/sbin/sed
Reviewed with: /sbin/md5
2001-02-03 16:29:10 +00:00
wollman
84da8d820c
Make it clear that the macro `inb' is being overridden.
2001-01-09 04:23:56 +00:00
paul
57ea0a2a3d
The pci and isa drivers were meant to share the same devclass but
...
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.
2000-12-29 11:59:41 +00:00
paul
8cccb2b798
Fix a legacy issue. The offset for reading the MAC address is 0 using
...
bus space, not iosize which is what it was when using inb().
2000-12-29 04:41:52 +00:00
paul
038c873ac2
Switch off some debugging code.
2000-12-16 03:29:27 +00:00
paul
00fcc3d35a
Newbusify.
...
Temporarily disable PC98 until I bring it up to date.
2000-12-16 01:33:28 +00:00
ume
4db8a5921b
fix problem with vmware DAD. reported by many, tested @ IETF49 with
...
help from Florent Parent <Florent.Parent@viagenie.qc.ca>.
Obtained from: KAME
2000-12-11 18:53:40 +00:00
archie
7357df6b48
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
itojun
b59a314956
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
5a394165df
Unused includes: #include "pci.h" and #include "lnc.h"
2000-06-10 11:13:39 +00:00
brian
1c8d742b13
Dynamically allocate softc structures
...
Reviewed by: Mark Knight <mkn@uk.FreeBSD.org>
2000-06-09 17:03:29 +00:00
peter
da78ae6c96
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
cabb5e540a
Replace all references to lnc_softc with a typedef.
2000-05-16 02:30:53 +00:00
paul
3c5581f914
Re-organise lnc driver in preparation for newbusifying it.
2000-05-16 02:08:04 +00:00
paul
ba91f59db8
Unchain lnc include files.
2000-05-14 19:14:41 +00:00
paul
4933d1a224
Fix includes to build from /sys/dev/lnc
2000-05-14 18:21:39 +00:00
paul
72f1169b67
Sync with the BPF and BRIDGE changes.
2000-05-14 17:37:34 +00:00
phk
6be1308ad1
Remove ~25 unneeded #include <sys/conf.h>
...
Remove ~60 unneeded #include <sys/malloc.h>
2000-04-19 14:58:28 +00:00
paul
7e7f4d9be9
Update the copyright. Remove the advertising clause.
2000-03-20 00:53:46 +00:00
peter
7b46b1fff9
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
phk
d612df1de6
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
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
mdodd
732c3788e6
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
mdodd
6fda6cde76
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
mdodd
1976ef16a8
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
mdodd
edfdc36b7c
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
des
3c4a5a075d
Rename bpfilter to bpf.
1999-07-06 19:23:32 +00:00
peter
1b1bfd57f3
#ifdef BRIDGE around a goto label used by the bridge code to silcence a
...
warning.
1999-05-09 23:24:47 +00:00
peter
459d4a2cc5
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
73556bfee1
Add sufficient braces to keep egcs happy about potentially ambiguous
...
if/else nesting.
1999-05-06 18:13:11 +00:00
paul
067e3249ab
Set ifq_maxlen to IFQ_MAXLEN
1999-04-18 01:49:16 +00:00
paul
92f601986d
Set ifq_maxlen to number of transmit descriptors.
1999-04-18 01:37:19 +00:00
paul
9510d8b369
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
f29f19c757
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
d94d0be4e0
Add IFF_MULTICAST when setting flags in lnc_init().
1999-01-31 00:44:37 +00:00
paul
6eb9c2f68d
Fix and enable multicast support.
1999-01-31 00:39:20 +00:00
eivind
4e34ff4e34
Silence warnings.
1999-01-12 00:36:36 +00:00
paul
cf228370b7
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
145a163b3f
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
a0cb7739f4
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
bde
df88297cad
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
jkh
c37a0247ce
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