Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
thesofproject
linux
Repository navigation
Code
Issues
290
(290)
Pull requests
58
(58)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
topic/sof-dev
Breadcrumbs
linux
/
include
/
uapi
/
linux
/
usb
/
g_hid.h
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
40 lines (33 loc) · 1.22 KB
topic/sof-dev
Breadcrumbs
linux
/
include
/
uapi
/
linux
/
usb
/
g_hid.h
Copy path
Top
File metadata and controls
Code
Blame
40 lines (33 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
#ifndef
__UAPI_LINUX_USB_G_HID_H
#define
__UAPI_LINUX_USB_G_HID_H
#include
<linux/types.h>
/* Maximum HID report length for High-Speed USB (i.e. USB 2.0) */
#define
MAX_REPORT_LENGTH
64
/**
* struct usb_hidg_report - response to GET_REPORT
* @report_id: report ID that this is a response for
* @userspace_req:
* !0 this report is used for any pending GET_REPORT request
* but wait on userspace to issue a new report on future requests
* 0 this report is to be used for any future GET_REPORT requests
* @length: length of the report response
* @data: report response
* @padding: padding for 32/64 bit compatibility
*
* Structure used by GADGET_HID_WRITE_GET_REPORT ioctl on /dev/hidg*.
*/
struct
usb_hidg_report
{
__u8
report_id
;
__u8
userspace_req
;
__u16
length
;
__u8
data
[
MAX_REPORT_LENGTH
];
__u8
padding
[
4
];
};
/* The 'g' code is used by gadgetfs and hid gadget ioctl requests.
* Don't add any colliding codes to either driver, and keep
* them in unique ranges.
*/
#define
GADGET_HID_READ_GET_REPORT_ID
_IOR('g', 0x41, __u8)
#define
GADGET_HID_WRITE_GET_REPORT
_IOW('g', 0x42, struct usb_hidg_report)
#endif
/* __UAPI_LINUX_USB_G_HID_H */
You can’t perform that action at this time.