head 1.4; access; symbols netbsd-11-0-RC4:1.3.2.2 netbsd-11-0-RC3:1.3.2.2 netbsd-11-0-RC2:1.3.2.2 netbsd-11-0-RC1:1.3.2.2 perseant-exfatfs-base-20250801:1.3 netbsd-11:1.3.0.2 netbsd-11-base:1.3 netbsd-10-1-RELEASE:1.2 perseant-exfatfs-base-20240630:1.2 perseant-exfatfs:1.2.0.34 perseant-exfatfs-base:1.2 netbsd-9-4-RELEASE:1.2 netbsd-10-0-RELEASE:1.2 netbsd-10-0-RC6:1.2 netbsd-10-0-RC5:1.2 netbsd-10-0-RC4:1.2 netbsd-10-0-RC3:1.2 netbsd-10-0-RC2:1.2 thorpej-ifq:1.2.0.32 thorpej-ifq-base:1.2 thorpej-altq-separation:1.2.0.30 thorpej-altq-separation-base:1.2 netbsd-10-0-RC1:1.2 netbsd-10:1.2.0.28 netbsd-10-base:1.2 bouyer-sunxi-drm:1.2.0.26 bouyer-sunxi-drm-base:1.2 netbsd-9-3-RELEASE:1.2 thorpej-i2c-spi-conf2:1.2.0.24 thorpej-i2c-spi-conf2-base:1.2 thorpej-futex2:1.2.0.22 thorpej-futex2-base:1.2 thorpej-cfargs2:1.2.0.20 thorpej-cfargs2-base:1.2 cjep_sun2x-base1:1.2 cjep_sun2x:1.2.0.18 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 netbsd-9-2-RELEASE:1.2 cjep_staticlib_x:1.2.0.16 cjep_staticlib_x-base:1.2 thorpej-i2c-spi-conf:1.2.0.14 thorpej-i2c-spi-conf-base:1.2 thorpej-cfargs:1.2.0.12 thorpej-cfargs-base:1.2 thorpej-futex:1.2.0.10 thorpej-futex-base:1.2 netbsd-9-1-RELEASE:1.2 bouyer-xenpvh-base2:1.2 phil-wifi-20200421:1.2 bouyer-xenpvh-base1:1.2 phil-wifi-20200411:1.2 bouyer-xenpvh:1.2.0.8 bouyer-xenpvh-base:1.2 is-mlppp:1.2.0.6 is-mlppp-base:1.2 phil-wifi-20200406:1.2 ad-namecache-base3:1.2 netbsd-9-0-RELEASE:1.2 netbsd-9-0-RC2:1.2 ad-namecache-base2:1.2 ad-namecache-base1:1.2 ad-namecache:1.2.0.4 ad-namecache-base:1.2 netbsd-9-0-RC1:1.2 phil-wifi-20191119:1.2 netbsd-9:1.2.0.2 netbsd-9-base:1.2 phil-wifi-20190609:1.1 isaki-audio2:1.1.0.8 isaki-audio2-base:1.1 pgoyette-compat-merge-20190127:1.1 pgoyette-compat-20190127:1.1 pgoyette-compat-20190118:1.1 pgoyette-compat-1226:1.1 pgoyette-compat-1126:1.1 pgoyette-compat-1020:1.1 pgoyette-compat-0930:1.1 pgoyette-compat-0906:1.1 jdolecek-ncqfixes:1.1.0.6 jdolecek-ncqfixes-base:1.1 pgoyette-compat-0728:1.1 phil-wifi:1.1.0.4 phil-wifi-base:1.1 pgoyette-compat-0625:1.1 pgoyette-compat-0521:1.1 pgoyette-compat-0502:1.1 pgoyette-compat-0422:1.1 pgoyette-compat-0415:1.1 pgoyette-compat-0407:1.1 pgoyette-compat-0330:1.1 pgoyette-compat-0322:1.1 pgoyette-compat-0315:1.1 pgoyette-compat:1.1.0.2 pgoyette-compat-base:1.1; locks; strict; comment @# @; 1.4 date 2025.12.07.10.05.10; author jmcneill; state Exp; branches; next 1.3; commitid qZfWWYlposHBGslG; 1.3 date 2024.12.09.22.04.17; author jmcneill; state Exp; branches 1.3.2.1; next 1.2; commitid 4G8TYWWhFcjIkSAF; 1.2 date 2019.07.10.10.07.23; author martin; state Exp; branches 1.2.34.1; next 1.1; commitid MSnDwF4kVXwGYtuB; 1.1 date 2017.12.10.17.03.07; author bouyer; state Exp; branches 1.1.4.1; next ; commitid x6hsnRp8s9udOmiA; 1.3.2.1 date 2025.12.12.18.35.58; author martin; state Exp; branches; next 1.3.2.2; commitid S4U6y1W7QKFVl9mG; 1.3.2.2 date 2025.12.14.11.18.30; author martin; state Exp; branches; next ; commitid 5IYiaD1ll8TjRmmG; 1.2.34.1 date 2025.08.02.05.56.38; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; 1.1.4.1 date 2020.04.13.08.04.20; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; desc @@ 1.4 log @uhid: Move generic HID code to sys/dev/hid This change introduces a bus agnostic HID interface (sys/dev/hid/hidev.h) and splits the uhid driver into a shareable (sys/dev/hid/uhid_common.c) and USB specific (sys/dev/usb/uhid.c) code. @ text @# $NetBSD: files.hid,v 1.3 2024/12/09 22:04:17 jmcneill Exp $ # Human Interface Devices # Used by USB, bluetooth and i2c # HID processing define hid file dev/hid/hid.c hid define hidms : tpcalib file dev/hid/hidms.c hidms define hidkbd file dev/hid/hidkbd.c hidkbd file dev/hid/hidkbdmap.c ukbd | btkbd | ikbd | linux_keymap define hidev file dev/hid/hidev.c hidev # Generic userspace HID devices defflag opt_hid.h UHID_DEBUG device uhid: hid, hidev file dev/hid/uhid_common.c uhid @ 1.3 log @Import hidkbd support from OpenBSD. @ text @d1 1 a1 1 # $NetBSD: files.hid,v 1.2 2019/07/10 10:07:23 martin Exp $ d17 8 @ 1.3.2.1 log @Pull up following revision(s) (requested by jmcneill in ticket #118): sys/dev/hid/hidev.h: revision 1.1 sys/dev/hid/hidev.h: revision 1.2 sys/dev/hid/hidev.c: revision 1.1 sys/dev/hid/uhid.h: revision 1.1 sys/dev/hid/hidev.c: revision 1.2 sys/dev/hid/uhid.h: revision 1.2 sys/dev/usb/uhid.c: revision 1.130 sys/dev/usb/files.usb: revision 1.186 sys/dev/hid/uhid_common.c: revision 1.1 sys/dev/usb/uhidev.h: revision 1.28 sys/dev/usb/uhidev.h: revision 1.29 sys/dev/hid/files.hid: revision 1.4 sys/dev/usb/uhidev.c: revision 1.96 sys/dev/usb/uhidev.c: revision 1.97 uhid: Move generic HID code to sys/dev/hid This change introduces a bus agnostic HID interface (sys/dev/hid/hidev.h) and splits the uhid driver into a shareable (sys/dev/hid/uhid_common.c) and USB specific (sys/dev/usb/uhid.c) code. uhid: Fix uhidev attach bug and remove hidev_tag_t typedef @ text @d1 1 a1 1 # $NetBSD: files.hid,v 1.3 2024/12/09 22:04:17 jmcneill Exp $ a16 8 define hidev file dev/hid/hidev.c hidev # Generic userspace HID devices defflag opt_hid.h UHID_DEBUG device uhid: hid, hidev file dev/hid/uhid_common.c uhid @ 1.3.2.2 log @Backout ticket #118: uhid: Move generic HID code to sys/dev/hid This requires a kernel version bump (as-is, struct uhiddev_attach_arg changed) and can not be pulled up. @ text @d1 1 a1 1 # $NetBSD: files.hid,v 1.3.2.1 2025/12/12 18:35:58 martin Exp $ d17 8 @ 1.2 log @hidms depends on tpcalib now @ text @d1 1 a1 1 # $NetBSD: files.hid,v 1.1 2017/12/10 17:03:07 bouyer Exp $ d13 4 a16 1 file dev/hid/hidkbdmap.c ukbd | btkbd | linux_keymap @ 1.2.34.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.hid,v 1.3 2024/12/09 22:04:17 jmcneill Exp $ d13 1 a13 4 define hidkbd file dev/hid/hidkbd.c hidkbd file dev/hid/hidkbdmap.c ukbd | btkbd | ikbd | linux_keymap @ 1.1 log @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. @ text @d1 1 a1 1 # $NetBSD: files.hid,v 1.2 2016/01/20 01:26:00 jcs Exp $ d10 1 a10 1 define hidms @ 1.1.4.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d10 1 a10 1 define hidms : tpcalib @