-
-
Notifications
You must be signed in to change notification settings - Fork 171
uefi-raw: Add binding for EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL #1658
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
base: main
Are you sure you want to change the base?
Conversation
No idea what the CI is complaining about, tbh. I'm still quite unsure about how we should handle |
7357644
to
4adcc5c
Compare
Currently just a couple minor clippy things, add
Yep, when in doubt let's go with |
397aafc
to
4dd2a16
Compare
The error reporting of the |
Ah sorry I missed that error. It's because you're using a Rust enum, which is not quite compatible with a C enum (because it's undefined behavior to create a Rust enum from an invalid value). This can be fixed by using the (I put up #1660 to improve this error message.) |
13c6839
to
6fd55f5
Compare
Oof, that's embarrassing, the last merge request was only a few weeks ago and I've already forgotten about it. I needed some iterations for the addressing stuff ( |
@@ -18,6 +18,8 @@ | |||
- Added `UsbIoProtocol`. | |||
- Added `Usb2HostControllerProtocol`. | |||
- Added `DevicePathProtocol::length()` properly constructing the `u16` value | |||
- Added `AllocateType`. |
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.
We did a release recently, so these changes should now move to a new ## Added
section under [Unreleased]
.
|
||
#[derive(Debug)] | ||
#[repr(C)] | ||
pub struct PciRootBridgeIoAccess<TAddr> { |
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.
The uefi-raw crate doesn't normally use generics. I think in the spec the address
is treated as u64
in all cases, even though for for pci specifically the u64
is broken down into subfields, so let's do that and leave higher-level abstractions to the uefi
crate.
Checklist