The NetBSD Project

CVS log for src/sys/dev/wscons/wskbd.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.144 / (download) - annotate - [select for diffs], Sun Dec 27 16:09:33 2020 UTC (3 years, 3 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.143: +5 -6 lines
Diff to previous 1.143 (colored)

Explicitly include generated ioconf.h for struct cfdrivers.

Revision 1.143 / (download) - annotate - [select for diffs], Tue Feb 5 10:04:49 2019 UTC (5 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.142: +8 -4 lines
Diff to previous 1.142 (colored)

- call update_modifier() explicitly for the scrolling keys up event.

Revision 1.142 / (download) - annotate - [select for diffs], Tue Sep 18 06:19:28 2018 UTC (5 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.141: +5 -5 lines
Diff to previous 1.141 (colored)

fix wsdisplay/wskbd and cngetc() return value issues:
- return -1 for error / no character
- allow 0 as a character

cngetc() itself considers any value >= 0 valid, and this matches
the usage in other drivers that return -1 for "not data", vs
polling until something arrives.

removes ^G from spewing out the askname/etc prompts when no key
has been pressed (these come from cngetsn(), ignoring unknown
non printable characters.)

from @skrll with help from @mlelstv.

Revision 1.141 / (download) - annotate - [select for diffs], Mon Dec 18 18:57:21 2017 UTC (6 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.140: +6 -2 lines
Diff to previous 1.140 (colored)

If the wskbd driver returns type 0, return "no data" from wskbd_cngetc

Revision 1.140 / (download) - annotate - [select for diffs], Tue Jun 13 00:42:27 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.139: +2 -13 lines
Diff to previous 1.139 (colored)

Move duplicate definition of SETBELL macro into wsbelldata.h.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Jun 11 03:38:12 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.138: +3 -19 lines
Diff to previous 1.138 (colored)

Seperate the definitions for the console beep.  This code will be shared
with a new device.

Ok pgoyette@.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Dec 10 22:36:28 2016 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.137: +3 -22 lines
Diff to previous 1.137 (colored)

remove VAUDIOSPEAKER, needs to be done differently.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Dec 8 11:31:08 2016 UTC (7 years, 4 months ago) by nat
Branch: MAIN
Changes since 1.136: +22 -3 lines
Diff to previous 1.136 (colored)

Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Aug 24 22:50:33 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.135: +4 -2 lines
Diff to previous 1.135 (colored)

to garnish, dust with _KERNEL_OPT

Revision 1.135 / (download) - annotate - [select for diffs], Sun Nov 16 16:20:01 2014 UTC (9 years, 5 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

Replace callout_stop with callout_halt

In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.

Discussed with martin@ and riastradh@.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:39 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.133: +3 -2 lines
Diff to previous 1.133 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:29 2014 UTC (10 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.132: +13 -4 lines
Diff to previous 1.132 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Aug 29 02:38:31 2012 UTC (11 years, 7 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.131: +29 -3 lines
Diff to previous 1.131 (colored)

support an optional table to translate scancodes when in event mode

Revision 1.131 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:34 2012 UTC (12 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.130: +8 -7 lines
Diff to previous 1.130 (colored)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.130 / (download) - annotate - [select for diffs], Tue Oct 26 05:12:34 2010 UTC (13 years, 5 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base4, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.129: +17 -2 lines
Diff to previous 1.129 (colored)

Add wskbd_hotkey_deregister() to match wskbd_hotkey_register().

XXX: This is kind of futile; the only user of the wskbd(4)'s hotkey interface
     is hpqlb(4), which is a questionable driver, being, by design,
     limited only to the laptop model for which the driver was written.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Jul 1 14:49:34 2010 UTC (13 years, 9 months ago) by ahoka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.128: +5 -2 lines
Diff to previous 1.128 (colored)

output ^_ on control-/ like xterm does.

Revision 1.128 / (download) - annotate - [select for diffs], Mon May 31 04:27:18 2010 UTC (13 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored)

PR kern/38900 Arnaud Lacombe: don't try to do WSDISPLAY_SCROLLSUPPORT
things if NWSDISPLAY is 0.

Arguably the right fix is to not allow "options WSDISPLAY_SCROLLSUPPORT"
to be enabled in this case, but AIUI config doesn't know how to encode
rules like that.

Revision 1.127 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:09 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.126 / (download) - annotate - [select for diffs], Thu Jan 28 22:36:19 2010 UTC (14 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.125: +6 -6 lines
Diff to previous 1.125 (colored)

-rename the "KS_GROUP_Ascii" key symbol category to "Plain" because
 this is what it meant all the time -- it includes characters >127
-delegate translation of all key symbols >127 to the terminal emulation
 layer -- formerly everything non-special was passed to the tty subsystem
 directly, involving truncation to a "char", which effectively meant
 some ISO-1 assumption

Revision 1.125 / (download) - annotate - [select for diffs], Wed Jan 13 05:08:24 2010 UTC (14 years, 3 months ago) by macallan
Branch: MAIN
Changes since 1.124: +2 -12 lines
Diff to previous 1.124 (colored)

revert brainfart

Revision 1.124 / (download) - annotate - [select for diffs], Tue Jan 12 17:39:21 2010 UTC (14 years, 3 months ago) by macallan
Branch: MAIN
Changes since 1.123: +12 -2 lines
Diff to previous 1.123 (colored)

send PMF events for volume control keys

Revision 1.123 / (download) - annotate - [select for diffs], Fri Jan 8 19:51:11 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.122: +4 -4 lines
Diff to previous 1.122 (colored)

Expand PMF_FN_* macros.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Jan 15 04:22:11 2009 UTC (15 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.121: +2 -6 lines
Diff to previous 1.121 (colored)

- reduce the number of #ifdefs.
- build compat glues if MODULAR.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Jan 13 18:05:55 2009 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.120: +9 -2 lines
Diff to previous 1.120 (colored)

provide wscons_event compatibility with 5.0.

Revision 1.120 / (download) - annotate - [select for diffs], Thu Jun 12 23:04:37 2008 UTC (15 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, 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, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.119: +4 -3 lines
Diff to previous 1.119 (colored)

use device_lookup_private to get softc
use device_lookup to get device_t

Revision 1.119 / (download) - annotate - [select for diffs], Sun May 4 13:19:17 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.118: +31 -5 lines
Diff to previous 1.118 (colored)

Move to standard TNF 2 clause license

Revision 1.118 / (download) - annotate - [select for diffs], Thu May 1 20:18:19 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.117: +26 -4 lines
Diff to previous 1.117 (colored)

hpqlb(4): driver for HP Quick Launch buttons - found on HP Pavilion Notebooks

Revision 1.117 / (download) - annotate - [select for diffs], Sun Apr 27 05:15:45 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.116: +4 -6 lines
Diff to previous 1.116 (colored)

aprint_verbose -> aprint_verbose_dev

Revision 1.116 / (download) - annotate - [select for diffs], Sat Apr 5 15:51:45 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored)

use aprint_*_dev and device_xname

Revision 1.115 / (download) - annotate - [select for diffs], Tue Mar 25 00:49:20 2008 UTC (16 years ago) by cube
Branch: MAIN
CVS Tags: ad-socklock-base1
Changes since 1.114: +37 -33 lines
Diff to previous 1.114 (colored)

Split device_t and softc for wskbd(4), wsmouse(4) and that creepy wsmux(4).

Revision 1.114 / (download) - annotate - [select for diffs], Thu Feb 28 16:54:48 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.113: +2 -5 lines
Diff to previous 1.113 (colored)

Do not return EBUSY if this is the console.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Feb 22 22:29:16 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.112: +34 -31 lines
Diff to previous 1.112 (colored)

Return EBUSY and do not detach if we are the console.

Cosmetic: use device_t and accessors.  Temporarily use PMF_FN_PROTO,
PMF_FN_ARGS.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Dec 13 14:49:42 2007 UTC (16 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.111: +15 -3 lines
Diff to previous 1.111 (colored)

Stop the key pressed timeout on suspend to avoid virtually hanging keys,
e.g. when calling sysctl -w machdep.sleep_state=3 manually.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Dec 10 01:13:38 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

Wups, pmf_class_input_deregister is private; use pmf_device_deregister
instead

Revision 1.110 / (download) - annotate - [select for diffs], Mon Dec 10 01:11:49 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.109: +4 -2 lines
Diff to previous 1.109 (colored)

Deregister input class handler on detach.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:25 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.108: +22 -3 lines
Diff to previous 1.108 (colored)

Merge jmcneill-pm branch.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Dec 1 05:22:02 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.107: +10 -7 lines
Diff to previous 1.107 (colored)

aprintify

Revision 1.107 / (download) - annotate - [select for diffs], Thu Oct 18 14:51:25 2007 UTC (16 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.106: +2 -4 lines
Diff to previous 1.106 (colored)

Always declare wskbd_repeat to fix build without wsdisplay.

Revision 1.106 / (download) - annotate - [select for diffs], Tue Oct 16 21:06:09 2007 UTC (16 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Branch point for: bouyer-xenamd64
Changes since 1.105: +11 -10 lines
Diff to previous 1.105 (colored)

Use callout_setfunc/callout_schedule instead of callout_reset.
Use mstohz for the calculations.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Aug 6 03:07:52 2007 UTC (16 years, 8 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6
Changes since 1.104: +17 -5 lines
Diff to previous 1.104 (colored)

set the scrollmode flag when entering/leaving scroll mode, send scroll reset
when leaving

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:26 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.103 / (download) - annotate - [select for diffs], Wed Apr 4 14:50:21 2007 UTC (17 years ago) by mishka
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Changes since 1.102: +9 -38 lines
Diff to previous 1.102 (colored)

Revert previous commit until further investigation because it is
known as problematic.  Some problems obscured are dead Del key (I
can reproduce this with wscons scroll support) and panic (seen by
<elad> only).

Revision 1.102 / (download) - annotate - [select for diffs], Mon Apr 2 10:01:31 2007 UTC (17 years ago) by mishka
Branch: MAIN
Changes since 1.101: +40 -11 lines
Diff to previous 1.101 (colored)

Implement locking switcher for alternative layots (many languages
are based on completely different alphabet, and typesetting with
one of modifiers pressed all the time is just a PITA). See
http://mail-index.netbsd.org/tech-kern/2007/03/29/0002.html for
usage details.

While here, perform the following small cleanups:
- KS_Cmd_Scroll* execution should be explicitly interrupted with 'break'.
- Some 'human' cleanups in ksym extraction algorithm (no func. changes).
- Add a note: implemented ksym translation isn't sufficient for l10n.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:51 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.100: +11 -11 lines
Diff to previous 1.100 (colored)

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

Revision 1.100 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored)

Merge newlock2 to head.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jan 4 18:44:46 2007 UTC (17 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:31 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.97: +12 -12 lines
Diff to previous 1.97 (colored)

__unused removal on arguments; approved by core.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Oct 17 18:21:29 2006 UTC (17 years, 6 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.96: +2 -4 lines
Diff to previous 1.96 (colored)

now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Oct 13 16:53:35 2006 UTC (17 years, 6 months ago) by dogcow
Branch: MAIN
Changes since 1.95: +4 -2 lines
Diff to previous 1.95 (colored)

More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
	do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:06 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.94: +12 -11 lines
Diff to previous 1.94 (colored)

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

Revision 1.94 / (download) - annotate - [select for diffs], Mon Aug 28 21:33:16 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

fix incomplete initializers

Revision 1.93 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:53 2006 UTC (17 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.92: +6 -5 lines
Diff to previous 1.92 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.92 / (download) - annotate - [select for diffs], Sun May 14 21:47:00 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.91: +6 -4 lines
Diff to previous 1.91 (colored)

integrate kauth.

Revision 1.91 / (download) - annotate - [select for diffs], Sun May 14 10:25:16 2006 UTC (17 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

Fix typo in comment. From MáÕyáÔ JáÏos in PR kern/33477.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Apr 14 16:19:44 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

Coverity CID 1084: Don't call suser if we don't have a process context.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Mar 29 04:16:51 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

Use device_cfdata().

Revision 1.88 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:38 2006 UTC (18 years ago) by thorpej
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Use device_unit().

Revision 1.87 / (download) - annotate - [select for diffs], Tue Mar 14 23:41:45 2006 UTC (18 years, 1 month ago) by uwe
Branch: MAIN
CVS Tags: peter-altq-base
Branch point for: peter-altq
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Make this compile with WSKBD_DEBUG again.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Feb 7 09:13:02 2006 UTC (18 years, 2 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.85: +14 -20 lines
Diff to previous 1.85 (colored)

wsevent cleanup:

- Add a wsevent_inject function that atomically adds a set of events to an
  event queue and change all code that directly messed with a queue to use it.
- Replace the WSEVENT_WAKEUP macro with a regular function.
- Make WSEVENT_QSIZE, PWSEVENT and splwsevent private definitions to
  wsevent.c, instead of exposing them in the header file.
- Make the wsevent_init function take a process to attach to the queue,
  instead of leaving this task to the caller (which always did it).

Reviewed in tech-kern@.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:12 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.84: +21 -20 lines
Diff to previous 1.84 (colored)

merge ktrace-lwp.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Nov 11 07:07:42 2005 UTC (18 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.83: +3 -5 lines
Diff to previous 1.83 (colored)

Call nanotime() directly, instead of doing the
microtime()/TIMEVAL_TO_TIMESPEC() dance.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Jun 21 14:01:13 2005 UTC (18 years, 10 months ago) by ws
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-lazymbuf
Changes since 1.82: +4 -3 lines
Diff to previous 1.82 (colored)

PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.

Revision 1.82 / (download) - annotate - [select for diffs], Sun May 29 21:56:35 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.81: +9 -9 lines
Diff to previous 1.81 (colored)

- sprinkle const.
- avoid variable shadowing.

Revision 1.81 / (download) - annotate - [select for diffs], Sun May 8 17:16:34 2005 UTC (18 years, 11 months ago) by he
Branch: MAIN
Changes since 1.80: +4 -2 lines
Diff to previous 1.80 (colored)

Enclose some code dependent on wsdisplay in #if NWSDISPLAY > 0 / #endif;
fixes build problem for news68k.

Reviewed by augustss

Revision 1.80 / (download) - annotate - [select for diffs], Wed May 4 01:52:16 2005 UTC (18 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.79: +6 -2 lines
Diff to previous 1.79 (colored)

Make auto repeat of events a compile time option, and have it off by default.
Turn on by WSKBD_EVENT_AUTOREPEAT.

Revision 1.79 / (download) - annotate - [select for diffs], Tue May 3 13:13:07 2005 UTC (18 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.78: +57 -26 lines
Diff to previous 1.78 (colored)

Change the logic for generating auto repeat from the keyboard.  Previously
auto repeat was only available in translated mode, but not in event mode.
Now both modes have auto repeat.  There are actually a few users of
the event mode, and they deserve auto repeat too. :)

Also make it possible to turn off auto repeat by setting repeat.del1=0.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Apr 28 07:15:44 2005 UTC (18 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.77: +13 -2 lines
Diff to previous 1.77 (colored)

Make it possible for a console driver to deliver raw ASCII characters
to wskbd. This is for special cases only, and may even be considered a
hack, but it is cheap and very local.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:52 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

nuke trailing whitespace

Revision 1.76 / (download) - annotate - [select for diffs], Thu Jun 3 19:04:58 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.75: +6 -2 lines
Diff to previous 1.75 (colored)

return ENODEV if functions are not compiled in the kernel.

Revision 1.75 / (download) - annotate - [select for diffs], Sat May 29 02:01:09 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.74: +8 -4 lines
Diff to previous 1.74 (colored)

fix scrolling code that was not ifdefed.

Revision 1.74 / (download) - annotate - [select for diffs], Fri May 28 21:42:29 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.73: +103 -2 lines
Diff to previous 1.73 (colored)

PR/19925: David Ferlier: Add scrolling support to wscons.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Feb 8 13:49:43 2004 UTC (20 years, 2 months ago) by bjh21
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.72: +10 -10 lines
Diff to previous 1.72 (colored)

Trailing whitespace cleanup.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Nov 28 13:32:55 2003 UTC (20 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.71: +10 -8 lines
Diff to previous 1.71 (colored)

always check whether a display is attached before calling
wsdisplay_*() functions

Revision 1.71 / (download) - annotate - [select for diffs], Sun Sep 21 19:16:59 2003 UTC (20 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.70: +10 -2 lines
Diff to previous 1.70 (colored)

cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@

Revision 1.70 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:29 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.69: +3 -7 lines
Diff to previous 1.69 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:04 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.68: +15 -16 lines
Diff to previous 1.68 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:47 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.67: +18 -17 lines
Diff to previous 1.67 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:27 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:08 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.65: +14 -3 lines
Diff to previous 1.65 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.65 / (download) - annotate - [select for diffs], Wed Oct 2 16:53:18 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Oct 1 01:30:00 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +4 -6 lines
Diff to previous 1.63 (colored)

Use CFATTACH_DECL().

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 27 20:42:09 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Declare all cfattach structures const.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 7 months ago) by gehenna
Branch: MAIN
Changes since 1.61: +14 -7 lines
Diff to previous 1.61 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Mar 17 19:41:06 2002 UTC (22 years, 1 month 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, gehenna-devsw-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.60: +4 -6 lines
Diff to previous 1.60 (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.60 / (download) - annotate - [select for diffs], Sat Jan 12 16:41:02 2002 UTC (22 years, 3 months ago) by tsutsui
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.59: +3 -4 lines
Diff to previous 1.59 (colored)

Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.59 / (download) - annotate - [select for diffs], Thu Nov 22 00:57:15 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.58: +9 -2 lines
Diff to previous 1.58 (colored)

Add some DIAGNOSTIC tests.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Nov 13 06:17:47 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

add/cleanup RCSIDs

Revision 1.57 / (download) - annotate - [select for diffs], Sat Nov 10 17:14:52 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Make wsdisplay_set_console_kbd() a little less twisted.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 7 13:36:43 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (colored)

Ad a debug message.  (With { } this time.)

Revision 1.55 / (download) - annotate - [select for diffs], Sat Oct 27 13:52:57 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.54: +5 -4 lines
Diff to previous 1.54 (colored)

Cosmetics.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Oct 27 00:39:29 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Cosmetics.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Oct 27 00:35:48 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.52: +8 -4 lines
Diff to previous 1.52 (colored)

Don't enable/disable kbds that belong to a display; they are always enabled.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 26 20:48:47 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Compare against coreect value to determine if we belong to a mux.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Oct 26 20:36:27 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.50: +9 -8 lines
Diff to previous 1.50 (colored)

Small rearrangement and more error checking.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Oct 25 14:46:41 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.49: +6 -5 lines
Diff to previous 1.49 (colored)

Change back to have a wseventvar in the softc for event sources.  This
way the effect of FIOASYNC survives close()/open().  Later versions
of XFree86 relies on this bug/feature.
Also add some more debug stuff.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 24 15:44:50 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.48: +7 -2 lines
Diff to previous 1.48 (colored)

Clear wskbd_console_device when console keyboard is detached.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 24 14:07:33 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.47: +215 -169 lines
Diff to previous 1.47 (colored)

Major rototilling of the wsmux code.  No user visible changes (except that
many bugs have been fixed).
Changes:
The wskbd, wsmouse, and wsmux are now "sub-classes" of wsevsrc, which is
a source of ws events.  This make the structure of those drivers a little
more uniform.
Many bug fixes involving adding and removing devices from muxes.
When a kernel is configured without wsmux there will now be none (unlike
before where you got a console mux anyway).
The kernel now compiles with all combinations of ws devices present.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Oct 13 19:58:35 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Fix a pasto.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Oct 13 15:59:01 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Use memset(), not bzero().

Revision 1.45 / (download) - annotate - [select for diffs], Sat Oct 13 15:56:16 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.44: +61 -145 lines
Diff to previous 1.44 (colored)

ANSIfy.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Oct 13 13:36:01 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.43: +8 -4 lines
Diff to previous 1.43 (colored)

Two changes to the wsmux code:
* Allow the wsmux used by wsdisplay for the keyboard(s) to be explicitely
  specified with the kbdmux locator.
* Allow keyboards and mice that have a mux to be opened in the regular way.
These changes should be totally backwards compatible.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Sep 26 15:13:23 2001 UTC (22 years, 6 months ago) by matthias
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.42: +5 -4 lines
Diff to previous 1.42 (colored)

wskbd_rawinput: check sc->sc_displaydv before calling wsdisplay_kbdinput.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Aug 5 11:26:52 2001 UTC (22 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.41: +5 -2 lines
Diff to previous 1.41 (colored)

introduce hard limit on maximum font size (WSDISPLAY_MAXFONTSZ - 512KB)
and keymap size (WSKBDIO_MAXMAPLEN - 64KB)

Revision 1.41 / (download) - annotate - [select for diffs], Wed May 30 15:24:25 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Branch point for: kqueue
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

add missing   #include "opt_kgdb.h"

Revision 1.40 / (download) - annotate - [select for diffs], Fri Mar 23 04:22:36 2001 UTC (23 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.39: +14 -4 lines
Diff to previous 1.39 (colored)

#ifdef KGDB, call kgdb_connect(1) if KS_Cmd_Debugger (a la ddb invoking
console_debugger() in the same situation).
this makes it easier to get remote kgdb going if you forget to use boot -d.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Oct 1 03:29:13 2000 UTC (23 years, 6 months ago) by takemura
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.38: +58 -6 lines
Diff to previous 1.38 (colored)

- Add ioctl commands to wsdisplay which set/get some LCD status,
  backlight, brightness and contrast.
- Add 9 command key symbols which make wskbd to call wsdisplay's
  iocontrol.
- Add special key map variant KB_MACHDEP. This variant does not
  have any real keymap but it's just a placeholder for machine dependent
  maps which will be overwrite by machine dependent keyboard driver.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:47 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.37: +13 -8 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Mon Mar 6 21:37:16 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.36: +18 -3 lines
Diff to previous 1.36 (colored)

Add cnbell() support.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jan 22 15:09:00 2000 UTC (24 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

pass raw keyboard data unsigned to avoid sign extension

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jan 5 11:19:37 2000 UTC (24 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.34: +3 -5 lines
Diff to previous 1.34 (colored)

replace embedded _rcsid[] string by __KERNEL_RCSID(), remove _copyright[]

Revision 1.34 / (download) - annotate - [select for diffs], Tue Dec 21 12:02:04 1999 UTC (24 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.33: +94 -37 lines
Diff to previous 1.33 (colored)

change decoding function to return multiple symbols per keypress
(through the "internal" structure), derive a METAESC flag from the
layout variant and translate ALT-<key> into ESC <key> if the flag is set

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 1 23:22:59 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.32: +19 -3 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Wed Dec 1 11:41:46 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

Make it compile even if there is no wsdisplay.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Nov 8 04:48:18 1999 UTC (24 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: fvdl-softdep-base, comdex-fall-1999-base
Branch point for: comdex-fall-1999
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

Apply wrstuden's stopgap change to make alpha/macppc X work without wsmux.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Aug 16 23:22:22 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Mention mux # when ignoring it for the console.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 7 15:04:35 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.28: +12 -2 lines
Diff to previous 1.28 (colored)

Make it possible to open wskbd devices for write (i.e. ioctl) even
if it is already open.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jul 30 20:52:28 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

Eliminate the need for needs-count for wsmux.  This should make
wsdisplays work properly again.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 29 18:20:03 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.26: +180 -42 lines
Diff to previous 1.26 (colored)

Add the wsmux pseudo device.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 6 07:42:23 1999 UTC (24 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Add the detach and activate entry points to the cfattach struct.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 1 11:18:20 1999 UTC (24 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

make it compile if WSDISPLAY_COMPAT_RAWKBD is defined, but NWSDISPLAY not,
reported by Kazushi Marukawa <jam@pobox.com>

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 30 06:21:21 1999 UTC (24 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.23: +109 -9 lines
Diff to previous 1.23 (colored)

Make it possible to detach wsmouse and wskbd.
XXX wskbd probably needs some more work.

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 16 19:21:31 1999 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

Make this build without wsdisplay.

Revision 1.22 / (download) - annotate - [select for diffs], Sat May 15 14:22:46 1999 UTC (24 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.21: +69 -39 lines
Diff to previous 1.21 (colored)

Get rid of the timeout-driven wscons_glue stuff which caused a lot of
headaches.
Now console keyboard and display are connected at autoconfiguration time,
when the last of them is found. Other keyboards / displays remain
unconnected until a new ioctl (WSDISPLAYIO_SETKEYBOARD) is called.

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 14 16:01:12 1999 UTC (24 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.20: +38 -27 lines
Diff to previous 1.20 (colored)

Sort out the inclusion of wscons source files: the files are only
compiled if the corresponding devices are configured.
(Files calling wscons functions have to check whether these are present.)

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 27 11:22:23 1999 UTC (25 years ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.19: +10 -3 lines
Diff to previous 1.19 (colored)

remove a diagnostic panic in the keyboard autorepeat timeout() handler.
There is a rece condition which might trigger this but is harmless
otherwise. Leave the handler silently instead.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 26 17:08:37 1999 UTC (25 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Debugger() -> console_debugger() to honour the ddb_fromconsole sysctl

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 17 15:59:17 1999 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored)

adapt to "reset" interface change, pass "close all" to wsdisplay

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 14 11:44:54 1999 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (colored)

add a "reset terminal emulator" command pseudo-keysym and call the
corresponding callback if one is hit

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 10 18:22:14 1999 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.15: +6 -23 lines
Diff to previous 1.15 (colored)

Remove redundant test if the unit numbers is in range.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 10 00:28:21 1999 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Change from bcopy/bzero to memxxx.  From PR 6778 by
Erik Bertelsen <erik@q610.ebe.uni-c.dk>.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 28 13:48:24 1998 UTC (25 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Prepare for wsconsctrl:
- clean up keycode defines.
- allow easy parse of wsksymdef.h.
- add misssing KB_IT entry.
- set layout to KB_USER after ioctl WSKBDIO_SETMAP.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Sep 17 18:05:43 1998 UTC (25 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.12: +12 -2 lines
Diff to previous 1.12 (colored)

Define a new keyboard eveny type "all keys up". This allows to reduce
the amount of statekeeping in drivers for LK201-like keyboards, and it
might be useful to resync after resets or overflows.
(reused the unused WSCONS_EVENT_KEY_OTHER event ID)
Implement the necessary decoding bits.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 2 14:18:07 1998 UTC (25 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.11: +69 -58 lines
Diff to previous 1.11 (colored)

Split the wskbd_attach arguments into console and autoconfiguration parts
(again); put some constant data into shared structures. This makes it
more look like the mouse part, and it helps USB integration.
Implement wskbd_enable() to enable/disable the keyboard.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 23 14:33:02 1998 UTC (25 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.10: +4 -13 lines
Diff to previous 1.10 (colored)

Switch keyboard to "event mode" on open.
Nuke wskbd_set_translation(). It doesn't fit into the "screen" model.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:51 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

defopt DDB.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 15 17:48:33 1998 UTC (25 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.8: +37 -68 lines
Diff to previous 1.8 (colored)

Move the translation of keypad and function keys into the realm of the
terminal emulation. For this, change the interface to wsdisplay_kbdinput()
to take a "keysym_t" as argument. From there, the code is handed to the
appropriate emulation module via a new entry point: "translate".
Nuke the ioctls dealing with global assignment of character sequences
to keypad/function keys.
The "sun" emulation works much better now!

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 13 14:28:50 1998 UTC (25 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

fix initialization in non-console case

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 11 22:08:57 1998 UTC (25 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.6: +44 -12 lines
Diff to previous 1.6 (colored)

add "sleeping ok" argument to wsdisplay_switch()
implement a way to get raw keyboard data (for X)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 9 07:34:22 1998 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +2 -17 lines
Diff to previous 1.5 (colored)

Nuke __BROKEN_INDIRECT_CONFIG.

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 23 01:06:36 1998 UTC (25 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +24 -2 lines
Diff to previous 1.4 (colored)

Make it possible to build a kernel with a wscons display device but not
a wscons keyboard device.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 9 17:16:57 1998 UTC (26 years ago) by hannken
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

Forgot to initialize sc->ioctl. From Matthias Drochner.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 9 13:09:46 1998 UTC (26 years ago) by hannken
Branch: MAIN
Changes since 1.2: +152 -115 lines
Diff to previous 1.2 (colored)

Split wscons/wskbd.c's softc into a static and a nonstatic part.
Booting into debugger (-d) now works.
Cleaned wscons/wskbdvar.h. Use the same attach arguments for
console and normal keyboards.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 7 13:43:17 1998 UTC (26 years ago) by hannken
Branch: MAIN
Changes since 1.1: +410 -21 lines
Diff to previous 1.1 (colored)

Initial import of MI keyboard translation for dev/wscons.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 22 14:24:03 1998 UTC (26 years, 1 month ago) by drochner
Branch: MAIN

Initial import of cgd's new wscons code.

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>