The NetBSD Project

CVS log for src/sys/dev/usb/ukbd.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.126 / (download) - annotate - [select for diffs], Thu Apr 4 13:23:50 2013 UTC (7 weeks ago) by skrll
Branch: MAIN
CVS Tags: khorben-n900, HEAD
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored)

Whitespace

Revision 1.125 / (download) - annotate - [select for diffs], Sat Jan 5 01:30:17 2013 UTC (4 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, tls-maxphys-nbase, tls-maxphys-base, agc-symver-base, agc-symver
Changes since 1.124: +10 -10 lines
Diff to previous 1.124 (colored)

- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jun 10 06:15:54 2012 UTC (11 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.123: +5 -5 lines
Diff to previous 1.123 (colored)

merge the jmcneill-usbmp branch.  many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)

the main changes are something like:

        - usbd_bus_methods{} gains a get_lock() to enable the
          host controller to provide a lock for the USB code.
          if the lock isn't provided, old-style protection is
          (partially) applied.

        - ehci/ohci/uhci have been converted to the new
          interfaces, including mutex/cv/etc conversion.

        - usbdivar.h contains a discussion about locking and
          what locks are held for which method calls.  more
          to come for usbdi(9) here.

        - audio drivers (uaudio, umidi, auvitek) have been
          properly SMPified now that USB is ready.

        - scsi drivers have been modified to take the kernel
          lock explicitly before calling into scsi code.

        - usb pipes are associated with a lock, that is the
          same as the controller lock.  (this could be split
          up further in the future.)

        - several usbfoo_locked() or usbfoo_unlocked()
          functions have been added to the usbdi(9) to
          enable functionality with or without the USB
          lock (per controller) already being held.

the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Apr 24 01:02:12 2012 UTC (12 months, 4 weeks ago) by khorben
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.122: +35 -35 lines
Diff to previous 1.122 (colored)

Revert previous commit, as it really is wrong to grow ukbd_trtab to an array
of 16-bit values. While at it, set the correct value for the Sleep button.

Likewise, keep forwarding the keys specific to the Sun Type 7 USB keyboard as
raw input (currently required for X), but making sure to use unassigned and
valid values this time.

Tested with modular-xorg-server 1.6.5nb11 and xf86-input-keyboard 1.3.2nb3.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Apr 22 14:32:08 2012 UTC (13 months ago) by khorben
Branch: MAIN
Changes since 1.121: +35 -35 lines
Diff to previous 1.121 (colored)

Implemented extra keys as found on Sun Type 7 USB keyboards, and
according to the documentation mentioned above in this file.

"works here" macallan@, myself

Revision 1.121 / (download) - annotate - [select for diffs], Sun Apr 22 14:25:14 2012 UTC (13 months ago) by khorben
Branch: MAIN
Changes since 1.120: +9 -3 lines
Diff to previous 1.120 (colored)

Also lookup and be able to lit the LED for the Compose key. Seems to
require additional modifications to function properly in X though.

No objection on current-users@

Revision 1.120 / (download) - annotate - [select for diffs], Sun Apr 22 14:19:24 2012 UTC (13 months ago) by khorben
Branch: MAIN
Changes since 1.119: +11 -2 lines
Diff to previous 1.119 (colored)

Convert keycodes 0x7f, 0x80 and 0x81 to PMF events VOLUME_TOGGLE,
VOLUME_UP and VOLUME_DOWN as observed on my Sun Type 7 USB keyboard, and
according to the documentation mentioned above.

"works here" macallan@ and myself

Revision 1.119 / (download) - annotate - [select for diffs], Sun Apr 22 14:13:32 2012 UTC (13 months ago) by khorben
Branch: MAIN
Changes since 1.118: +20 -20 lines
Diff to previous 1.118 (colored)

Indent the trtab_gdium_fn array like surrounding variables.

No objection on current-users@

Revision 1.118 / (download) - annotate - [select for diffs], Sun Apr 22 14:04:45 2012 UTC (13 months ago) by khorben
Branch: MAIN
Changes since 1.117: +4 -3 lines
Diff to previous 1.117 (colored)

Fixed a potential out-of-bounds array access when translating keycodes
for the gdium keyboard.

Reviewed by macallan@

Revision 1.117 / (download) - annotate - [select for diffs], Sun Mar 11 01:06:07 2012 UTC (14 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8, jmcneill-usbmp-base7
Changes since 1.116: +3 -2 lines
Diff to previous 1.116 (colored)

minor cleanups from usbmp:
- move usbd_delay_ms() into usbdivar.h in the usb_subr.c section
- minor rcsid fixes
- copyright maintenence

Revision 1.116 / (download) - annotate - [select for diffs], Fri Feb 24 06:48:26 2012 UTC (14 months, 4 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.115: +4 -14 lines
Diff to previous 1.115 (colored)

remove any remnants of freebsd/openbsd code.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Dec 23 00:51:47 2011 UTC (17 months ago) by jakllsch
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

Revert previous due to active usbmp branch(es).

Revision 1.114 / (download) - annotate - [select for diffs], Thu Dec 22 20:07:01 2011 UTC (17 months ago) by jakllsch
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Adjust-away inconsistent and trailing whitespace.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Nov 3 02:41:29 2011 UTC (18 months, 2 weeks ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.112: +14 -3 lines
Diff to previous 1.112 (colored)

only build gdium Fn support with options GDIUM_KEYBOARD_HACK

Revision 1.112 / (download) - annotate - [select for diffs], Wed Nov 2 08:49:08 2011 UTC (18 months, 2 weeks ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.111: +20 -10 lines
Diff to previous 1.111 (colored)

support PMF events as target type in scancode translation tables

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 2 08:20:02 2011 UTC (18 months, 2 weeks ago) by macallan
Branch: MAIN
Changes since 1.110: +50 -2 lines
Diff to previous 1.110 (colored)

support Gdium's Fn key
translation table from OpenBSD

Revision 1.110 / (download) - annotate - [select for diffs], Sun Jan 2 12:36:41 2011 UTC (2 years, 4 months ago) by mbalmer
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored)

Cap h.loc.count at MAXKEYCODE instead of bailing out.  This lets some obscure/
roque keyboards attach.

From loganaden@devio.us (Loganaden Velvindron), thanks!

Revision 1.109 / (download) - annotate - [select for diffs], Tue Nov 30 11:35:30 2010 UTC (2 years, 5 months ago) by phx
Branch: MAIN
Changes since 1.108: +151 -20 lines
Diff to previous 1.108 (colored)

Support for Apple notebook keyboards, which have a few quirks.
1. On ISO-keyboard the keycodes for the key left of '1' and right of Shift
   are swapped.
2. Find the Apple FN key in the report descriptor and do the translations
   needed, before passing the keycodes to wscons.
3. Those keyboards only have the left Alt key. AltGr is missing. So it is
   emulated when holding down FN together with Alt.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (2 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.107: +18 -18 lines
Diff to previous 1.107 (colored)

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

Revision 1.107 / (download) - annotate - [select for diffs], Tue Feb 9 16:01:17 2010 UTC (3 years, 3 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.106: +5 -3 lines
Diff to previous 1.106 (colored)

Tweak comment about keyboard mapping.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Jan 11 00:18:26 2010 UTC (3 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.105: +4 -2 lines
Diff to previous 1.105 (colored)

_KERNEL_POT

Revision 1.105 / (download) - annotate - [select for diffs], Thu Nov 12 19:58:27 2009 UTC (3 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.104: +5 -10 lines
Diff to previous 1.104 (colored)

Simplify activation hooks.  (sc_dying must die!)

Revision 1.104 / (download) - annotate - [select for diffs], Sat Jul 11 18:26:58 2009 UTC (3 years, 10 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.103: +18 -7 lines
Diff to previous 1.103 (colored)

Fix WSKBD_RAW mode ukbd -> pckbd translation for Pause/Break and
Print Screen/Sys Req keys so xf86-input-keyboard can figure out
what we want.

Additionally, fix dead URL, and add a note that this emulation
is not completely identical to a real pckbd.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Mar 9 15:59:33 2009 UTC (4 years, 2 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.102: +2 -3 lines
Diff to previous 1.102 (colored)

These don't need <sys/tty.h>.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Jan 11 10:56:27 2009 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.101: +6 -6 lines
Diff to previous 1.101 (colored)

make this compile

Revision 1.101 / (download) - annotate - [select for diffs], Tue Sep 9 17:40:40 2008 UTC (4 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.100: +9 -3 lines
Diff to previous 1.100 (colored)

register with pmf

Revision 1.100 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (5 years ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.99: +10 -10 lines
Diff to previous 1.99 (colored)

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.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:59 2008 UTC (5 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.98: +2 -9 lines
Diff to previous 1.98 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.98 / (download) - annotate - [select for diffs], Sat Apr 5 16:35:35 2008 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.97: +5 -4 lines
Diff to previous 1.97 (colored)

use aprint_*_dev and device_xname

Revision 1.97 / (download) - annotate - [select for diffs], Mon Feb 18 05:24:24 2008 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.96: +30 -12 lines
Diff to previous 1.96 (colored)

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().

Revision 1.96 / (download) - annotate - [select for diffs], Tue Jan 29 20:54:32 2008 UTC (5 years, 3 months ago) by tron
Branch: MAIN
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored)

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.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:49 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6
Changes since 1.94: +4 -4 lines
Diff to previous 1.94 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:27 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm, itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4, itohy-usb1
Changes since 1.93: +7 -7 lines
Diff to previous 1.93 (colored)

__unused removal on arguments; approved by core.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:00 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.92: +8 -6 lines
Diff to previous 1.92 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.92 / (download) - annotate - [select for diffs], Sun Sep 3 21:17:54 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored)

add missing initializer

Revision 1.91 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:35 2006 UTC (7 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

Use device_unit().

Revision 1.90 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

merge ktrace-lwp.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jun 13 16:41:44 2005 UTC (7 years, 11 months ago) by cube
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored)

Provide a header for UKBD_LAYOUT.  It makes more sense, and it avoids
quoting issues during the build process.

Reported and checked by spz@.

Revision 1.88 / (download) - annotate - [select for diffs], Tue May 3 18:37:46 2005 UTC (8 years ago) by jonathan
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Fix ifdef botch in previous revision:

The `Static' forward declaration of ukbd_rawrepeat was inside #ifdef
UKBD_REPEAT but not #ifdef DISPLAY_COMPAT_RAWCKBD. The definition and
all other references are inside both #ifdefs.  The `static' function
declaration with no definition failed GCC warnings.

Pass GCC warnings by wrapping  the declaration with a check that both
CPP tokens are defined.

Revision 1.87 / (download) - annotate - [select for diffs], Tue May 3 13:15:21 2005 UTC (8 years ago) by augustss
Branch: MAIN
Changes since 1.86: +18 -8 lines
Diff to previous 1.86 (colored)

Don't emulate auto repeat in the keyboard driver, the wskbd driver does that.
Auto repeat emulation can be turned on by defining UKBD_REPEAT, but this
should never be necessary.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Apr 29 17:02:06 2005 UTC (8 years ago) by augustss
Branch: MAIN
Changes since 1.85: +5 -3 lines
Diff to previous 1.85 (colored)

If UKBD_LAYOUT isn't defined, but PCKBD_LAYOUT is, use the latter as the
default layout.  Fixes half of kern/28668.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Mar 11 16:44:00 2003 UTC (10 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, matt-timespec, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: netbsd-3, netbsd-2, ktrace-lwp
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Update URLs for the HID spec.

(Committed at 36000 feet above the Atlantic on board LH418 using
a broadband satellite connection.)

Revision 1.84 / (download) - annotate - [select for diffs], Wed Oct 9 01:02:26 2002 UTC (10 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.83: +10 -6 lines
Diff to previous 1.83 (colored)

Make sure we are at splusb() while polling.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:22 2002 UTC (10 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.82: +2 -3 lines
Diff to previous 1.82 (colored)

Remove breaks after returns, unreachable returns and returns after
returns(!).

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jul 11 21:14:30 2002 UTC (10 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.81: +16 -16 lines
Diff to previous 1.81 (colored)

Get rid of trailing white space.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Mar 17 19:41:04 2002 UTC (11 years, 2 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

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.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Dec 31 12:15:21 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll
Changes since 1.79: +7 -5 lines
Diff to previous 1.79 (colored)

Make a typedef for struct proc to make portingeasier.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Dec 30 19:37:43 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.78: +6 -5 lines
Diff to previous 1.78 (colored)

A little more debug.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Dec 30 19:22:28 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

Fix typo.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Dec 29 18:57:16 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.76: +2 -10 lines
Diff to previous 1.76 (colored)

Remove garbage.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Dec 29 02:53:41 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.75: +47 -35 lines
Diff to previous 1.75 (colored)

Add some missing scan code translations.  Docs from Microsoft via Perry Metzger.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Dec 28 17:32:36 2001 UTC (11 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.74: +160 -166 lines
Diff to previous 1.74 (colored)

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.

Revision 1.74 / (download) - annotate - [select for diffs], Wed Nov 28 05:45:28 2001 UTC (11 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

use #ifdef DDB (for consistency with the rest of the kernel)

Revision 1.73 / (download) - annotate - [select for diffs], Thu Nov 15 15:15:58 2001 UTC (11 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

usbd_interface2device_handle() cannot fail.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Nov 13 06:24:55 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.71: +4 -1 lines
Diff to previous 1.71 (colored)

add RCSIDs

Revision 1.71 / (download) - annotate - [select for diffs], Wed Nov 7 02:52:47 2001 UTC (11 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.70: +27 -2 lines
Diff to previous 1.70 (colored)

Add a workaround for broken ports (e.g. macppc) that do not call
cnpollc before cngetc in DDB.  DDB now works with USB console on Macs.

Don't frob the LEDs if nothing changes.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Oct 28 16:53:21 2001 UTC (11 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.69: +11 -11 lines
Diff to previous 1.69 (colored)

Use the usb callout macros.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Oct 24 21:02:18 2001 UTC (11 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.68: +14 -2 lines
Diff to previous 1.68 (colored)

If we are the console and we have DDB then events must not be delivered
from the interrupt routine since this will enter the USB interrupt
processing recursively during polling.
Now ukbd can be used as console keyboard for DDB!

Revision 1.68 / (download) - annotate - [select for diffs], Wed Oct 24 15:31:06 2001 UTC (11 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.67: +9 -1 lines
Diff to previous 1.67 (colored)

Make sure interrupt pipe is closed when detaching console keyboard.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Sep 28 23:42:17 2001 UTC (11 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

Only clear the endpoint on stall (from FreeBSD).

Revision 1.66 / (download) - annotate - [select for diffs], Fri Apr 6 22:54:15 2001 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Changes since 1.65: +5 -1 lines
Diff to previous 1.65 (colored)

Allow a UKBD_LAYOUT option to determine the default keyboard layout.
(From OpenBSD.)

Revision 1.65 / (download) - annotate - [select for diffs], Wed Feb 21 21:39:59 2001 UTC (12 years, 3 months ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

make some more constant arrays 'const'

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jan 23 14:04:13 2001 UTC (12 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

Make sure driver attach/detach events are generated in a consistent manner.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Dec 29 01:24:57 2000 UTC (12 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Update many URLs.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Aug 20 22:30:17 2000 UTC (12 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.61: +98 -12 lines
Diff to previous 1.61 (colored)

Implement handling of the UQ_SPUR_BUT_UP quirk.  Some keyboards sometimes
generate a key up quickly followed by a key down for the same key, so we
take care of that.
(Finally I can type again without going nuts. :)

Revision 1.61 / (download) - annotate - [select for diffs], Thu Aug 17 23:08:07 2000 UTC (12 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Add two keys to the raw mapping for German keyboards.
From Matthias Kretschmer <McCratch@gmx.net>, fixes PR 10850.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jun 1 14:29:00 2000 UTC (12 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.59: +16 -34 lines
Diff to previous 1.59 (colored)

Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Apr 27 15:26:48 2000 UTC (13 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Change my email address.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Mar 27 12:33:56 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.57: +11 -11 lines
Diff to previous 1.57 (colored)

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.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:46 2000 UTC (13 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +12 -5 lines
Diff to previous 1.56 (colored)

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.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Feb 29 21:37:01 2000 UTC (13 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.55: +4 -6 lines
Diff to previous 1.55 (colored)

Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

Revision 1.55 / (download) - annotate - [select for diffs], Wed Feb 2 13:18:46 2000 UTC (13 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.54: +10 -1 lines
Diff to previous 1.54 (colored)

Generate usb events on attach and detach.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jan 19 00:23:58 2000 UTC (13 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.53: +3 -2 lines
Diff to previous 1.53 (colored)

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.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jan 16 09:41:22 2000 UTC (13 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.52: +4 -2 lines
Diff to previous 1.52 (colored)

Add a DPRINTF on keyboard errors.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jan 16 09:37:18 2000 UTC (13 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

Let usbd_set_polling() work on a usbd_device_handle instead of
a usbd_interface_handle.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Dec 6 21:07:00 1999 UTC (13 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.50: +9 -1 lines
Diff to previous 1.50 (colored)

Cosmetics and a couple of diagnostic messages.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Dec 1 23:22:57 1999 UTC (13 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.49: +8 -3 lines
Diff to previous 1.49 (colored)

Done something half sensible if a USB console keyboard is unplugged instead
of panic()ing.
XXX Untested.  I will test it the next time I can borrow an iMac.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 26 01:39:27 1999 UTC (13 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Cosmetic changes.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Nov 12 19:11:25 1999 UTC (13 years, 6 months ago) by mjacob
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.47: +3 -1 lines
Diff to previous 1.47 (colored)

Hide function definition within ifdef's is becomes active in.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:57 1999 UTC (13 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.46: +26 -26 lines
Diff to previous 1.46 (colored)

A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF

Revision 1.46 / (download) - annotate - [select for diffs], Wed Oct 13 08:10:57 1999 UTC (13 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.45: +4 -6 lines
Diff to previous 1.45 (colored)

Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
the USB stack compiles on FreeBSD again.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Oct 12 11:54:56 1999 UTC (13 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Add an event mechanism so that a userland process can watch devices come
and go.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 12 08:21:49 1999 UTC (13 years, 8 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.43: +5 -2 lines
Diff to previous 1.43 (colored)

Dot't forget to deactivate subdevices.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Sep 5 19:32:18 1999 UTC (13 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

Change the way the `struct device' base part of all driver softc are
declared and accessed to make it more portable.  Idea from Nick Hibma, FreeBSD.
No functional changes.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Sep 4 22:26:12 1999 UTC (13 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Change the way the direction is extracted from the endpoint descriptor.
No functional changes to the drivers.  From Nick Hibma, FreeBSD.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Aug 28 21:42:35 1999 UTC (13 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Change some 'struct device' to 'bdevice'.  From FreeBSD.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Aug 23 22:55:14 1999 UTC (13 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.39: +20 -1 lines
Diff to previous 1.39 (colored)

Make sure to mark the device as dying already in the (de)activate routine.
This avoids access to it before the detach routine has blown it away.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 14 14:49:32 1999 UTC (13 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.38: +3 -63 lines
Diff to previous 1.38 (colored)

Some changes from FreeBSD (no functional differences).

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jul 24 01:40:19 1999 UTC (13 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.37: +11 -7 lines
Diff to previous 1.37 (colored)

More DIAGNOSTIC messages.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jun 30 06:44:23 1999 UTC (13 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.36: +36 -48 lines
Diff to previous 1.36 (colored)

Totally redo the way device detach is done.  It now uses a kernel event
thread and the config detach method.
Squish a number of space leaks on detach.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 26 03:14:25 1999 UTC (13 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored)

Remove unneeded #include.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 14 17:09:57 1999 UTC (13 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Get rid of a bunch of code that was part of an old USBDI proposal, but that
is unused in our USB stack.

Once upon a time, when I started writing the USB stack for NetBSD, there
was an effort to make a standard for how USB device drivers should interact
with the rest of the USB stack.  This effort had contributors from just
about all Un*x camps (but not Micro$oft :).  I based my design on one of their
early proposals since I thought it would be a good idea if we could all
share device drivers with a minimum effort.  Shortly after I started my work
all the free Un*x people were thrown out of the USBDI work since we did not
pay the USB membership fee.  Well, some time has passed now and the work of
the standardization group is almost public again.  But alas, the new standard
has grown to be a monster!  I do not want to have this as the basis for the
*BSD USB stack; it is far too complicated.
So, since we are not even close to being compilant with the standard, I've
thrown out some old baggage.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jun 11 19:05:13 1999 UTC (13 years, 11 months ago) by wrstuden
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

If we're the console keyboard, automatically enable the keyboard.

Should fix part of console keyboard problems on macppc. The usb keyboard will
now work on boot! Doesn't fix problems with keyboard freaking out when
changing LED state.

Thanks to Mattias & Lennart & Tsubai for input on resolving this problem.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 10 15:48:27 1999 UTC (13 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Add more debug.

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 14 19:38:44 1999 UTC (14 years ago) by augustss
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Fix debug printf.

Revision 1.31 / (download) - annotate - [select for diffs], Thu May 13 23:34:38 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.30: +25 -19 lines
Diff to previous 1.30 (colored)

Rework the way ukbd attaches itself as the console (again).  We now allow
the code to pick the first USB keyboard instance as the console, ignoring
which USB controller it's on.  Should eventually allow detaching of the
console keyboard.

From Jason Thorpe <thorpej@nas.nasa.gov>

Revision 1.30 / (download) - annotate - [select for diffs], Sun May 9 15:10:30 1999 UTC (14 years ago) by augustss
Branch: MAIN
Changes since 1.29: +9 -1 lines
Diff to previous 1.29 (colored)

Call ws routines at spltty() from interrupt routines.

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 6 19:12:23 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.28: +28 -2 lines
Diff to previous 1.28 (colored)

Add a way for machine-dependent code to tell a USB controller that it
has the console input device.  The USB keyboard driver uses this to
attach the first USB keyboard instance as the console keyboard.

Unfortunately, this must still be deferred to autoconfiguration time,
but there's not much we can do about that right now.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 13 18:38:26 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Fix transpostion in translation table for XT scan codes.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 10 18:36:57 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.26: +8 -3 lines
Diff to previous 1.26 (colored)

Make sure to check the modifier map for the windows keys.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jan 10 13:11:25 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Fix buglets in translation to raw scancodes.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 10 11:13:36 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Update/add URLs to relevant USB specs.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 10 10:17:54 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Move a declaration.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jan 10 00:23:32 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.22: +56 -51 lines
Diff to previous 1.22 (colored)

Use a special map for USB key code translation instead of first translating
to an XT scancode and then to the wscons code.
XXX The XT translation is still available in "raw" mode.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 9 12:10:36 1999 UTC (14 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

there is no "cnattach" member in "struct wskbd_accessops" (yet?)

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 8 11:58:25 1999 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.20: +7 -3 lines
Diff to previous 1.20 (colored)

Various little fixes from the FreeBSD version.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 30 19:25:27 1998 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.19: +52 -12 lines
Diff to previous 1.19 (colored)

Implement autorepeat in raw keyboard mode.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 30 18:03:37 1998 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.18: +37 -9 lines
Diff to previous 1.18 (colored)

Implement raw keyboard mode for X.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 29 15:42:30 1998 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.17: +16 -1 lines
Diff to previous 1.17 (colored)

Add some #if 0 code for keyboard console attachment.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Dec 28 12:52:38 1998 UTC (14 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.16: +13 -8 lines
Diff to previous 1.16 (colored)

Cosmetics.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 26 12:53:02 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.15: +94 -33 lines
Diff to previous 1.15 (colored)

Merge changes to make the USB stack work with FreeBSD.  The original
diffs from Nick Hibma <n_hibma@freebsd.org>, but with substantial
changes from me.
XXX Not tested on FreeBSD yet.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Dec 10 23:16:47 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.14: +9 -7 lines
Diff to previous 1.14 (colored)

Take care of some lines > 80 chars.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 9 00:18:11 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Improvement to the ugen driver.
Better error checking.
Some code rearrengment.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 2 22:54:52 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Even shorter printfs at attach.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Dec 2 17:20:20 1998 UTC (14 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Avoid wrapping lines in attach printfs.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 25 22:32:05 1998 UTC (14 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Make the copyright header conform to the NetBSD template.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 17 18:31:43 1998 UTC (14 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

Adapt to keymap table format change.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 2 22:27:01 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.8: +27 -14 lines
Diff to previous 1.8 (colored)

Use wskbd enable function.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 2 14:22:25 1998 UTC (14 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.7: +36 -12 lines
Diff to previous 1.7 (colored)

Adapt to wskbd interface changes; add dummy enable/disable function.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Aug 1 20:11:38 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.6: +7 -2 lines
Diff to previous 1.6 (colored)

Make sure to abort the interrupt pipe on disconnect of a mouse or keyboard.
Improve some error messages.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 1 18:16:19 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.5: +9 -7 lines
Diff to previous 1.5 (colored)

Switch from a global flag to tell if the host controller should use
polling to a local one for each controller.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 1 17:46:22 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.4: +44 -20 lines
Diff to previous 1.4 (colored)

Complete the scancode conversion table.
Tell the keyboard not to send idle reports.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 29 20:50:11 1998 UTC (14 years, 9 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.3: +10 -8 lines
Diff to previous 1.3 (colored)

Add functions to execute asynchronous requests and use these from
interrupt context.
[I had some feline debugging help here.  I noticed that every time Kem,
our kitty, jumped onto the USB keyboard the machine crashed.]

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 26 17:42:49 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.2: +44 -3 lines
Diff to previous 1.2 (colored)

A first stab att supporting console access with a USB keyboard.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 25 15:36:30 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.1: +108 -181 lines
Diff to previous 1.1 (colored)

Add wscons attachments for USB keyboard.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 12 19:52:00 1998 UTC (14 years, 10 months ago) by augustss
Branch: MAIN

Add USB support.  Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>