git: 2ba6ce584a8c - main - hid: Change Usage Page names to match documentation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Apr 2026 18:10:11 UTC
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ba6ce584a8cab75262cb86a5daf310d6706890c
commit 2ba6ce584a8cab75262cb86a5daf310d6706890c
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2026-04-12 18:09:22 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2026-04-12 18:09:22 +0000
hid: Change Usage Page names to match documentation
According to "HID Usage Tables FOR Universal Serial Bus (USB)"
Usage Page ID range 0x93-0xF1CF is "Reserved" and Usage Page ID range
0xFF00-0xFFFF is "Vendor-defined".
MFC after: 1 week
---
sys/dev/hid/hid.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/sys/dev/hid/hid.h b/sys/dev/hid/hid.h
index 02709d549a56..f164e48341ed 100644
--- a/sys/dev/hid/hid.h
+++ b/sys/dev/hid/hid.h
@@ -57,10 +57,14 @@
#define HUP_SCALE 0x008c
#define HUP_CAMERA_CONTROL 0x0090
#define HUP_ARCADE 0x0091
-#define HUP_APPLE 0x00ff
+#define HUP_RESERVED_FF 0x00ff
#define HUP_FIDO 0xf1d0
-#define HUP_MICROSOFT 0xff00
-#define HUP_HP 0xff01
+#define HUP_VENDOR_00 0xff00
+#define HUP_VENDOR_01 0xff01
+/* XXX compat */
+#define HUP_APPLE HUP_RESERVED_FF
+#define HUP_MICROSOFT HUP_VENDOR_00
+#define HUP_HP HUP_VENDOR_01
/* Usages, generic desktop */
#define HUG_POINTER 0x0001