Commit Graph

22 Commits

Author SHA1 Message Date
jdolecek
93a5ccc635 for jp keymap map also scan code 49 to right bracket to handle ARCHISS model
PR kern/55608 by Shinichi Doyashiki
2020-08-26 10:34:03 +00:00
nia
9c5979c439 Canadian French keyboard layout for ukbd/pckbd 2020-07-13 09:44:48 +00:00
nia
d123e17c63 Add keyboard layout for Latin American Spanish to ukbd/pckbd 2020-07-13 08:45:12 +00:00
nia
b9acad4106 Add Icelandic keyboard layout to ukbd/pckbd. 2020-07-12 14:31:49 +00:00
nia
e9547f225e Add KB_TR for uhid keyboards (it was PS/2 only, this seems wrong) 2020-07-12 13:12:17 +00:00
nia
07a5a11827 Add Estonian layout as a variation of Swedish for ukbd and pckbd 2020-07-12 12:13:05 +00:00
nia
573b8ee484 Bring br.nodead closer to X11 2020-07-12 01:44:24 +00:00
nia
68477093d7 Add support for the Brazilian keyboard layout to pckbd and ukbd.
This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570
2020-07-12 01:35:59 +00:00
rhialto
95d28f6283 For usb keyboards with encoding *.swapctrlcaps, keep KS_Cmd1 on the same
key as KS_Control_L. This brings them in line with wskbdmap_mfii.c.
2020-04-24 13:29:46 +00:00
msaitoh
d031c31410 Use unsgined more. 2020-03-11 16:05:31 +00:00
msaitoh
5cb3127813 Use unsigned to avoid undefined behavior. Found by kUBSan. 2020-03-08 14:09:32 +00:00
christos
141531ce86 Add fido constants, and turn hid "raw" mode for fido devices. 2020-03-02 18:15:28 +00:00
nia
b91e2921c9 Support the combination of KB_SWAPCTRLCAPS and UK layout. 2020-01-11 21:43:10 +00:00
maxv
dd833bd62d Fix small read overflows when parsing HID tables. Noticed by kASan the
other day while I was playing with vHCI.
2020-01-01 09:40:17 +00:00
martin
293d9fff86 hidms depends on tpcalib now 2019-07-10 10:07:23 +00:00
ryoon
636f0add72 Enable finger touch panel of HP Spectre x360 13-inch ae019TU 2019-07-09 12:56:30 +00:00
ryoon
ed02490963 Add tpcalib, touch panel calibration to ims(4)
Suggested by ryo@ at Japan NetBSD Users' Group BOF 2019-07-06.
2019-07-09 12:52:51 +00:00
jakllsch
269297e942 Correctly handle signed/unsigned quantities in kernel HID parser.
Should fix PR kern/53605.
2018-11-15 23:01:45 +00:00
riastradh
d1579b2d70 Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)
2018-09-03 16:29:22 +00:00
ryoon
dc1eda5068 Fix HIDMS_DEBUG build 2018-05-25 15:52:45 +00:00
bouyer
878cb1cfc5 Fix fallout from hid factorisation:
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
2017-12-10 20:38:13 +00:00
bouyer
404d04cdb7 Factor out bus-independant HID code so that it can be shared by USB, bluetooth
and i2c.
dev/usb/ukbdmap.c is renamed to dev/hid/hidkbdmap.c
dev/usb/hid.[ch] moved to dev/hid/
usage pages moved from dev/usb/usbhid.h moved to dev/hid/hid.h,
and updated with OpenBSD entries.
bus-independant code moved from dev/usb/ums.c to dev/hid/hidms.c
(the same should be done for keyboard and touchpad drivers)

Needed for the upcoming HID over I2C support, proposed on tech-kern@
on Dec, 1.
2017-12-10 17:03:07 +00:00