bjorn3
e7fe3183b0
Make all pcid_interface methods abort the process on errors
...
Effectively the only way to recover from errors in the communication
with pcid is by restarting the driver from scratch possibly after
restarting pcid. As such moving the aborts from individual drivers to
pcid_interface simplifies drivers while at the same time allowing nicer
error messages.
2025-03-02 12:36:35 +01:00
bjorn3
581d9eea33
Replace a whole bunch more repr(packed) with repr(C, packed)
2025-02-22 16:19:25 +01:00
bjorn3
2c042f8c98
Fix a ton of unused import warnings
2024-12-26 16:05:04 +01:00
Andrey Turkin
09b5033fbd
Wholesale cargo fmt to get CI back to green
2024-10-17 20:07:05 +03:00
Kamil Koczurek
d2c82add9d
Move Io/Pio/Mmio from redox_syscall to common
...
* Fix Mmio repr from transparent to packed.
* Rename Mmio::from to Mmio::new.
* Remove dead imports around affected code.
* Minor formatting.
2024-09-30 13:01:36 +02:00
bjorn3
23ac696491
pcid: Add PciFunctionHandle::map_bar method
...
This will enable the pcid driver interface to safely map the MSI-X table
in the future without having to worry about a BAR being mapped twice.
2024-06-15 15:47:48 +02:00
bjorn3
a3b957c2e5
pcid: Fetch config in PciFunctionHandle::connect_default()
2024-06-15 15:16:09 +02:00
bjorn3
fdb9ea816b
pcid: Rename PcidServerHandle to PciFunctionHandle
2024-06-15 15:05:59 +02:00
bjorn3
3299a070f2
pcid: Also return bar size from physmap_mem and use it in two more drivers
2024-06-15 14:01:06 +02:00
4lDO2
e97ba74789
Reimplement all event_queue.trigger behavior.
2024-03-31 14:30:07 +02:00
4lDO2
4c35e88997
Use latest event queue interface everywhere.
2024-03-31 14:30:04 +02:00
Jacob Lorentzon
ff956fd3bb
Switch to libredox where applicable (fixed)
2024-03-18 22:09:25 +00:00
Jeremy Soller
98078650f8
Revert "Switch to libredox where applicable."
...
This reverts commit 2e7dbf1cc1 .
2024-03-18 15:00:52 -06:00
4lDO2
2e7dbf1cc1
Switch to libredox where applicable.
2024-03-18 19:23:05 +01:00
bjorn3
354c351b19
Unify device info printing between drivers
2024-01-23 13:01:40 +01:00
bjorn3
77b97bb2ed
Introduce PciBar::physmap_mem helper
2024-01-23 12:02:40 +01:00
bjorn3
ad23ad5d93
Introduce irq_handle helper for legacy interrupts
2024-01-22 19:35:18 +01:00
bjorn3
bd6716efe4
Make legacy_interrupt_line an Option
...
Drivers don't need to know the exact legacy_interrupt_pin in use.
Just if legacy interrupts are enabled and if so which
legacy_interrupt_line is used.
2024-01-22 19:35:06 +01:00
bjorn3
a5d0c7c354
Use pci_types for reading BARs
...
This simplifies a lot of code and adds support for 64bit BARs.
2024-01-22 15:54:18 +01:00
bjorn3
5192816de7
Introduce expect_port and expect_mem helpers
2024-01-21 21:12:24 +01:00
bjorn3
3b4d0e858f
Migrate vboxd to pcid_interface (untested)
2024-01-20 19:26:46 +01:00
Anhad Singh
a153c8bc1c
inputd: correctly pass on resize events
...
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2023-07-20 19:20:56 +10:00
4lDO2
0277284874
Switch to common::Dma for each non-initfs driver.
2023-07-18 13:59:44 +02:00
4lDO2
8555b8ab3d
Remove physmap in non-initfs drivers too.
2023-07-18 11:01:17 +02:00
Anhad Singh
7cc2f4eff7
virtio-gpu: start working on the scheme
...
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2023-07-03 17:12:59 +10:00
4lDO2
a5a3f3341f
Remove all usages of physunmap.
2023-06-11 11:33:27 +02:00
4lDO2
21e30b7339
Replace syscall::clone() with libc::fork().
2022-07-27 16:25:01 +02:00
4lDO2
7a2b3d7656
Update dependencies.
2021-06-17 18:18:27 +02:00
Roland Ruckerbauer
b50437af8a
Fixed deprecated syntax in vesad
...
2018 edition upgrade & fixes for a bunch of 'future error warnings'
Actually upgrading all crates to 2018 edition
2019-06-29 21:47:52 +02:00
Jeremy Soller
7afaadabd9
Ensure that MMIO memory is mapped without caching
2019-04-08 20:22:01 -06:00
Jeremy Soller
c47c68f44c
Update fmap support
2018-12-28 16:19:09 -07:00
Jeremy Soller
0a9b15939e
Update to new event
2018-05-20 11:05:10 -06:00
Jeremy Soller
bd8a377c78
Use capability mode (null namespace) for drivers
2017-10-09 20:36:16 -06:00
Jeremy Soller
a0c5ab7911
WIP: VBox resize
2017-03-22 15:59:53 -06:00
Jeremy Soller
060934a77d
Remove debug statement, again
2017-03-20 22:23:56 -06:00
Jeremy Soller
bad856d7b4
Support for mouse events in vbox driver
2017-03-20 21:39:12 -06:00
Jeremy Soller
66d2aa8c01
Add virtualbox guest driver (WIP)
2017-03-18 21:48:33 -06:00