Commit Graph

2703 Commits

Author SHA1 Message Date
pavel 60ca34bcae Add forgotten #include "opt_compat_netbsd.h" because COMPAT_30 is used.
Should fix a build problem reported by Blair Sadewitz.
2006-12-05 08:17:03 +00:00
pavel 9b8e4189e5 Restore compatibility of USB_DEVICEINFO ioctl and reads from /dev/usb with
NetBSD 3.x. Patch from Stephan Thesing provided in
http://mail-index.netbsd.org/current-users/2006/03/21/0002.html, with some
modifications by me.
See also
http://mail-index.netbsd.org/current-users/2006/08/29/0017.html

The code is conditionally compiled depending on COMPAT_30.

Also fix a leak of struct usb_event in usbread() introduced while converting
on-stack variables to dynamic allocation.

Reviewed by martin@.
2006-12-03 22:34:58 +00:00
drochner af0d6b7f5e change some commented-out code to use the interrupt descriptor's polling
interval instead of an own (which isn't even defined)
2006-12-01 20:56:42 +00:00
drochner d395a37b84 -comment out transaction translator support for now, it doesn't do more
than allocating memory, and it does wrongly use the hub's capabilities
 but not the actual setting
-switch a high-speed hub to "multiple TTs" but ignore errors; since
 we don't care whether there is one or multiple this is a "best effort"
 thing
2006-12-01 20:48:50 +00:00
drochner c7a98882c8 don't specify the interrupt pipe polling interval explicitely; just rely
on the endpoint descriptor
approved by plunky
2006-12-01 20:41:23 +00:00
drochner 263cbcd833 don't specify a polling interval for the interrupt pipe -- that's
what the descriptor is good for
2006-11-30 16:30:33 +00:00
drochner bdd5b724b5 in the interrupt endpoint descriptor of the simulated root hub, fix the
poll interval: since this is a highspeed device, it should be a "12"
(just for sanity; this stuff is not used by the kernel, only userland
usb exploration code might see it)
2006-11-30 16:25:28 +00:00
drochner 0b5d054c71 Remove the code which tried to guess the toggle bit after a short
transfer. It was wrong because it didn't consider block boundaries.
Instead, use the updated toggle from the transfer descriptor -- this
is supposedly cheaper than modulo arithmetics.
This fixes a problem similar to PR kern/34070 for me.
2006-11-28 20:58:12 +00:00
martin a6d16a29ee If no scsibus is configured, do not silently fail the attach but print
a message pointing at the usscanner(4) manual page.
Addresses PR port-i386/22393.
2006-11-26 20:14:41 +00:00
christos efe8812c21 regen 2006-11-25 21:35:34 +00:00
christos 68a8c2bc9c PR/35122: Dieter Roelants: Support for LevelOne WNC-0301USB USB wireless 2006-11-25 21:35:08 +00:00
drochner 30cf9aac05 -fix interpretation of the poll interval in interrupt descriptors for
USB2/highspeed: This is an exponent now, not milliseconds.
 (There are wrong example descriptors for hubs in the USB2 spec; tolerate
  invalid values and assume 256ms which is good for hubs, just in case
  someone blindly copied from the book.)
-being here, fix an obvious memory leak
2006-11-22 21:10:36 +00:00
drochner 421a2aa25d regen 2006-11-22 17:58:39 +00:00
drochner a46bdb5784 add vendor "O2 Micro" 2006-11-22 17:57:40 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
plunky 57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
xtraeme c671ada84e Missing __KERNEL_RCSID() 2006-11-01 08:39:25 +00:00
joerg fc0bc19fc7 Add rum(4) for newer USB Ralink devices. Obtained from OpenBSD.
Special thanks to Sepherosa Ziehau for helping debugging USB issues.
Hook up rum(4) for i386 config files.
2006-10-31 22:21:16 +00:00
joerg de54b391eb Move AMRR code out of wpi(4) and ural(4) into net80211 itself.
From OpenBSD.
2006-10-31 21:53:41 +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
plunky e500250b17 enable 'Application Control Pan' in Consumer usage group as an equivalent
to the Z direction since some mice (Apple Mighty Mouse) provide horizontal
scrolling direction with that report.
2006-10-31 19:17:04 +00:00
joerg 8f704ed76b Revert last change. The DWL122C1 is *not* an ural device. 2006-10-26 17:29:03 +00:00
drochner f0834e56c6 clean up the USB attachment stuff a bit: use a dedicated interface
attribute ("usbdevif") to attach USB devices, be it a plain device or
a hub, and remove some strangeness caused by the former usb/uhub mess
2006-10-24 21:03:30 +00:00
wiz adba8fa9a7 Recognize a newer D-Link DWL-G122 as supported. 2006-10-17 23:42:18 +00:00
xtraeme 7455ba536b sigh, another missing __unused. 2006-10-12 17:50:07 +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
gdt 53eda44ae8 Match Novatel FlexPak GPS receiver and Sierra Aircard 580 (used with
Sprint EVDO).   From Armando Caro via acert.ir.bbn.com.
2006-10-11 14:32:28 +00:00
gdt b0c7441253 regen 2006-10-11 13:03:28 +00:00
gdt 2be186222f Add ids for Sierra Aircard 580 (for Sprint EVDO) and Novatel Flexpack
GPS receivers.
2006-10-11 13:02:58 +00:00
mlelstv c6d3fb32fc It is sufficient to have the members volatile. 2006-10-09 11:38:54 +00:00
scw 4f8db3981d Add the 'volatile' qualifier to all descriptor fields to prevent the
compiler optimising away or reordering accesses to them.

Fixes ehci(4) on NetBSD/evbarm when using -Os optimisation. It's likely
ohci(4) and uhci(4) are similarly afflicted, so the same changes have
been made there.

Quite how other platforms got away without this for so long is a mystery...
2006-10-08 11:52:48 +00:00
xtraeme 337d5c1a2f regen 2006-10-08 08:14:45 +00:00
xtraeme 68d8faa258 Added support for the following devices:
* Matrix Orbital MX4/MX5 Series
 * Crystal Fontz CFA-635 LCD

Patch sent by Claus Andersen via PR kern/34753.
2006-10-08 08:14:24 +00:00
dogcow 52ba9f7bb5 add braces for if-else statement, in the event that DPRINTF is an
empty statement; shuts gcc up about 'empty statement in if-else'.
2006-10-04 23:55:22 +00:00
christos b64edcaded fix empty if 2006-10-04 15:53:24 +00:00
christos 82e1169df4 fix empty if 2006-10-04 15:49:59 +00:00
christos 894062c90e Coverity CID 3061: Add KASSERT (from Arnaud Lacombe) 2006-10-03 18:21:53 +00:00
christos 5dd246492d Coverity CID 3014: Don't check for NULL after deref (from Arnaud Lacombe) 2006-10-03 18:20:57 +00:00
elad 65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
jnemeth 51cc6c4041 PR/34654 -- Peter Szilagyi -- add support for Belkin F5D6050 802.11b dongle 2006-10-01 02:06:34 +00:00
joerg b12fa3d640 Regen. 2006-09-28 16:54:16 +00:00
joerg fc4a0108a7 Add IDs for Ralink RT2501USB/RT2601USB. From OpenBSD. 2006-09-28 16:53:40 +00:00
jmcneill ce9801710e Only display "interrupt while not running ignored" if DIAGNOSTIC is set, as
whenever this happens, so many messages are spewed to the screen from the
kernel that the system is effectively useless. Hardly ignored :-)
2006-09-25 22:15:15 +00:00
christos 8b0b9e2db5 Regen 2006-09-24 17:18:49 +00:00
christos 385afe8d48 Fix whitespace inconsistencies; no functional change 2006-09-24 17:18:02 +00:00
christos da685f2130 From Claus Andersen:
- change uftdi driver to use usb_lookup
- are more devices (from FreeBSD/OpenBSD)
2006-09-24 17:17:17 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill 65876ef5bc PR# 31437: Philips Toucam Pro II is yet another 'audio' USB camera 2006-09-23 13:07:06 +00:00
christos f807e82573 regen 2006-09-22 12:44:23 +00:00
christos 33bd80c320 From: Jaime A Fournier: Patch to support SMC 2262WV1 2006-09-22 12:43:52 +00:00
plunky 4b7ccf17f9 explicitly disallow changing the config # when the device is enabled. 2006-09-19 20:34:33 +00:00
plunky 661865e783 return errno instead of usbd status 2006-09-19 19:45:48 +00:00
is 1860a0e148 Simply use the device name for the workqueue name. 2006-09-15 11:22:21 +00:00
is a2f7b2e007 aue_ioctl() for the murpose of adding/deleting multicast addresses is called
from interupt context. Defer its processing to a workqueue(9).
This fixes PR 34521.
2006-09-15 10:47:34 +00:00
plunky 4f1cbddc12 update to bluetooth device attachment:
remove pseudo-device btdev(4) and inherent limitations

add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.

btdevctl(8) and its cache is updated to handle new semantics

etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf
2006-09-10 15:45:55 +00:00
dogcow f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
martin 16f200486d Add support for IO-DATA's USB-Serial adapter (USB-RSAQ3),
from Keiichi SHIMA.
2006-09-04 15:39:39 +00:00
christos ad4f70a8e8 add missing initializer. 2006-09-03 21:30:24 +00:00
christos 2dfeed7693 fix initializers. 2006-09-03 21:28:03 +00:00
christos b231088be0 add missing initializer 2006-09-03 21:16:09 +00:00
christos 3088ae53a7 - add missing initializer
- remove stray semicolon that prevented an ioctl from working.
2006-09-03 21:09:46 +00:00
christos 40be650c67 add missing initializers. 2006-09-03 21:05:01 +00:00
christos 224c7c746b add missing initializer. 2006-09-03 21:03:11 +00:00
martin 452f35b603 Regen 2006-09-03 18:30:54 +00:00
martin 1b5905d05b Add RASQ3 variant of PL2303 serial 2006-09-03 18:30:23 +00:00
christos 92a6344549 add missing initializer 2006-09-03 07:14:47 +00:00
christos 08a78fe175 use c99 initializers 2006-09-03 07:13:46 +00:00
christos 6e6fde1336 add missing initializer 2006-09-03 07:07:20 +00:00
christos db87199efc use c99 initializers 2006-09-03 07:06:39 +00:00
plunky 999bb1e465 It seems that EHCI at least will complete a empty transfer with
status == NORMAL_COMPLETION.

Guard against that.
2006-08-30 19:42:37 +00:00
christos 16f3fda8be fix incomplete initializers 2006-08-30 00:42:41 +00:00
plunky 95d2b886d7 The ubtbcmfw(4) driver fails to compile, as noted by PR kern/34219.
While it can be made to compile, the paradigm is not quite right because
it attempts to contact the filesystem during autoconfig which sometimes
causes a panic. Even if that was fixed, there is another potential problem
in that the driver tries/sleeps/tries/sleeps and the sleep could
theoretically sleep past the rc.d/btconfig stage and the controller
would remain unconfigured.

So, I have prepared a different method for loading the firmware to
Broadcom BCM2033 chip based devices. A package 'sysutils/bcmfw' will load
the firmware files via a ugen(4) device interface.

This update removes the ubtbcmfw(4) driver and adds a table to the ubt(4)
driver so that it will not attach to Broadcom BCM2033 based devices before
the firmware was loaded.

This fixes kern/34219
2006-08-19 16:35:02 +00:00
christos 35ca6c8b5b Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
tron 5d67049004 Bluetooth fixes by Iain Hibbert:
- Update bthidev(4) to use property lists for configuration.
2006-07-26 10:40:50 +00:00
gdt f9f3dc0a85 Add UGEN_BULK_RA_WB, which allows users of ugen(4) to request read
ahead and write behind, improving performance for the Universal
Software Radio Peripheral (USRP) used with GNU Radio.

Enable UGEN_BULK_RA_WB in GENERIC and GENERIC_LAPTOP; behavior is
unchanged unless the new ioctl is called.

This code was written by Joanne Mikkelson under funding from DARPA's
ACERT program.

ok'd by christos@, tested by Berndt Josef Wulf
2006-07-24 14:24:48 +00:00
ad 3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
gson c14814103c Assert RTS on open. Fixes PR kern/33929. 2006-07-12 07:36:25 +00:00
perry 202456461a Patches contributed by KIYOHARA Takashi, taken from FreeBSD.
These apparently sync up the sources to the current FreeBSD driver.
Tested by Matthias Drochner.
2006-07-05 18:46:42 +00:00
martin 2006fdaf3e Regen 2006-07-01 08:15:16 +00:00
martin 4b488fb5fa Add an ArkMicroChips serial adapter 2006-07-01 08:14:46 +00:00
chap 710af63468 Ankh-Morpork, we have a MIDI driver....
Merge from chap-midi branch, after
~month for review
Comments by thorpej@ drochner@ and Alexandre Ratchov

Incorporated: points by thorpej@ drochner@; preliminary support for
a stats-collecting ioctl suggested by martin@ from comments by A.R.

PR kern/32441 kern/32442 kern/32567 kern/32588 kern/32694 kern/33590
kern/33614 and one instance of kern/32651

ok martin@
2006-06-30 13:56:25 +00:00
martin 74f5218c64 Initialize portno 2006-06-28 18:20:36 +00:00
gdamore a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
reinoud faf56850ba Regen due to addition of MosChip Semiconductors MCS7830 Ethernet adapter 2006-06-15 20:33:33 +00:00
reinoud b541e8386a Add MosChip Semiconductor MCS 7830 Ethernet adaptor 2006-06-15 20:30:24 +00:00
christos 86c0f863d1 Don't allocate >1K on the stack. 2006-06-12 21:01:58 +00:00
christos 1a4c395597 Don't free subdevs on normal completion. The detach code needs it. 2006-06-11 16:00:08 +00:00
christos f96931bf10 stack police: Don't allocate large buffers on the stack for I/O. Put the
buffer in the softc instead.
2006-06-09 21:34:19 +00:00
christos de34bda8ec stack police: don't allocate usb_events on the stack, malloc them directly.
this saves stack and an extra copy.
2006-06-09 21:33:42 +00:00
christos c10d68c29c stack police: Don't allocate 1k on the stack, only use malloc when we need to. 2006-06-09 21:33:01 +00:00
rjs f001fdd86f Regen for Nokia CA42. 2006-06-08 17:57:14 +00:00
rjs 9ade422744 Add vendor id for Nokia.
Add product id for CA42 mobile phone cable.
2006-06-08 17:56:20 +00:00
smb a5b05fc8d6 Increase the size of UMODEMIBUFSIZE and UMODEMOBUFSIZE. These are the
USB input and output buffer sizes; the previous values were fine for
dialup modems, but seriously limited the speed of some high-speed
wireless devices that appear to the system as a umodem.
2006-06-07 18:03:00 +00:00
tron 6cfd8c69e5 Regen. 2006-06-06 08:54:27 +00:00
tron 132db79f9b Resolve name conflict between Sun Type 6 and Type 7 USB keyboard. 2006-06-06 08:53:58 +00:00
grant 88b1c2383e regen. 2006-06-06 06:21:29 +00:00
grant ca33211023 add Sun type 7 keyboard. 2006-06-06 06:17:59 +00:00
christos 52514196f1 save another 1K on the stack. 2006-06-04 19:38:32 +00:00
christos 03701dc24f Don't allocate 1K on the stack. 2006-06-04 19:34:16 +00:00