Commit Graph

856 Commits

Author SHA1 Message Date
bjorn3 fcc55507ea Move the notify_multiplier field into a separate PciCapabilityNotify type
It only exists for VIRTIO_PCI_CAP_NOTIFY_CFG and could conflict with
fields of other capability types.
2024-01-18 18:07:05 +01:00
bjorn3 380a416258 Reorganize virtio headers and add a couple of new fields
Also add a decent amount of comments from the virtio spec.
2024-01-18 17:17:39 +01:00
bjorn3 bd8b218174 Don't return Result from spawn_irq_thread
It never returns an error.
2024-01-18 15:29:06 +01:00
Jeremy Soller ca8d73fb32 Merge branch 'graphics_rework' into 'master'
Move text console handling from vesad to a new fbcond daemon

See merge request redox-os/drivers!128
2024-01-15 02:00:50 +00:00
bjorn3 ed69a8ef6d Open scheme in non-blocking mode and ensure events aren't lost 2024-01-14 21:20:42 +01:00
bjorn3 4f6f4d7267 Prevent a potential deadlock when writing to multiple text consoles 2024-01-14 19:29:02 +01:00
bjorn3 fe4f0880af Couple of minor cleanups
Among other things this removes the seek implementation as it doesn't
seem to be used and didn't do anything anyway.
2024-01-14 19:10:47 +01:00
bjorn3 f64a6e4c6f Remove text mode support from vesad
This is now handled by fbcond
2024-01-14 18:22:52 +01:00
bjorn3 bc1a068a4f Introduce fbcond to replace text console handling inside vesad
This will in the future allow switching between graphical mode and text
mode virtual terminals while keeping alternative graphics drivers like
virtio-gpud enabled at all times rather than having to reset back to VGA
mode every time.
2024-01-14 18:14:40 +01:00
bjorn3 b3b1fb1726 Remove VtMode::Text
It isn't used anywhere.
2024-01-13 19:36:08 +01:00
bjorn3 5c591cf475 Merge Display into GraphicScreen 2024-01-13 19:32:24 +01:00
bjorn3 24d1f95de3 Minor change 2024-01-13 19:25:49 +01:00
bjorn3 5f6edc7adc Fix warnings 2024-01-13 19:20:37 +01:00
bjorn3 5375d9e97d Remove some GraphicScreen direct fields accesses from TextScreen 2024-01-13 19:17:25 +01:00
bjorn3 6be07a3015 Use GraphicScreen inside TextScreen
In preparation for moving TextScreen to a separate daemon.
2024-01-13 17:30:52 +01:00
bjorn3 1a698dec98 Move text rendering to vesad::screen::text 2024-01-13 16:24:34 +01:00
bjorn3 ee2a36b889 Remove rusttype support from vesad
It is never enabled and would add a fair amount of complexity to a
system service which has effective root access despite sandboxing due to
being able to read and write display contents and input device events.
2024-01-13 16:11:36 +01:00
Jeremy Soller 87dc1d3e48 Merge branch 'fix_usbhidd' into 'master'
Fix usbhidd

See merge request redox-os/drivers!127
2024-01-12 18:44:08 +00:00
bjorn3 1ac2fdc572 Write events in usbhidd to input:producer
Writing to display.vesa:input seems to get ignored by orbital.
2024-01-12 19:35:35 +01:00
bjorn3 6561685af8 Fix MouseEvent for usbhidd 2024-01-12 19:35:35 +01:00
Jeremy Soller ce86aca558 Merge branch 'fix_absolute_mouse_events' into 'master'
Switch to absolute mouse events by default when running in a VM

See merge request redox-os/drivers!126
2024-01-12 17:58:50 +00:00
bjorn3 7a21573ebd Switch to absolute mouse events by default when running in a VM
This will transparently release the mouse grab of the VM when leaving
the screen edge, making it much easier to quickly switch between the VM
and other apps running on the host.
2024-01-12 18:33:29 +01:00
bjorn3 c2fd9125a7 Fix absolute mouse events with vmmouse
It is no longer possible to query the display size from inputd, so defer
conversion to display pixel coordinates to orbital instead. This also
avoids a lot of work every mouse event to query the display size as
orbital saves this information already.
2024-01-12 18:31:08 +01:00
bjorn3 bc7469f7cd Switch vmmouse global_asm block back to inline asm
There seems to be a bug somewhere in the global_asm block which causes a
SIGSEGV when making unrelated code changes to ps2d. Using an inline asm
block is easier to follow and less error prone around following the
calling convention.
2024-01-12 18:28:17 +01:00
Jeremy Soller 9422366782 ps2d: fix build on non-x86_64 2024-01-11 09:29:12 -07:00
Jeremy Soller 7892980eb4 Merge branch 'fix_vmmouse' into 'master'
Fix and re-enable vmmouse support

Closes #39

See merge request redox-os/drivers!125
2024-01-10 19:46:33 +00:00
bjorn3 7d4dd990e0 Try to enable vmmouse by default
This doesn't enable absolute mouse events yet as orbitral doesn't handle
them correctly.
2024-01-10 20:23:04 +01:00
bjorn3 f970a9c571 Check for vmware backdoor support before trying to enable vmmouse 2024-01-10 20:22:14 +01:00
bjorn3 8088cb8b20 Fix missing ret in global_asm block
This caused ps2d to get stuck in a crash loop when it's vmmouse support
is enabled.
2024-01-10 20:21:39 +01:00
Jeremy Soller 6d785b2964 Merge branch 'fetch_mac' into 'master'
Add support for fetching the mac address from the e1000d driver

See merge request redox-os/drivers!123
2024-01-08 15:59:45 +00:00
bjorn3 6dd86d366a Add support for fetching the mac address from the e1000d driver 2024-01-07 15:36:49 +01:00
Jeremy Soller 4b1bf16e01 Merge branch 'remove_physfree' into 'master'
Remove physfree

See merge request redox-os/drivers!122
2023-12-16 18:00:57 +00:00
4lDO2 04f60cf7be Fix ihdad. 2023-12-16 13:12:17 +01:00
4lDO2 8d11fb34de Fix impl Display for MemoryType. 2023-12-16 12:25:02 +01:00
4lDO2 2e1e007836 Fix inputd path parsing. 2023-12-12 12:03:03 +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
Jeremy Soller ea4c2f71e0 Merge branch 'ivan/bcm2835-sdhcid' into 'master'
add bcm2835-sdhci driver

See merge request redox-os/drivers!121
2023-12-11 16:09:03 +00:00
Ivan Tan 3871c99e6e add bcm2835-sdhci driver 2023-12-09 12:16:06 +08:00
Jeremy Soller 21e0b06c16 Merge branch 'no_slash_in_schemes' into 'master'
Phase out / in scheme names.

See merge request redox-os/drivers!117
2023-11-15 17:30:03 +00:00
Jeremy Soller e399f4a93a Merge branch 'improve-readme' into 'master'
Improve the README

See merge request redox-os/drivers!120
2023-11-15 17:20:37 +00:00
Ribbon ce5409f9bf Improve the README 2023-11-15 17:20:37 +00:00
4lDO2 a6fee75f15 Phase out / in scheme names. 2023-11-09 14:39:57 +01:00
Jeremy Soller 82fe14960f Fix build on x86 2023-11-08 09:54:27 -07:00
Jeremy Soller aacac7e3e0 Merge branch 'improve-readme' into 'master'
Improve the README

See merge request redox-os/drivers!118
2023-11-08 16:34:46 +00:00
Ribbon 02dcf9c180 Improve the README 2023-11-07 15:12:50 +00:00
Jeremy Soller 30068b1bfa Merge branch 'master' into 'master'
virtio-core: move things around so aarch64 builds

See merge request redox-os/drivers!116
2023-10-19 15:01:01 +00:00
Enver Balalic ad9295715f virtio-core: move things around so aarch64 builds 2023-10-19 15:01:01 +00:00
Jeremy Soller f228483f1f ahcid, nvmed: support MMIO on 32-bit systems 2023-09-09 12:15:07 -06:00
Jeremy Soller 676b1cda67 xhcid: support MMIO on 32-bit systems 2023-09-09 12:05:42 -06:00