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
bjorn3
b33ea2b53a
Fix a FIXME in display_fd_unmap
...
The len method on raw pointers has been stabilized.
2024-07-19 21:50:15 +02:00
bjorn3
1a41bcab14
Enforce formatting in CI
2024-07-19 21:47:47 +02:00
bjorn3
8a91bae0a6
Remove unnecessary unsafe block
2024-07-19 21:25:52 +02:00
bjorn3
747898dfb2
Run rustfmt on the entire graphics subsystem
2024-07-19 21:24:48 +02:00
Jeremy Soller
25a98ba914
Merge branch 'remove_inputd_g' into 'master'
...
Remove inputd -G
See merge request redox-os/drivers!185
2024-07-19 19:19:38 +00:00
bjorn3
ebb2243538
Remove all traces of VtMode
...
It isn't used anywhere anymore.
2024-07-19 21:18:09 +02:00
bjorn3
5f1fdec858
Remove inputd -G
...
Ever since fbcond got moved out of vesad it has been doing the exact
same as inputd -A.
2024-07-19 21:11:02 +02:00
Jeremy Soller
7ddb8e15eb
Merge branch 'fix_ps2d_vmmouse_ub' into 'master'
...
Fix UB in the ps2d vmmouse implementation
See merge request redox-os/drivers!184
2024-07-16 23:30:27 +00:00
bjorn3
1f25a69feb
Fix UB in the ps2d vmmouse implementation
...
The vm call will clobber edi, which is the register in which we saved
the ebx value. Also make sure to preserve the entire rbx value, rather
than just the lower half in ebx.
2024-07-16 15:43:50 +02:00
Jeremy Soller
cfabb8945a
Merge branch 'fix_inputd' into 'master'
...
Update deps and fix inputd.
See merge request redox-os/drivers!183
2024-07-16 12:44:41 +00:00
4lDO2
d9e5c6644d
Update deps and fix inputd.
...
Scheme names are not allowed to contain slashes, so it should look for a
`.` in e.g. `display.vesa:/path/to/...`.
2024-07-16 14:17:19 +02:00
Jeremy Soller
1710f56e71
Merge branch 'fix_things' into 'master'
...
Fix fbcon
See merge request redox-os/drivers!182
2024-07-12 12:36:19 +00:00
bjorn3
2fc3923d46
Fix fbcon
2024-07-12 12:05:31 +02:00
Jeremy Soller
130dd5c1ad
Merge branch 'no_legacy_path' into 'master'
...
Use the new scheme format in most places
See merge request redox-os/drivers!181
2024-07-11 23:32:35 +00: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
Jeremy Soller
21b2e90d50
Merge branch 'bug_fixes' into 'master'
...
bug fixes
See merge request redox-os/drivers!180
2024-07-09 18:44:41 +00:00
ramla-i
93d5ceb465
bug fixes
2024-07-09 12:55:48 -04:00
Jeremy Soller
e7781dcced
Fix compilation on aarch64
2024-06-24 11:43:17 -06:00
Jeremy Soller
8d65e05a28
Merge branch 'move_drivers' into 'master'
...
Move all drivers to /usr/lib/drivers
See merge request redox-os/drivers!179
2024-06-22 16:55:02 +00:00
Jeremy Soller
ab0b156159
ps2d: reduce timeouts
2024-06-17 12:42:23 -06:00
bjorn3
4ffed8096d
Move all drivers to /usr/lib/drivers
...
This makes them harder to accidentally run them from the shell, which
would not work. In the future this may also allow embedding the driver
config in the driver executable itself without having to look at all
non-driver executables too.
2024-06-16 17:02:14 +02:00
Jeremy Soller
a9bb925f25
Merge branch 'pcid_cleanup9' into 'master'
...
Don't include source files in two different crates for pcid
See merge request redox-os/drivers!178
2024-06-16 13:32:36 +00:00
bjorn3
07aaf6ea94
pcid: Don't include source files in two different crates
...
This confuses rust-analyzer.
2024-06-16 15:29:09 +02:00
bjorn3
6d15fbba75
pcid: Move msi from pci to driver_interface
2024-06-16 15:23:32 +02:00
bjorn3
ba6224bc27
pcid: Move VendorSpecificCapability form pci to driver_interface
2024-06-16 15:21:51 +02:00
bjorn3
5c9bbb5c96
pcid: Move PciBar from pci to driver_interface
2024-06-16 15:20:52 +02:00
bjorn3
52d1c0fb4f
pcid: Move FullDeviceId from pci to driver_interface
2024-06-16 15:19:14 +02:00
Jeremy Soller
434c3aed7a
Merge branch 'pcid_cleanup8' into 'master'
...
Get rid of PciHeader
See merge request redox-os/drivers!177
2024-06-16 13:05:12 +00:00
bjorn3
16819bc693
pcid: Get rid of PciHeader
...
It is a reminant of when pci_types wasn't used yet and doesn't simplify
things a lot anymore.
2024-06-16 13:42:45 +02:00
bjorn3
a34266b029
pcid: Remove all PciEndpointHeader methods
2024-06-16 13:33:55 +02:00
bjorn3
6c2fdae08c
pcid: Remove all tests of PciHeader
2024-06-16 13:32:11 +02:00
bjorn3
de4d79e69e
pcid: Inline PciEndpointHeader::bars
2024-06-16 13:23:27 +02:00
Jeremy Soller
2be445d6d7
Merge branch 'xhcid_slower_polling' into 'master'
...
Sleep for 2ms on every poll loop in xhcid
See merge request redox-os/drivers!176
2024-06-16 11:21:32 +00:00
bjorn3
160acff5a8
pcid: Move the code in PciHeader::display to other places
2024-06-16 13:20:16 +02:00
Jeremy Soller
d3496f4bd4
Merge branch 'virtio_remove_legacy_transport' into 'master'
...
Remove virtio legacy transport support
See merge request redox-os/drivers!175
2024-06-16 11:19:14 +00:00
Jeremy Soller
073b837a5e
Merge branch 'lived' into 'master'
...
Make lived stateless.
See merge request redox-os/drivers!174
2024-06-16 11:17:51 +00:00
bjorn3
1179d01e76
pcid: Add pretty string for the NVME device type
2024-06-16 13:12:52 +02:00
bjorn3
ae2240ef0f
pcid: Remove some PciHeader methods
2024-06-16 13:12:29 +02:00