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
This commit is contained in:
Vladimir Kondratyev
2025-05-27 14:02:16 -04:00
committed by Ed Maste
parent b1c1ee4429
commit 2df0e8ff8f
+4
View File
@@ -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)