Poul-Henning Kamp
8c5d013757
Fix mis-indentation.
...
Spotted by: FlexeLint
2002-10-02 09:09:25 +00:00
Alfred Perlstein
e51a25f850
Remove __P.
2002-03-20 02:08:01 +00:00
Matthew Dillon
ecde8f7c29
Get rid of the twisted MFREE() macro entirely.
...
Reviewed by: dg, bmilekic
MFC after: 3 days
2002-02-05 02:00:56 +00:00
Yoshihiro Takahashi
f44a4f377e
- 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
Ian Dowse
f7cbf2b00e
Use a module name of 'if_lnc' in both the PCI and ISA sections of
...
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)
2001-03-18 17:44:23 +00:00
Ian Dowse
783e9b1a7a
There were a few changes missed when this file was converted to
...
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
2001-03-02 00:40:06 +00:00
Poul-Henning Kamp
6817526d14
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
Poul-Henning Kamp
78d82c8c59
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
Peter Wemm
2eedcf55e9
Remove unused #include "lnc.h"
2001-01-29 11:19:30 +00:00
Garrett Wollman
c9fce3556d
Make it clear that the macro `inb' is being overridden.
2001-01-09 04:23:56 +00:00
Paul Richards
8fcbbfe4a3
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 Richards
7716c31841
Set a lower probe return value for PCI cards so that the pcn driver wins.
2000-12-29 11:41:18 +00:00
Paul Richards
b31d9f17b1
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 Richards
d4dc2d4d0f
Switch off some debugging code.
2000-12-16 03:29:27 +00:00
Paul Richards
3a173aeeb3
Fixup some problems with the merged code of the previous commit.
2000-12-16 01:41:14 +00:00
Paul Richards
232b06012c
Newbusify.
...
Temporarily disable PC98 until I bring it up to date.
2000-12-16 01:33:28 +00:00
Hajimu UMEMOTO
39715b6a8a
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
David Malone
7cc0979fd6
Convert more malloc+bzero to malloc+M_ZERO.
...
Submitted by: josh@zipperup.org
Submitted by: Robert Drehmel <robd@gmx.net>
2000-12-08 21:51:06 +00:00
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
Gary Jennejohn
06157db316
MF4: add support for the Am79C973.
2000-06-18 08:12:54 +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
Yoshihiro Takahashi
67d17d7279
Fixed to support PC-98.
2000-05-19 16:31:45 +00:00
Paul Richards
4d2d5ed69d
Replace all references to lnc_softc with a typedef.
2000-05-16 02:30:53 +00:00
Paul Richards
33f38fdc5b
Update copyright.
2000-05-16 02:18:49 +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
Peter Wemm
365c5db0a7
Add $FreeBSD$
2000-05-01 20:32:07 +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
Warner Losh
d0d3b8345b
Ahhrggg. Put the test for the compat shims AFTER the file that includes
...
them.
Pointed out by: bde
2000-03-27 20:24:02 +00:00
Warner Losh
76fbc068b8
Per conversations in -current, add #error to these drivers when you don't
...
have the right compatibility shims enabled. ISA drivers to follow later.
2000-03-27 18:32:45 +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
9929d2a045
Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entire
...
files. config will leave the whole file out if configured to do so.
1999-07-03 20:17:08 +00:00
Paul Richards
9adcb188e5
Set the bus master bit.
...
Submitted by: Ted Faber
1999-05-10 22:39:37 +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
579f45fa60
Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:
...
#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.)
1999-05-09 17:07:30 +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