Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uefi: Add device path generation for discovered devices in a PciTree#1831

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
seijikun wants to merge4 commits intorust-osdev:main
base:main
Choose a base branch
Loading
fromseijikun:mr-pci-device_paths

Conversation

@seijikun
Copy link
Contributor

@seijikunseijikun commentedNov 22, 2025
edited by phip1611
Loading

Initial implementation for device path generation of discovered pci devices in aPciTree instance.
Unfortunately, it's a bit clunky to use, since you have to query theDevicePath corresponding to yourPciRootBridgeIo instance yourself and pass that in:

letmut pci_proto =get_open_protocol::<PciRootBridgeIo>(pci_handle);let root_device_path =get_open_protocol::<DevicePath>(pci_handle);let pci_tree = pci_proto.enumerate().unwrap();for addrin pci_tree{// v Would be nicer, if I didn't have to pass root DevicePath in manually here vlet device_path = pci_tree.device_path(&root_device_path, addr).unwrap();}

I tried getting theDevicePath of thePciRootBridgeIo instance withinPciRootBridgeIo::enumerate() and pass that on to thePciTree, but I couldn't find a way to get theDevicePath instance - other than ugly workarounds.

Best consumed Commit-By-Commit. Contains#1830..

Steps to Undraft

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See theRewriting History guide for help.
  • Update the changelog (if necessary)

@phip1611phip1611 marked this pull request as draftNovember 22, 2025 09:27
…ation- Refactored return type from standard BTreeSet to custom PciTree struct- Removed special FullPciIoAddress type, since segment number is PciRoot dependent- During enumeration, skip branches we have already seen- During enumeration, collect tree topology information (which child bus linked from where)- Add complicated pci structure in integration test vm- Print child busses for every device entry in integration test
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@seijikun

[8]ページ先頭

©2009-2025 Movatter.jp