Skip to content

Add HID protocol definitions to SDK. - #1498

Merged
joschock merged 1 commit into
OpenDevicePartnership:mainfrom
joschock:usb_hid_protocol_defs
Oct 26, 2026
Merged

joschock merged 1 commit into
OpenDevicePartnership:mainfrom
joschock:usb_hid_protocol_defs

Conversation

@joschock

@joschock joschock commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add the HID_IO protocol interface as a vendor-specific protocol definition.
This protocol is defined by Project Mu and provides the interface between
HID transport drivers (producers) and HID class drivers (consumers).

This PR consists primarily of structural definitions of the protocols themselves, and does not include any consuming logic.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Tested via work in progress component development that requires these definitions.

Integration Instructions

N/A.

@patina-automation

patina-automation Bot commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ QEMU Validation Passed

All QEMU validation jobs completed successfully.

Note: Q35 is only built on Windows hosts (QEMU boot is disabled due to a QEMU vfat issue).

Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/40373021977

Boot Time to EFI Shell

Platform Elapsed
ArmVirt (Linux Host) 28.5s
Q35 (Linux Host) 30.1s

Dependencies

Repository Ref
patina a059ba7
patina-dxe-core-qemu 28cfae7
patina-fw-patcher 5e02eb7
patina-qemu firmware v4.1.3
patina-qemu build script 05d359d

This comment was automatically generated by the Patina QEMU PR Validation Post workflow.

@github-actions github-actions Bot added the impact:non-functional Does not have a functional impact label May 5, 2026
@codecov

codecov Bot commented May 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@joschock
joschock force-pushed the usb_hid_protocol_defs branch from cbbf30c to 666aceb Compare May 5, 2026 00:44
@makubacki
makubacki self-requested a review May 5, 2026 00:44
@joschock
joschock force-pushed the usb_hid_protocol_defs branch 2 times, most recently from 44f35c6 to 37d6621 Compare May 6, 2026 03:39
@makubacki
makubacki requested review from kuqin12 and os-d May 12, 2026 16:04
@makubacki

Copy link
Copy Markdown
Collaborator

@joschock is there a reason not to take the UEFI Specification defined content to r-efi?

Comment thread sdk/patina/src/uefi_protocol/usb_io.rs Resolved
@joschock

Copy link
Copy Markdown
Contributor Author

@joschock is there a reason not to take the UEFI Specification defined content to r-efi?

Primarily for ease of prototyping this approach and getting feedback. I agree that it should be upstreamed.

@joschock

Copy link
Copy Markdown
Contributor Author

@joschock is there a reason not to take the UEFI Specification defined content to r-efi?

Primarily for ease of prototyping this approach and getting feedback. I agree that it should be upstreamed.

(definitely also needs to be more comprehensive as part of that)

@os-d os-d left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving; agree with Michael's review. Can we file an issue to track upstream to r-efi?

@makubacki makubacki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with the plan to move USB IO out of this PR and take directly to r-efi (filling out all definitions).

@joschock

Copy link
Copy Markdown
Contributor Author

Approving with the plan to move USB IO out of this PR and take directly to r-efi (filling out all definitions).

Branch for r_efi here: https://github.com/joschock/r-efi/commits/add_usb_io/, but waiting on #1480 to facilitate proper testing.

@joschock
joschock marked this pull request as draft July 6, 2026 18:24
@joschock

joschock commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Converted to draft -> moving the USB definition to a PR on r-EFI.

@joschock
joschock force-pushed the usb_hid_protocol_defs branch from 37d6621 to f70c7af Compare July 6, 2026 19:14
@joschock

joschock commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

r-efi PR to add USB IO is here: r-efi/r-efi#101. Will promote this out of draft once that completes and release.

@joschock
joschock force-pushed the usb_hid_protocol_defs branch from f70c7af to 81c3236 Compare October 13, 2026 18:02
@joschock joschock changed the title [REBASE & FF]Add USB and HID protocol definitions to SDK. Add HID protocol definitions to SDK. Oct 13, 2026
@github-actions github-actions Bot added the type:documentation Improvements or additions to documentation label Oct 13, 2026
@joschock
joschock marked this pull request as ready for review October 13, 2026 18:04
@joschock

Copy link
Copy Markdown
Contributor Author

UsbIo upstreamed to r-efi, promoted out of draft.

Add the HID_IO protocol interface as a vendor-specific protocol definition.
This protocol is defined by Project Mu and provides the interface between
HID transport drivers (producers) and HID class drivers (consumers).

Reference: https://github.com/microsoft/mu_plus/blob/release/202502/HidPkg/Include/Protocol/HidIo.h

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@joschock
joschock force-pushed the usb_hid_protocol_defs branch from 81c3236 to a059ba7 Compare October 26, 2026 17:39
@joschock
joschock enabled auto-merge (squash) October 26, 2026 17:39
@joschock
joschock merged commit 752aafe into OpenDevicePartnership:main Oct 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants