christos
38f4ff5bf5
fix debug variables.
...
- include opt_usb.h in usb.h so that USB_DEBUG gets set properly in it.
- normalize and sort debugging variables
2013-01-05 23:34:16 +00:00
christos
3039e3a5a7
- need opt_usb.h if depending on USB_DEBUG
...
- remove trailing whitespace
- add missing KERNEL_RCSID
2013-01-05 01:30:15 +00:00
christos
748ee23b9d
kern/46391: Nat Sloss: ums.c doesn't support digitizers or touchscreens
2012-04-30 17:27:50 +00:00
jakllsch
71fd84843e
Revert previous due to active usbmp branch(es).
2011-12-23 00:51:43 +00:00
jakllsch
7f2b9b9ad4
Adjust-away inconsistent and trailing whitespace.
2011-12-22 20:06:59 +00:00
dyoung
49337c8880
Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
...
USB_MATCH(), et cetera. These files produce the same assembly
(according to objdump -d) before and after the change
2010-11-03 22:34:23 +00:00
matthias
1bb1b66ea8
Make ums.c work with a "Microsoft Natural Ergonomic Desktop 7000" mouse.
...
XXX The tilt function still doesn't work for me.
2010-01-14 09:30:39 +00:00
jakllsch
108bad03f6
Avoid treating the Griffin PowerMate knob as a ums(4).
...
Should fix PR/19445.
2010-01-12 16:18:58 +00:00
jakllsch
d1721822b6
Apply patch from Matthias Pfaller in PR/42546.
...
The USB HUT v1.11 document states that:
"Typical system software will search for application
collections tagged with either a Mouse or a Pointer usage."
This patch adjusts ums(4) to match not only on
the Mouse usage, but also on the Pointer usage.
2009-12-30 20:38:47 +00:00
mbalmer
8a44b5e050
Add support for USB HID devices that report absolute coordinates instead
...
of relative movement data, i.e. touchpanels. Please note that calibration
must be done outside the wsons(4) driver for now.
2009-11-27 08:35:05 +00:00
dyoung
f611b6f9fc
Simplify activation hooks. (sc_dying must die!)
2009-11-12 19:58:27 +00:00
rafal
4e042dc0d8
Fix kern/41737 -- add quirks to make MS Wireless Laser Mouse 6000 work.
2009-11-06 04:42:27 +00:00
uebayasi
143d2214bf
These don't need <sys/tty.h>.
2009-03-09 15:59:33 +00:00
cube
3624455eba
Split device_t and softc for all USB device drivers, and related cosmetic
...
changes.
Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral. I tested umass myself.
2008-05-24 16:40:58 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +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
jmcneill
8eeb638b73
Register with pmf
2007-12-11 03:45:57 +00:00
jmcneill
490542edae
aprintify, on behalf of xtraeme
2007-12-01 23:40:28 +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
plunky
57c0199dcf
Tidy away wsmouse_input() abstractions and update
...
documentation to include the W direction.
2006-11-12 19:00:42 +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
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
augustss
48164bddda
If a mouse has both a wheel and a Z direction we report both.
...
XXX Due to tradition the wheel is reported as the Z direction (and the Z
direction as W).
Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver
doesn't know what to do with the new coordinate.
2005-11-23 09:41:28 +00:00
augustss
f0b7793c4b
Look for a wheel before looking for a Z dir. This makes Apple's
...
Mightymouse work.
2005-11-23 09:04:20 +00:00
jmcneill
7027a58033
Support more than 7 buttons for USB mice. Patch from kern/30248
2005-08-13 14:55:39 +00:00
augustss
287c3adc4d
Update URLs for the HID spec.
...
(Committed at 36000 feet above the Atlantic on board LH418 using
a broadband satellite connection.)
2003-03-11 16:44:00 +00:00
simonb
8292cf7b00
Don't return a value in a void function.
2002-09-23 05:59:01 +00:00
simonb
4e3613273b
Remove breaks after returns, unreachable returns and returns after
...
returns(!).
2002-09-23 05:51:10 +00:00
augustss
86650920c9
Get rid of trailing white space.
2002-07-11 21:14:24 +00:00
atatat
31144d9976
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
...
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
augustss
152efb1a0e
Make a typedef for struct proc to make portingeasier.
2001-12-31 12:15:21 +00:00
augustss
93f9b36aad
Add a debug message.
2001-12-29 16:15:42 +00:00
augustss
935b0481a9
Introduce an extra driver level for HID devices, uhidev. This uhidev driver
...
attaches to the hub, and HID drivers (ums, ukbd, and uhid) attach to
uhidev. The reason for this change is that some HID devices report multiple
components (like a keyboard and a mouse) using the same interface, but with
different report identifiers. The report identifier can be specified with
a locator for the HID drivers.
Furthermore, change the ukbd driver to handle other formats than the boot
protocol.
2001-12-28 17:32:36 +00:00
lukem
667807e40c
add RCSIDs
2001-11-13 06:24:53 +00:00
augustss
a7fd78b8b5
Fix a bug in the DIAGNOSTIC version of the detach.
2001-11-07 14:13:35 +00:00
augustss
46679564db
Add a DIAGNOSTIC test.
2001-10-28 17:16:58 +00:00
augustss
17ba384efc
s/usbd_alloc_report_desc/usbd_read_report_desc/
2001-10-26 17:58:21 +00:00
augustss
437bf56d24
Fix pasto. From Andreas Johansson <ajo@rockstorm.se>.
2001-10-25 13:45:16 +00:00
augustss
cbda952879
Make sure driver attach/detach events are generated in a consistent manner.
2001-01-23 14:04:13 +00:00
augustss
79f0bd6e1f
Update many URLs.
2000-12-29 01:24:55 +00:00
augustss
966f1692e1
Don't use a plural `s' if there is only one button.
2000-10-08 20:52:18 +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
30c20f930f
Change my email address.
2000-04-27 15:26:44 +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
7d05674ba7
Distinguish between device and interface classes.
...
(I finally found a document that said that they were different.)
2000-02-29 21:37:00 +00:00
augustss
4b93911b25
Generate usb events on attach and detach.
2000-02-02 13:18:45 +00:00
augustss
c3716a6bb9
Add an argument to usbd_open_pipe_intr() to specify the polling interval
...
for an interrupt pipe in case we don't what what the descriptor suggests.
2000-01-19 00:23:58 +00:00
takemura
ba04c55ed3
Absolute pointing device support.
...
- Wsmouse_input() get new argument 'flag', which indicates whether x/y/z are
relative or absolute.
- Wsmouse get new io controls, WSMOUSEIO_SCALIBCOORDS and
WSMOUSEIO_GCALIBCOORDS.
2000-01-08 02:57:22 +00:00
augustss
3150a2103c
Reverse the sign on the wheel data. I got it wrong from the start.
1999-12-24 01:14:01 +00:00