thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
briggs
b103a8ca48
Label the buffer size as such on probe. 128 KB makes sense, but 4608 does not.
2000-08-06 00:19:04 +00:00
briggs
02e3c1ef40
Use bus_space_read/write_multi_stream_2 for FIFO instead of bsr/w_multi_2.
2000-07-31 22:48:49 +00:00
briggs
3628f3e00c
Make sure that we do not call bus_space_*_multi_* with zero count.
2000-07-31 02:14:47 +00:00
briggs
e6dde2bd42
Add MII support to smc91cxx driver. This is supported for the 91c100
...
and 91c100FD (FEAST) controllers. Existing controllers should continue
to work as they have. Added the card's memory to the probe message.
2000-07-30 21:34:47 +00:00
jhawk
1e59d99d28
For all network drivers that call ether_ifattach(), and also
...
have _detach() functions:
Ensure that softc keeps state about whether the attach succeeded,
and make the detach function return immediately if the attach did
not complete.
2000-05-29 17:37:12 +00:00
enami
ed0f41807d
- Call if_deactivate instead of smc91cxx_disable when deactivating.
...
- Fix typo in comment.
2000-02-04 04:05:50 +00:00
itojun
579e538de0
fix promisc mode for smc91cxx again.
2000-02-03 16:20:49 +00:00
itojun
b2cac6e684
if_detach for sm/pcmcia.
...
with addition of resource allocation flags in softc (to DTRT on detach).
2000-02-02 16:04:40 +00:00
itojun
e9100143aa
in promisc mode, don't inject outgoing packet to bpf twice.
...
this is because the card gets the outgoing packet from itself in promisc mode
(not really IFF_SIMPLEX).
2000-01-17 07:06:57 +00:00
thorpej
cca601b9b2
Make sure the Revision register contains the correct magic number.
...
From Chuck Cranor.
1999-09-28 17:55:33 +00:00
itojun
e0042cf412
drop wrongly looped back multicast packet before we put it into BPF.
1999-09-12 18:26:58 +00:00
itojun
ebcd1b7a41
Make sure to behave as IFF_SIMPLEX in all cases.
...
Drop multicast/broadcast packet looped back from myself.
This is to cope with SMC91C92 (Megahertz XJ10BT), which
loops back multicast packet to itself on promiscuous mode.
(should be ensured by chipset configuration)
Reviewed by: thorpej
1999-09-10 00:23:34 +00:00
thorpej
f98d358a1f
Rework layer 2 protocol input routines. Instead of calling e.g. ether_input()
...
directly, call the function pointer (*if_input)(ifp, m). The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary. Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.
1999-05-18 23:52:51 +00:00
thorpej
34f3cd7ce9
Use ETHER_*_LEN constants from <net/if_ether.h> instead of defining them
...
ourselves.
1999-03-25 23:20:22 +00:00
explorer
3ebb419571
Update to slightly altered rnd_attach_source() api
1999-02-28 17:08:05 +00:00
thorpej
69a4436f8b
Avoid initializing the interface in the SIOCSIFFLAGS if ! UP and ! RUNNING.
1999-02-17 03:40:59 +00:00
thorpej
1d0f24882d
Now that the *_activate() functions don't do things which are attachment
...
specific, move them into the chipset drivers.
1998-11-18 18:34:52 +00:00
thorpej
dd6750820c
Expose the "enable" and "disable" functions so that the front-ends can
...
access them.
1998-11-17 20:25:00 +00:00
mycroft
e2686d0a1b
Use splnet, not splimp.
1998-08-08 23:51:39 +00:00
jonathan
011f2bda08
defopt NS, NSIP.
1998-07-05 06:49:00 +00:00
jonathan
fe484937cf
defopt LLC
1998-07-05 03:14:41 +00:00
jonathan
8db0fcdbf7
defopt CCITT.
1998-07-05 02:12:22 +00:00
jonathan
3751946b97
defopt INET, NETATALK.
1998-07-05 00:51:04 +00:00
thorpej
095c4c092d
Adjust for config changes.
1998-01-12 09:23:08 +00:00
explorer
f9370ddc7a
Add and/or update rnd_*() hooks
1997-10-15 05:55:13 +00:00
thorpej
768cd3034d
Pull down from marc-pcmcia branch:
...
Add support for power management.
1997-10-14 21:41:00 +00:00
jtc
d6ae2cd7fd
Fix tipo inherited from old version of TNF copyright template.
1997-10-09 08:03:42 +00:00
thorpej
e531f18c8b
Pull the SMC91Cxx single-chip Ethernet driver core down from the marc-pcmcia
...
branch. It is also needed by and ISA front-end.
1997-09-02 00:10:55 +00:00