Add some more #defines.

This commit is contained in:
augustss 2001-12-28 00:20:24 +00:00
parent ae12ee76a0
commit 3bf49b584d
1 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: usbhid.h,v 1.10 2001/12/27 11:25:47 augustss Exp $ */
/* $NetBSD: usbhid.h,v 1.11 2001/12/28 00:20:24 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.7 1999/11/17 22:33:51 n_hibma Exp $ */
/*
@ -164,7 +164,16 @@ typedef struct usb_hid_descriptor {
#define HUD_ERASER 0x0045
#define HUD_TABLET_PICK 0x0046
#define HID_USAGE2(p,u) (((p) << 16) | u)
/* Usages LEDs */
#define HUD_LED_NUM_LOCK 0x0001
#define HUD_LED_CAPS_LOCK 0x0002
#define HUD_LED_SCROLL_LOCK 0x0003
#define HUD_LED_COMPOSE 0x0004
#define HUD_LED_KANA 0x0005
#define HID_USAGE2(p, u) (((p) << 16) | u)
#define HID_GET_USAGE(u) ((u) & 0xffff)
#define HID_GET_USAGE_PAGE(u) (((u) >> 16) & 0xffff)
#define UHID_INPUT_REPORT 0x01
#define UHID_OUTPUT_REPORT 0x02