Commit Graph

2925 Commits

Author SHA1 Message Date
cegger 31dfb0cf52 regen. 2008-05-11 06:44:16 +00:00
cegger 6cc82eadea add Garmin Forerunner 305, GPS clock device 2008-05-11 06:42:47 +00:00
mlelstv 8944a89578 Use NODOORLOCK quirk to make iBead MP3 players work.
Fixes PR kern/23875.
2008-05-11 05:20:33 +00:00
jmcneill 729313d52c Use 2-clause license. 2008-05-05 00:12:49 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad 992544b3e9 Fix build error. 2008-04-27 22:34:49 +00:00
nakayama fbdd1b7ea8 Fix typo.
s/amrr_min_success_threshold/amrr_max_success_threshold/ in second line.
2008-04-27 09:32:08 +00:00
ad 6d70f903e6 Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.
2008-04-24 15:35:27 +00:00
jmcneill de45d1c96b Cleanup uhub autoconfiguration messages. 2008-04-21 23:31:18 +00:00
cegger a76bb1857c regen. 2008-04-21 21:18:59 +00:00
cegger a9cad030a2 Phison Electronics, vendor of my USB Stick 2008-04-21 21:17:51 +00:00
cegger 86537ae77c sprintf -> snprintf 2008-04-10 19:49:14 +00:00
cegger 395c8c3fd3 use aprint_*_dev and device_xname 2008-04-05 16:35:35 +00:00
drochner 42de29841b restore error handling in usbopen() (accidentally removed in a recent
commit), should fix a crash reported by Arto Huusko
2008-04-03 14:07:01 +00:00
xtraeme e3c537a961 Fix previous commit, this Guillemot model was supported already
by rum(4).
2008-04-01 15:26:11 +00:00
xtraeme 1da8284de3 Match another Guillemot model, reported by J. Vicente Carrasco
in private email.
2008-03-30 16:19:55 +00:00
ad 3e4bd28ac8 Defer USB configuration until interrupts are enabled. 2008-03-30 15:37:49 +00:00
nakayama 136678d875 Fix ohci brokenness in previous commit. 2008-03-29 02:20:41 +00:00
drochner fd0ded75ed split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems
2008-03-28 17:14:45 +00:00
drochner 8e182b07db remove FreeBSD/OpenBSD sections, cross-platform support hasn't been
maintained for a while
2008-03-28 17:10:30 +00:00
ichiro 9aa0df1bf3 add device 'E620'on Vodafone.
It was tested on Vodafone by Mihai Chelaru <kefren@NetBSD.org>
and works perfectly.
2008-03-27 04:13:23 +00:00
cube b1be269fbd Split device_t and softc for atapibus(4). 2008-03-24 14:44:26 +00:00
elric d670789a3d Moved USB_PRODUCT_NOVATEL2_MERLINV620 into the UNTESTED section as the
man page indicated that it is untested.  Fixed some whitespace issues.
2008-03-17 02:43:56 +00:00
elric 4b299d47e7 Made a number of modifications, including:
1.  fixed a bug where the last bulk in/out was chosen rather
	    than the first.  This got my Sierra AC 595 working,

	2.  reworked some of the match logic to include flags for the
	    matches,

	3.  defined a flag UNTESTED which causes a warning to be output,

	4.  added product/vendor IDs from other OSes (OpenBSD, FreeBSD,
	    Linux) but marked them UNTESTED.
2008-03-17 02:40:04 +00:00
elric 394d344d7a Add a number of products which will be supported in ugensa(4).
Most of these are experimental and the product/vendor IDs are
snarfed from OpenBSD, FreeBSD and Linux.
2008-03-17 02:37:51 +00:00
ws 27973cf78e Don't leak information from kernel to userland.
(Well, the first 2 changes wouldn't really be neccessary,
however, IMHO this makes it clearer why we don't leak.)
2008-03-08 18:46:18 +00:00
dyoung 9a0e417e90 Use device_t and accessors. Setup power management in the PCI
front-end (XXX needs to look more alike the Cardbus front-end).
Establish the shutdown hook using PMF.
2008-03-07 22:32:52 +00:00
dyoung 347c1a2644 Use device_t and accessors.
In ohci_{pci,cardbus}_attach, do not get the device_t by casting
the softc to void *, but use `self' instead.
2008-03-07 21:48:46 +00:00
dyoung 2e3b67d337 Register the shutdown hook using pmf_device_register1(). 2008-03-07 21:36:51 +00:00
rmind c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
rafal ba7873b58d Add TRIPPLITE2 UPS into the list of devices ignored by uhid(4) -- the UPS
software apparently wants to drive it as a ugen(4) instead.
2008-02-24 20:25:13 +00:00
rafal 570306d6b7 Regen for addition of TRIPPLITE2 UPS. 2008-02-24 20:23:38 +00:00
rafal c99a7eb6d3 Add another vendor ID for Tripp Lite and product entry for their USB UPS
interface (it appears to be a generic product ID, rather than per-model).
2008-02-24 20:22:06 +00:00
dyoung cd44c43b28 Add a method to detach child.
Cosmetic: use device_t and accessors.  Use aprint_*_dev().  Use
PMF_FN_{ARGS,CALL,PROTO}.
2008-02-22 23:04:52 +00:00
dyoung 1fa24f5705 Add method to detach children.
Temporary: use PMF_FN_PROTO, PMF_FN_ARGS.
2008-02-22 22:22:27 +00:00
rafal 976dbbc142 Make this work on a new TrippLite USB->Serial Converter Model U209-000-R.
At least rev 3.00 of the device needs the HX hack(s).
2008-02-21 04:38:43 +00:00
mlelstv f99dbc5c80 fix typo 2008-02-20 15:55:38 +00:00
drochner 33e22165c1 recognize Shantou ADM8515 2008-02-19 10:52:44 +00:00
drochner 52851a2776 regen 2008-02-19 10:51:56 +00:00
drochner 0e9e9e8505 add the Shantou ADM8515 ethernet chip which is in some
"Wintech LanCard" adapter I just got
(USB 2.0 on the label but just full-speed - what a crap)
2008-02-19 10:51:07 +00:00
dyoung 0b1dce29ae Use device_t and its accessor functions.
Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().
2008-02-18 05:24:24 +00:00
smb 585d42043e Patch from Jared McNeill to prevent USB interrupt storms on resume on
Thinkpad T61.  (Note: to prevent a very similar-seeming problem, T61
users should also install firmware 2.06 or later, according to thinkwiki.)
2008-02-13 00:52:44 +00:00
mlelstv 20eb004e2e Add some initialization magic from FreeBSD. This makes it work with
the more recent PL2303 revision 4.
2008-02-12 22:29:54 +00:00
drochner b399335799 add NULL power handler, so that this device doesn't block suspension 2008-02-12 19:37:51 +00:00
ichiro bb98e5cd32 regen. 2008-02-11 02:23:32 +00:00
ichiro f5c8edbfe7 add new device support to uhmodem driver
PR/37985 from Yojiro UO
2008-02-11 02:23:09 +00:00
dyoung 2ccede0a9c Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
2008-02-07 01:21:52 +00:00
drochner d9459c5f21 share some code for USB root hub emulation which is common in the 3
host controller implementations, start with two little functions
which fake up string descriptors (which were inconststent, language
table fetching didn't interoperate with other code in the tree)
2008-02-03 10:57:11 +00:00
tron ce82b598ec Add support for function keys F16 to F19 as present on e.g. the new
Apple aluminum keyboard.

Patch contributed by Michael Piotrowski in PR kern/37788, reviewed
by Matthias Drochner.
2008-01-29 20:54:32 +00:00
jmcneill ef5ded9b39 No need to operate in polling mode in ehci_resume. 2008-01-28 20:58:23 +00:00