Commit Graph

1171 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
Ribbon 17b2f5eab1 Add a description section and a template on the "COMMUNITY-HW.md" document 2024-10-10 14:30:33 +00:00
Ribbon c1d1ab6031 Merge branch 'community-hw' into 'master'
Move the community hardware tracking issue to the "COMMUNITY-HW.md" document

See merge request redox-os/drivers!204
2024-10-10 14:12:02 +00:00
Ribbon c5c87169ef Move the community hardware tracking issue to the "COMMUNITY-HW.md" document 2024-10-10 14:12:02 +00:00
Jeremy Soller fb06d3782f Fix build on aarch64 2024-10-06 09:58:37 -06:00
Jeremy Soller 12a3258619 Merge branch 'kek/acpid-scheme' into 'master'
acpid: serialize symbols with RON, migrate to redox_scheme, import syscall::io

See merge request redox-os/drivers!201
2024-09-30 16:51:32 +00:00
Kamil Koczurek e49fae6533 chore: fmt.sh 2024-09-30 13:22:34 +02:00
Kamil Koczurek 56bfd63173 acpid: update to redox_scheme
* Change symbol serialization to RON
2024-09-30 13:22:24 +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
Jeremy Soller ea5ccbc84d Merge branch 'ivan/mmc_update_scheme' into 'master'
migrate bcm2835-sdhcid to v2 scheme protocol

See merge request redox-os/drivers!202
2024-09-29 12:51:07 +00:00
Ivan Tan 897cf31893 migrate bcm2835-sdhcid to v2 scheme protocol 2024-09-29 09:36:36 +00:00
Jeremy Soller c805dbb704 Merge branch 'add_assertion_to_pci_driver' into 'master'
Add Non-Null Check to common driver library to prevent a kernel crash due to an unitialized PCI BAR

See merge request redox-os/drivers!200
2024-09-21 02:25:38 +00: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 306bb7d698 Added an assertion to map_bar that causes the calling driver to panic rather than crash the kernel 2024-09-20 18:39:25 -07:00
Jeremy Soller 83b16768dd Merge branch 'document_xhic_daemon' into 'master'
Added some documentation to the XHCI daemon, clarified the scheme interface with a refactor

See merge request redox-os/drivers!198
2024-09-10 00:43:42 +00:00
Timothy Finnegan 39f43a51a1 Added some documentation to the XHCI daemon, clarified the scheme interface with a refactor 2024-09-10 00:43:42 +00:00
Jeremy Soller 897866d948 xhcid: switch back to polling and leave TODO 2024-09-06 20:09:04 -06:00
Jeremy Soller b29d2c7c9e xhcid: switch back to interrupts 2024-09-04 15:00:35 -06:00
Jeremy Soller 50b1ad7e28 Merge branch 'create_rustdocs_for_drivers' into 'master'
Created docs for drivers/common

See merge request redox-os/drivers!197
2024-09-01 12:56:14 +00:00
Jeremy Soller a803c123cc Merge branch 'pr_templates_in_drivers_repo' into 'master'
Copied the merge request templates from the core repo to the drivers repo such...

See merge request redox-os/drivers!196
2024-09-01 12:51:22 +00:00
Jeremy Soller cdc02104ea Merge branch 'update_gitignore_to_add_local_editor_config_directories' into 'master'
Update gitignore to add local editor config directories

See merge request redox-os/drivers!195
2024-09-01 12:50:51 +00: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
Timothy Finnegan 32ba2f1f19 Copied the merge request templates from the core repo to the drivers repo such that PRs have those templates available to them 2024-08-31 12:17:36 -07:00
Timothy Finnegan 24c01b1760 Added comments describing additions to the gitignore 2024-08-31 12:11:05 -07:00
Timothy Finnegan ffb1f7dcd0 Added various C/C++ and Rust editor directories to the gitignore 2024-08-31 12:09:25 -07:00
Jeremy Soller c09063f4f4 Merge branch 'update_redox_log' into 'master'
Update redox-log

See merge request redox-os/drivers!194
2024-08-18 22:14:46 +00:00
bjorn3 0afc2f9875 Update redox-log
This removes a couple of uses of the legacy scheme syntax
2024-08-18 21:20:49 +02:00
Jeremy Soller 37a2234afd Merge branch 'common_logging_setup' into 'master'
Deduplicate setup_logging between all drivers

See merge request redox-os/drivers!193
2024-07-24 22:05:22 +00: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
Jeremy Soller 11c5024917 Merge branch 'userspace_disable_graphical_debug' into 'master'
Tell the kernel to disable graphical_debug right before the first framebuffer write by userspace

See merge request redox-os/drivers!192
2024-07-24 19:11:42 +00:00
bjorn3 66c1d0fd88 Tell the kernel to disable graphical_debug right before the first framebuffer write by userspace
Also remove the framebuffer clear in FrameBuffer::new as the entire
framebuffer will be overwritten anyway almost immediately after.
2024-07-24 21:06:29 +02:00
Jeremy Soller c440291e82 Merge branch 'ps2d_redox_log' into 'master'
Use redox-log in ps2d

See merge request redox-os/drivers!190
2024-07-23 19:30:46 +00:00
bjorn3 73c50db678 Use redox-log in ps2d 2024-07-22 12:46:33 +02:00
Jeremy Soller a8e16dbe6c Fix ps2d compilation on i686 2024-07-21 20:56:10 -06:00
Jeremy Soller 46ed176d0a Merge branch 'remove_broken_assertion' into 'master'
Remove an incorrect assertion preventing access to PCI extended capabilities

See merge request redox-os/drivers!191
2024-07-21 19:38:32 +00:00
bjorn3 10f6c16141 Remove an incorrect assertion preventing access to PCI extended capabilities 2024-07-21 21:26:05 +02:00
Jeremy Soller 0dff4eaf5f Merge branch 'rustfmt_more_things' into 'master'
Rustfmt a couple more crates

See merge request redox-os/drivers!189
2024-07-21 12:59:28 +00:00
bjorn3 7eceaaa2bd Rustfmt driver-network and driver-block 2024-07-21 13:56:20 +02:00
bjorn3 4d0008a32b Rustfmt the common crate 2024-07-21 13:56:20 +02:00
Jeremy Soller ca3bf0f0e6 Merge branch 'daemonize_pcid_correctly' into 'master'
Handle daemonization of pcid in a better way

See merge request redox-os/drivers!188
2024-07-20 22:13:49 +00:00
bjorn3 15d2078a13 Handle daemonization of pcid in a better way
Currently pcid exits the main thread once it is done spawning drivers
and expects all background threads handling driver communication to stay
around. This only works as exitting the main thread on redox os
currently doesn't cause the whole process to die. This will have to be
fixed at some point for compatibility with programs that expect that
exitting the main thread kills all other threads in the process, at
which point pcid would break without the changes in this commit.
2024-07-20 15:11:34 +02:00
Jeremy Soller 289f3147ec Merge branch 'various_graphics_cleanups' into 'master'
A variety of cleanups, soundness fixes and other changes to the graphics subsystem

See merge request redox-os/drivers!187
2024-07-19 23:22:01 +00:00
Jeremy Soller cbe102a0d3 Merge branch 'rustfmt_graphics' into 'master'
Run rustfmt on the entire graphics subsystem

See merge request redox-os/drivers!186
2024-07-19 23:21:15 +00:00
bjorn3 2e341fa742 Directly pass FrameBuffer to redraw and sync
This avoids creating an intermediate &'static mut [u32] of questionable
soundness and simplifies the code a bit.
2024-07-19 22:18:34 +02:00
bjorn3 53c02b5322 Move the framebuffer resizing code into a FrameBuffer method 2024-07-19 22:12:48 +02:00
bjorn3 857773393d Ensure fields of SyncRect are not reordered
Without repr(C), repr(packed) technically allows reordering fields.
2024-07-19 21:56:56 +02:00
bjorn3 ef29520cf5 Avoid ptr2int2ptr casts in GraphicScreen::sync
Also use pointer arithmetic on *mut u32 over manual multiplication by 4.
The ptr2int2ptr casts pessimize optimizations.
2024-07-19 21:55:21 +02:00