forked from theseus-os/Theseus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
pci
abstractions; support MMIO PCI access for aarch64 (thes…
…eus-os#1019) * Support PCI on aarch64 via MMIO access mechanisms. * Redesign the PCI addressing code to be very clear and use more types. Currently some checks are done at runtime with assertions, but these could easily be moved to compile time by introducing traits about register sizes that can be implemented by each `RegisterSpan` within the `PciRegister` type. * Note: PCI currently uses Port I/O on x86 and MMIO on aarch64 to read/write, but x86_64 may also use MMIO-based access in the future, because Port I/O is the legacy method to access the PCI configuration space. * The `device_manager` now initializes and scans the PCI bus on both the aarch64 and x86_64 platforms. * Scanning the PCI bus for the first time also maps the memory behind the configuration space. Co-authored-by: Kevin Boos <kevinaboos@gmail.com>
- Loading branch information
Showing
8 changed files
with
434 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.