feat: expose configuration_access field in PciRoot#233
feat: expose configuration_access field in PciRoot#233qwandor merged 1 commit intorcore-os:masterfrom
Conversation
|
I'm not convinced that |
Actually, I also think Let's talk about However, I've come up with two new alternatives:
|
|
The advantage of providing access to the actual Making the field public is also fine I guess. |
|
Actually yeah, I think making the field public is the best solution. It provides exactly the same capabilities as adding the methods, and is simpler. |
992a104 to
ebaba1a
Compare
- Remove the redundant parameter from , since now exposes as a public field (rcore-os/virtio-drivers#233). - Use directly on x86_64 instead. - Add to . - Bump dependency to 0.13.0 (patch via git for the public field).
Description
Added
Deref<Target = C>andDerefMut<Target = C>implementations forPciRoot<C>.We need this to access PCI configuration space (for example Interrupt Line) after constructing a
PciRoot. See arceos-org/axdriver_crates#19.Possible alternatives
inner()andinner_mut()forPciRootConfigurationAccessforPciRoot