Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
OcMainLib: Read and set serial PCD values from config #330
OcMainLib: Read and set serial PCD values from config #330
Changes from all commits
358c09c
afa42c9
56d5929
b431838
88b41bc
bdd1eb4
d535e5d
aa00320
2ea4149
4e68948
68ddc2f
0370d79
227d1bb
4c41dd3
e991b40
8ce6d50
51edd6b
f219375
aa4133e
a4667c0
9a189f5
a383a62
43c48bf
026e0f3
3ecc122
ec9edf1
021ca58
07194b2
33f11d5
ec203cf
1640545
653e35f
aede0dc
582ce6b
a2fae24
9b26c63
ccca028
94d9ab6
e154b97
22a852d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joevt Would you please provide more information on how to convert a device path to the formatted PciDeviceInfo bytes? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My current theory is that I just need the device number and function number from each PCI device in the UEFI device path for the first two bytes of each node in the PciDeviceInfo path. The second two bytes I'll leave as 00 00. The last node is followed by an FF.
The following code find PCIe serial ports and outputs their paths.
This is the result:
The following can take a UEFI device path and produce the serial PciDevicePath:
I'll let you know when I find out if this works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it is better to mention this 41-byte thing in docs, then remove these links in the comment. Same below.