Add pci I/O bar access and use bitfields
- edition update/clippy as well
I added some TODOs because I'm not done with pci, will do more PRs. I actually stated a question there too: Do we / does the device author always know what kind of address a determine_mem_base call returns?
I can look that up in a pci spec, just asking if anybody knows.
To answer your question:
Do we / does the device author always know what kind of address a determine_mem_base call returns?
Yes, but we should verify that by actually checking the PCI BAR content. Your approach in the network device drivers of returning an error if it's not a memory space BAR is correct.
Thanks for the comments, I'll think about this some more when I'm stuck on my main tasks. I do think that your version is more readable, though.