Andrew Walbran
|
1dd9f61a1a
Tidy up imports in examples.
|
2 years ago |
Andrew Walbran
|
b8b1eb065d
Add some crate-level documentation and an example.
|
2 years ago |
Andrew Walbran
|
cdeb49198d
Make modules public rather than re-exporting all their contents.
|
2 years ago |
Andrew Walbran
|
7d9ef6910f
Move devices into a separate module.
|
2 years ago |
Andrew Walbran
|
13ed3419c7
Make dependencies explicit.
|
2 years ago |
Andrew Walbran
|
633548725c
Rename Error::BufferTooSmall to QueueFull and improve documentation. (#43)
|
2 years ago |
Andrew Walbran
|
d9ac63e1a5
Improve VirtIOConsole (#39)
|
2 years ago |
Andrew Walbran
|
ef282cf3de
Merge pull request #40 from rcore-os/block
|
2 years ago |
Andrew Walbran
|
090b912279
Add more documentation for VirtIOBlk and export SECTOR_SIZE constant.
|
2 years ago |
Andrew Walbran
|
206f30ba4f
Improve non-blocking API of VirtIOBlk.
|
2 years ago |
Andrew Walbran
|
40b59b66d4
Merge pull request #32 from rcore-os/zerocopy
|
2 years ago |
Andrew Walbran
|
8048887954
Use zerocopy rather than our AsBuf trait.
|
2 years ago |
Andrew Walbran
|
b3d1040add
Don't implement Debug for volatile memory.
|
2 years ago |
Andrew Walbran
|
4fa4132a23
No need for packet headers to be volatile.
|
2 years ago |
Andrew Walbran
|
a072863bd6
Fix some clippy warnings. (#38)
|
2 years ago |
Yuekai Jia
|
87dc2492ae
Merge pull request #31 from rcore-os/queuesoundness
|
2 years ago |
Andrew Walbran
|
25925a31c7
Add safe helper method to add buffers and wait until they are used.
|
2 years ago |
Andrew Walbran
|
6183bed94a
Mark Queue::add as unsafe.
|
2 years ago |
Andrew Walbran
|
576e481e86
Reset queues when device is dropped. (#30)
|
2 years ago |
Andrew Walbran
|
559dc9611b
Add method on block device to check if it is read-only (#36)
|
2 years ago |
Andrew Walbran
|
af18ee53a7
Check size of config space (#29)
|
2 years ago |
Andrew Walbran
|
043ab6a71b
Merge pull request #27 from rcore-os/pci
|
2 years ago |
Andrew Walbran
|
3a33918b8e
Add method to Cam to return size.
|
2 years ago |
Andrew Walbran
|
382c0fd2ea
Expose PAGE_SIZE constant. (#35)
|
2 years ago |
Andrew Walbran
|
8a85d3af33
Add method to get capacity of block device. (#34)
|
2 years ago |
Andrew Walbran
|
b0185cbd64
Fix addition overflow bug with BAR size.
|
2 years ago |
Andrew Walbran
|
6787ffb9b0
Test more things in CI (#33)
|
2 years ago |
Andrew Walbran
|
77a537f2f1
Use raw slice for notify region rather than pointer and size.
|
2 years ago |
Andrew Walbran
|
abc2ea293f
Use raw slice for config space rather than pointer and size.
|
2 years ago |
Andrew Walbran
|
b56d4fc4a7
Validate alignment of BAR regions.
|
2 years ago |