joerg
58e867556f
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
...
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
pooka
10fe49d72c
Redefine bpf linkage through an always present op vector, i.e.
...
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.
Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.
Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
cegger
22f40c6af4
KNF
2009-05-12 14:07:01 +00:00
tsutsui
d779b85d3e
Remove extra whitespace added by a stupid tool.
...
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
cegger
e2cb85904d
bcopy -> memcpy
2009-03-18 17:06:41 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
matt
dfba816635
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
...
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
2008-03-11 05:34:01 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
thorpej
ceb94256d6
Use device_private().
2006-03-29 18:17:36 +00:00
thorpej
4d51b7cce7
Use device_parent().
2006-03-25 04:08:45 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
ragge
a4a700a791
Fixes due to cast-qual addition.
2005-06-27 11:05:24 +00:00
simonb
17948e75bb
White space nits.
2005-02-26 12:45:06 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
thorpej
b75a007d9f
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:51:16 +00:00
thorpej
71adb76f75
Use CFATTACH_DECL().
2002-09-30 21:57:46 +00:00
thorpej
f818766afe
Declare all cfattach structures const.
2002-09-27 20:31:45 +00:00
lukem
a3746e00b7
add RCSIDs
2001-11-13 07:11:12 +00:00
ragge
93011fb5f6
Use if_uba + ether_ioctl routines. Removed ~150 lines of duplicated code.
2001-05-06 15:27:48 +00:00
ragge
6bfb730eba
Use ubmemalloc() to get mapped uba memory.
...
Only copy mbufs if there are more than two in a mbuf chain (on transmit).
This squeezed another 5% out of the DEUNA. (now closing up to 100 K/s :-)
2001-04-26 19:36:07 +00:00
thorpej
a64a0f8137
ALTQ'ify.
2000-12-14 07:15:45 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
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
ragge
944b6966e9
Fix a transmit bug and get a little more out from the receive logic.
2000-06-08 19:58:49 +00:00
matt
2f85fe7adb
Adjust to new evcnt stuff.
2000-06-05 00:09:17 +00:00
matt
0bd304e528
More event counter stuff. Plus a little cruft cleanup while doing it.
2000-06-04 06:16:53 +00:00
ragge
16f02724d6
Some updates to the DEUNA driver:
...
- Change the transmit logic to send from a pre-allocated buffer instead
of doing DMA out of the mbufs directly. Timing shows that it takes
4 times longer to map in the mbufs via the sgmap routines instead of
just copying the data! This must be fixed sometine in the future.
- A bunch of other minor fixes.
2000-05-28 17:23:44 +00:00
ragge
8995505723
Rewritten (most of) the DEUNA/DELUA driver. No more data copy, packet
...
header fiddling and forget driver support for trailers.
2000-04-30 11:43:26 +00:00