CVS log for src/sys/dev/hid/hid.c
Up to [cvs.NetBSD.org] / src / sys / dev / hid
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Dec 19 00:50:47 2024 UTC (3 months, 1 week ago) by jmcneill
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -2
lines
fixup! Fix parsing keyboard HID descriptor on ThinkPad T14s Gen6.
The previous change broke detection of some devices. Rework the change
in hopes to fix this.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Dec 9 22:03:34 2024 UTC (3 months, 2 weeks ago) by jmcneill
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -6
lines
Fix parsing keyboard HID descriptor on ThinkPad T14s Gen6.
Undo a change made 18 years ago when the bluetooth stack was imported. The
commit message didn't describe why the change was made, and it breaks
detection of the keyboard device on this laptop.
OpenBSD's hid parser looks like the original code here.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Oct 17 02:46:57 2023 UTC (17 months, 1 week ago) by nat
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -4
lines
Improve hid matching.
It now matches all kinds (application/physical/logical) in the hid
collection.
Patch from PR applied.
Addresses PR/46868.
Ok skrll@
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 13 11:35:47 2022 UTC (3 years ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-1-RELEASE,
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,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4
lines
hid: Avoid arithmetic overflow by rearranging inequalities.
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:05 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +15 -9
lines
Merge changes from current as of 20200406
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 5 09:53:18 2020 UTC (5 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +15 -9
lines
Pull up following revision(s) (requested by maxv in ticket #605):
sys/dev/hid/hid.c: revision 1.4
Fix small read overflows when parsing HID tables. Noticed by kASan the
other day while I was playing with vHCI.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jan 1 09:40:17 2020 UTC (5 years, 2 months ago) by maxv
Branches: MAIN
CVS tags: 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-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +15 -9
lines
Fix small read overflows when parsing HID tables. Noticed by kASan the
other day while I was playing with vHCI.
Revision 1.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:08 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +37 -37
lines
Sync with HEAD
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:31 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +36 -36
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Nov 15 23:01:45 2018 UTC (6 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
netbsd-9-base,
netbsd-9-0-RC1,
isaki-audio2-base,
isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +36 -36
lines
Correctly handle signed/unsigned quantities in kernel HID parser.
Should fix PR kern/53605.
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:49 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (6 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3
lines
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!)
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 17:03:07 2017 UTC (7 years, 3 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-base,
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
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.
CVSweb <webmaster@jp.NetBSD.org>