Commit Graph

24 Commits

Author SHA1 Message Date
Andrey Turkin 09b5033fbd Wholesale cargo fmt to get CI back to green 2024-10-17 20:07:05 +03:00
Jeremy Soller fb06d3782f Fix build on aarch64 2024-10-06 09:58:37 -06:00
Kamil Koczurek e49fae6533 chore: fmt.sh 2024-09-30 13:22:34 +02: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
Timothy Finnegan 806e8b42b7 Added an assertion to map_bar that causes the calling driver to panic rather than crash the kernel 2024-09-20 18:42:03 -07:00
Timothy Finnegan 1ce1949416 Ran rustfmt to re-format my changes 2024-08-31 16:19:58 -07:00
Timothy Finnegan f2decff457 Added link wrappers around the wikipedia link in SGL 2024-08-31 16:17:13 -07:00
Timothy Finnegan e9e7e2934e Added documentation for the dma, logger, and sgl modules 2024-08-31 16:16:35 -07:00
Timothy Finnegan d7852b4836 Created docs for common/src/lib.rs 2024-08-31 14:48:35 -07:00
bjorn3 7935ed0248 Deduplicate setup_logging between all drivers
This will make it easier to change the way logging is done for all
drivers. This also fixes the log category for a couple of drivers as
well as makes failing to set the logger a fatal error. Only when a
logger is already set is it impossible to set another logger.
2024-07-24 22:00:40 +02:00
bjorn3 4d0008a32b Rustfmt the common crate 2024-07-21 13:56:20 +02:00
bjorn3 fd8dabd1bc Use the new scheme format in most places
The graphics subsystem still uses the old format as orbital manually
parses the fpath result.
2024-07-11 21:14:45 +02:00
4lDO2 7b2f4dda90 Use scatter-gather list for virtio framebuffer.
The current frame allocator limits requests to powers of two, between 4
KiB and 4 MiB. As such, a 8-bit color 1920x1080 framebuffer needs at
least two allocations.
2024-06-14 08:26:19 +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
Jacob Lorentzon e7a6bb6c81 Only do one memory:physical map per MCFG entry. 2024-02-20 22:27:14 +00:00
4lDO2 8d11fb34de Fix impl Display for MemoryType. 2023-12-16 12:25:02 +01:00
4lDO2 ea73da92bf Replace all physalloc usages with Dma. 2023-12-12 12:03:03 +01:00
4lDO2 0d99333c3f Remove PhysBox. 2023-12-12 12:03:03 +01:00
Ivan Tan 3871c99e6e add bcm2835-sdhci driver 2023-12-09 12:16:06 +08:00
Jeremy Soller 61e9512468 Update redox_syscall to 0.4 2023-09-07 20:49:37 -06:00
4lDO2 089e8bac35 Move syscall::Dma to common. 2023-07-18 12:43:06 +02:00
4lDO2 094e3ba548 Add a crate for driver helpers. 2023-07-18 11:01:08 +02:00