Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw/usb: Regroup USB HID protocol values
Group some HID values that are used pretty much everywhere when dealing with HID devices. Signed-off-by: César Belley <cesar.belley@lse.epita.fr> Message-id: 20200812094135.20550-2-cesar.belley@lse.epita.fr Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
- Loading branch information
1 parent
10b2d90
commit 84b6c23
Showing
3 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef HW_USB_HID_H | ||
#define HW_USB_HID_H | ||
|
||
/* HID interface requests */ | ||
#define HID_GET_REPORT 0xa101 | ||
#define HID_GET_IDLE 0xa102 | ||
#define HID_GET_PROTOCOL 0xa103 | ||
#define HID_SET_REPORT 0x2109 | ||
#define HID_SET_IDLE 0x210a | ||
#define HID_SET_PROTOCOL 0x210b | ||
|
||
/* HID descriptor types */ | ||
#define USB_DT_HID 0x21 | ||
#define USB_DT_REPORT 0x22 | ||
#define USB_DT_PHY 0x23 | ||
|
||
#endif |