mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
Kernel/USB: Add new USBHIDDescriptor
type
This commit is contained in:
parent
a1df8a1896
commit
d313fa98ec
Notes:
sideshowbarker
2024-07-17 11:36:07 +09:00
Author: https://github.com/Quaker762
Commit: d313fa98ec
Pull-request: https://github.com/SerenityOS/serenity/pull/13688
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/supercomputer7
1 changed files with 13 additions and 0 deletions
|
@ -108,6 +108,19 @@ struct [[gnu::packed]] USBHubDescriptor {
|
|||
// NOTE: This does not contain DeviceRemovable or PortPwrCtrlMask because a struct cannot have two VLAs in a row.
|
||||
};
|
||||
|
||||
//
|
||||
// USB Human Interface Device (HID) Descriptor
|
||||
// ==============
|
||||
//
|
||||
struct [[gnu::packed]] USBHIDDescriptor {
|
||||
USBDescriptorCommon descriptor_header;
|
||||
u16 hid_bcd;
|
||||
u8 country_code;
|
||||
u8 number_of_report_descriptors;
|
||||
u8 following_descriptor_type;
|
||||
u16 hid_report_descriptor_size;
|
||||
};
|
||||
|
||||
static constexpr u8 DESCRIPTOR_TYPE_DEVICE = 0x01;
|
||||
static constexpr u8 DESCRIPTOR_TYPE_CONFIGURATION = 0x02;
|
||||
static constexpr u8 DESCRIPTOR_TYPE_STRING = 0x03;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue