dyoung
f59a11881a
Constify: LLADDR() -> CLLADDR().
2007-08-29 22:33:42 +00:00
drochner
8258b792b7
Introduce different autoconf interface attributes for USB drivers
...
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
stage, but did configuration again. I've converted them to match
in the device stage.
ustir, utoppy: matched in the interface stage, but only against
vendor/device information, and used any configuration/interface
without checking. Changed to match in device stage, and added
some simple code to configure and use the first interface.
If you have one of those devices, please test!
2007-03-13 13:51:53 +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
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
joerg
8934eeb830
Split the USB task queue into two parts, one for normal device tasks and
...
one for tasks of the host controllers. This is needed for drivers like
ural(4) that want to do synchronous USB transfers from the task handler.
Before the split timeouts could not be handled correctly as the task
thread was still blocked. From FreeBSD.
2006-10-31 20:43:31 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
dogcow
f2d329dca0
remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.
2006-09-07 02:40:31 +00:00
augustss
911fb919e4
Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
...
an interrupt context. From kern/32172 by darkstar@city-net.com .
2005-11-28 13:31:09 +00:00
augustss
834327c847
Don't keep the devinfo string on the stack, instead use malloc/free.
...
This should cure some rare stack overflows.
2005-05-11 10:02:28 +00:00
yamt
06fbfe5c17
constify.
2005-01-08 03:16:51 +00:00
itojun
300aa0dcd5
use bounded string ops (snprintf, strl*)
2004-04-23 17:25:25 +00:00
augustss
86650920c9
Get rid of trailing white space.
2002-07-11 21:14:24 +00:00
augustss
5059a3264c
s/__FUNCTION__/__func__/
2002-07-08 17:46:23 +00:00
augustss
dfbcffae07
Remove some stupid casts.
2001-12-12 15:36:08 +00:00
augustss
02aa2a59bc
Handle vendor/product lookup with a common routine.
2001-12-03 01:47:12 +00:00
lukem
667807e40c
add RCSIDs
2001-11-13 06:24:53 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
augustss
9071f4edbb
Make sure all tasks are remove on detach.
2001-04-12 23:54:56 +00:00
enami
2c218a4926
Handle allmulti case correctly as a NetBSD network driver;
...
if we are requested range of multicast address or too many multicast address,
program multicast filter to receive all multicast address. And set/clear
IFF_ALLMULTI flag properly.
2001-01-29 01:24:42 +00:00
augustss
5e8cefc2ea
Ad function to remove a usb task.
2001-01-23 17:04:30 +00:00
augustss
7090ce901d
Defer stopping the interface on error to a process context.
...
XXX The cue changes have not been tested, since I don't have a cue adapter.
2001-01-21 22:09:23 +00:00
augustss
aa75661373
Use the new usb_add_task() call to execute the statistics gathering.
...
This gets rid of the evil USBD_NO_TSLEEP hask from the cue driver.
2001-01-21 19:30:35 +00:00
augustss
e391b64407
Change watchdog code (from FreeBSD).
2001-01-21 16:06:48 +00:00
augustss
1d6d81b317
Get rid of `#ifdef FreeBSD'; they maintain their own version.
2001-01-21 16:03:11 +00:00
thorpej
71cbcad899
ALTQ'ify.
2000-12-14 07:51:36 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
augustss
94e36acb29
Tell usbd_set_config_no() to be verbose. It's nice to know whyit fails.
2000-10-24 14:53:59 +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
augustss
ed9486e158
Bring the coding style into the 80s, i.e., get rid of __P and use
...
ANSI prototypes and declarations.
2000-06-01 14:28:57 +00:00
augustss
23f3c0074f
Sync with FreeBSD: add two more adapters.
2000-04-23 19:03:45 +00:00
augustss
0a425e1f3d
Generate an error message if starting a transfer fails.
2000-04-02 21:25:41 +00:00
augustss
4fe9287221
Two more OpenBSD fixes.
2000-03-30 08:53:30 +00:00
augustss
dd7160dcba
Afew more OpenBSD portability fixes.
2000-03-30 00:18:17 +00:00
augustss
a25e27e1eb
Some OpenBSD portability fixes.
2000-03-29 18:24:52 +00:00
augustss
fc72e72d7d
Change (almost) all static to Static. The symbol `Static' can then be defined
...
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
augustss
0069eba19b
Some cleanup and renaming of the callouts used in USB drivers.
2000-03-24 22:03:28 +00:00
augustss
a01d316027
General code cleanup.
2000-03-24 13:08:28 +00:00
thorpej
fc96443d15
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
augustss
499e5cba01
Fix some uninitialized variables. From Krister Walfridsson <cato@df.lth.se>
2000-03-15 22:40:30 +00:00
thorpej
a6f861574a
No longer necessary to futz with ifp->if_baudrate here.
2000-03-06 21:02:00 +00:00
augustss
e0cb11e30e
Use macros from usb.h instead masking out bit explicitely.
2000-03-06 20:58:18 +00:00
augustss
d6c4ac7ff2
Use ratecheck() to limit error messages on disconnect.
...
Break out some common functionality.
2000-03-02 12:37:50 +00:00
augustss
3218dd992d
Protect the use of bpf_mtap so bpf isn't needed.
...
aue: Limit the number of error messages at disconnect by using ratecheck().
2000-03-01 19:00:51 +00:00
augustss
10d9610df8
Make this driver actually work in NetBSD. From Castor Fu <castor@geocast.com>
2000-02-27 22:15:24 +00:00
augustss
6fa8665eeb
Handle detach that happens before attach has finished. (Reported by mycroft.)
2000-02-17 18:42:21 +00:00
mycroft
f7ad1af2b5
Use bpf_mtap() correctly.
2000-02-17 05:41:41 +00:00
augustss
aae9ac7e11
Generate usb events on attach and detach.
...
Handle rnd stuff correctly.
2000-02-02 13:19:44 +00:00
augustss
b10d6a6fc0
Support detach.
2000-02-02 11:42:29 +00:00
augustss
9cd4bf4652
Remove the hack that handled truncated transfers.
2000-01-28 00:29:53 +00:00
augustss
4357bf2625
Pretend we can detach. Then we can at least the detach the device
...
if the attach fails in the middle.
2000-01-18 19:46:55 +00:00