Andrew Walbran
|
d466e222d5
Only 1 byte for ISR rather than 4.
|
2 years ago |
Andrew Walbran
|
5ff360356a
Check that DeviceFunction is valid.
|
2 years ago |
Andrew Walbran
|
5f7ee39695
PciRoot shouldn't implement Clone.
|
2 years ago |
Andrew Walbran
|
cf5575ecdd
Avoid storing PciRoot in Pci transport.
|
2 years ago |
Andrew Walbran
|
93722fba26
Take reference in CapabilityIterator rather than cloning PciRoot.
|
2 years ago |
Andrew Walbran
|
f83fa31030
Mark PCI transport as supported in README.
|
2 years ago |
Andrew Walbran
|
14bc876520
Add aarch64 example to README.
|
2 years ago |
Andrew Walbran
|
330dad7191
Test VirtIO PCI devices too.
|
2 years ago |
Andrew Walbran
|
0dd41a4d35
Dump status and command for debugging.
|
2 years ago |
Andrew Walbran
|
0b01e4cf22
Dump BAR contents and config space address for debugging.
|
2 years ago |
Andrew Walbran
|
b1f457a3c1
Implement Pci::config_space().
|
2 years ago |
Andrew Walbran
|
7735f7a437
Allocate 64-bit BARs from 32-bit address space.
|
2 years ago |
Andrew Walbran
|
0acfa4c2a0
Allocate PCI memory BARs.
|
2 years ago |
Andrew Walbran
|
8e01d3c552
Parse PCI ranges from FDT.
|
2 years ago |
Andrew Walbran
|
17f51ed72a
Use proper volatile read for VirtIO config space.
|
2 years ago |
Andrew Walbran
|
d1e58c452b
Implement ack_interrupt.
|
2 years ago |
Andrew Walbran
|
9c94891b69
Implement notify.
|
2 years ago |
Andrew Walbran
|
b0885c39c2
Start implementing PCI transport for VirtIO.
|
2 years ago |
Andrew Walbran
|
2025c77055
Add methods to get and set BARs.
|
2 years ago |
Andrew Walbran
|
632aa98ec0
Add iterator over capabilities list.
|
2 years ago |
Andrew Walbran
|
6d94dc7746
Use u16 for queue indices.
|
2 years ago |
Andrew Walbran
|
cd7c60c06f
Dump status and command register values.
|
2 years ago |
Andrew Walbran
|
8de7df2017
Recognise VirtIO devices.
|
2 years ago |
Andrew Walbran
|
cbfa07846c
Get header type.
|
2 years ago |
Andrew Walbran
|
be0cfeedcc
Implement iterator to enumerate PCI bus.
|
2 years ago |
Andrew Walbran
|
4d8707ae12
Add module for PCI transport, with function to match device IDs.
|
2 years ago |
Andrew Walbran
|
86df3df767
Implement From for DeviceType rather than using transmute.
|
2 years ago |
Andrew Walbran
|
233cf1c113
Don't unset bits in the device status field. (#24)
|
2 years ago |
Andrew Walbran
|
13c36762e4
Use latest nightly Rust toolchain for riscv example. (#26)
|
2 years ago |
Andrew Walbran
|
7b3009c6dc
Use fdt crate rather than device_tree in riscv example. (#25)
|
2 years ago |