Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2025 12:16:55 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2df0e8ff8f21 - main - hid.h: Add U2F usage tables constants
Message-ID:  <202505301216.54UCGtSV067273@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=2df0e8ff8f21e69240668463fa2700e5b21ef728

commit 2df0e8ff8f21e69240668463fa2700e5b21ef728
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2025-05-27 18:02:16 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-05-30 12:16:16 +0000

    hid.h: Add U2F usage tables constants
    
    Per "HID Usage Tables for Universal Serial Bus (USB)" Version 1.6.
    
    Page ID F1D0 FIDO Alliance Page
    
    Usage ID 01 U2F Authenticator Device - A device that provides 2nd factor
        authentication using the FIDO U2FHID protocol.
    
    Reviewed by:    wulf
    Differential Revision: https://reviews.freebsd.org/D50549
---
 sys/dev/hid/hid.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/dev/hid/hid.h b/sys/dev/hid/hid.h
index aeb0da98b181..e56f8ffe772b 100644
--- a/sys/dev/hid/hid.h
+++ b/sys/dev/hid/hid.h
@@ -57,6 +57,7 @@
 #define	HUP_SCALE		0x008c
 #define	HUP_CAMERA_CONTROL	0x0090
 #define	HUP_ARCADE		0x0091
+#define	HUP_FIDO		0xf1d0
 #define	HUP_MICROSOFT		0xff00
 
 /* Usages, generic desktop */
@@ -161,6 +162,9 @@
 #define	HUC_HEADPHONE		0x0005
 #define	HUC_AC_PAN		0x0238
 
+/* Usages, FIDO */
+#define	HUF_U2FHID		0x0001
+
 #define	HID_USAGE2(p,u)		(((p) << 16) | (u))
 #define	HID_GET_USAGE(u)	((u) & 0xffff)
 #define	HID_GET_USAGE_PAGE(u)	(((u) >> 16) & 0xffff)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505301216.54UCGtSV067273>