Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move UFS spec headers into MdePkg/IndustryStandard files and update to UFS 4.0 #6438

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zurcher
Copy link
Contributor

@zurcher zurcher commented Nov 13, 2024

Description

The spec-based header definitions for UFS drivers are currently in two identical private header files. This change set moves the definitions into the IndustryStandard folder with two separate files tracking relevant UFS spec documents. This will allow for future spec updates to be made in a single location, and allows for other drivers to access these definitions.
Additionally, this set updates Ufs.h to the UFS 4.0 spec.

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

Added UfsBlockIoPei and UfsPassThruDxe to OvmfPkg, and built successfully.

Integration Instructions

Drivers can now include <IndustryStandard/Ufs.h> to interact with UFS interfaces such as <Protocol/UfsDeviceConfig.h>.

These files are direct ports from the (identical) files:
MdeModulePkg\Bus\Ufs\UfsBlockIoPei\UfsHci.h
MdeModulePkg\Bus\Ufs\UfsPassThruDxe\UfsPassThruHci.h

Signed-off-by: Christopher Zurcher <[email protected]>
Remove duplicate private header files and reference UFS spec definitions
from the IndustryStandard folder.

Signed-off-by: Christopher Zurcher <[email protected]>
Signed-off-by: Christopher Zurcher <[email protected]>
@zurcher zurcher changed the title Move UFS spec headers into MdePkg/IndustryStandard files Move UFS spec headers into MdePkg/IndustryStandard files and update to UFS 4.0 Nov 16, 2024
@zurcher
Copy link
Contributor Author

zurcher commented Nov 16, 2024

This PR contains 3 separate commits that should be kept separate, and not merged into a single commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant