Commit Graph

277 Commits

Author SHA1 Message Date
bjorn3 5f4e5016a8 drivers/graphics/driver-graphics: Implement MODE_ADD_FB2 2026-05-14 14:56:33 +02:00
bjorn3 0eb6390fe1 drivers/graphics/driver-graphics: Report DRM_MAJOR as device major 2026-05-14 12:23:54 +02:00
bjorn3 6875c90850 drivers/graphics/driver-graphics: Implement SET_VERSION and GET_UNIQUE
libdrm needs these when searching for drm devices.
2026-05-14 12:09:55 +02:00
bjorn3 d110147d62 drivers/graphics/driver-graphics: Introduce KmsObjects::remove helper 2026-05-13 21:19:05 +02:00
bjorn3 d1cf7d53d2 drivers/graphics/driver-graphics: Introduce set_connector_edid helper
And don't create a new blob unless the EDID actually changes.
2026-05-13 21:18:59 +02:00
bjorn3 74bd1db73a drivers/graphics/virtio-gpu: Move some block_on calls to the callers 2026-05-13 20:02:01 +02:00
bjorn3 e2c67fa8f8 drivers/graphics/virtio-gpu: Extract create_dumb_buffer_inner as async function 2026-05-13 20:00:25 +02:00
bjorn3 ebdf681eab drivers/graphics/virtio-gpu: Introduce send_request_cursor 2026-05-13 19:46:56 +02:00
bjorn3 7c533510a9 drivers/graphics/driver-graphics: Match error codes of Linux 2026-05-12 21:15:59 +02:00
bjorn3 e4462ccc09 drivers/graphics/driver-graphics: Report dummy TILE property for connectors 2026-05-10 15:28:39 +02:00
bjorn3 3f4ad965de drivers/graphics/driver-graphics: Report ACTIVE property for CRTCs 2026-05-10 15:22:15 +02:00
bjorn3 e93431cac0 drivers/graphics/driver-graphics: Replace From and TryFrom impls with KmsObjectKind trait 2026-05-10 15:09:34 +02:00
bjorn3 009a9130d2 drivers/graphics: Report DRM_CAP_DUMB_PREFERRED_DEPTH to clients 2026-05-10 14:54:47 +02:00
bjorn3 853e050fc8 drivers/graphics/driver-graphics: Use unzip in get_object_properties_data 2026-05-10 12:17:35 +02:00
bjorn3 e9fd66c78e drivers/pcid: Map BAR through pcid
This way PCI drivers don't need to use the privileged physmap interface,
but only need access to a pcid handle. This is not yet enough for
running drivers as unprivileged processes. Interrupts also need
privileges and we need IOMMU support in the kernel.
2026-05-09 20:53:21 +02:00
bjorn3 d528fb73b4 drivers: Use map_bar instead of physmap where possible
Physmap requires root, while map_bar in the future could be run as
unprivileged process given a pcid handle for the target device.
2026-05-09 20:12:41 +02:00
bjorn3 018d795eb0 drivers/graphics: Avoid unnecessary force probes
Force probes can be rather expensive on real hardware so according to
the drm_mode_get_connector docs it should only be done at startup, on a
hotplug event and when explicitly requested by the user.
2026-05-09 12:16:22 +02:00
bjorn3 2436639271 drivers/graphics: Avoid duplicate get_connector calls 2026-05-09 12:07:58 +02:00
bjorn3 15c3327adb drivers/graphics/ihdgd: Remove unnecessary reset call
alloc_buffers already starts as empty.
2026-05-08 20:24:09 +02:00
Jeremy Soller 485f2949ba Merge branch 'usb-rework' into 'main'
[xhcid] Push class specific descriptor parsing to the drivers

See merge request redox-os/base!255
2026-05-07 14:37:44 -06:00
bjorn3 1dcf00dc8e drivers/graphics/driver-graphics: Replace hw_cursor_size with has_cursor_plane
Clients get the cursor size using get_cap. hw_cursor_size is only used
to determine the existence of a cursor plane nowadays.
2026-05-07 22:20:59 +02:00
bjorn3 e9188e0f91 drivers/graphics/driver-graphics: Reduce visibility of some functions 2026-05-07 22:20:12 +02:00
Antoine Reversat 3f6c0c706f Run cargo fmt 2026-05-07 15:22:33 -04:00
Antoine Reversat f6bb61ba18 Move report descriptor parsing into usbhid 2026-05-07 14:05:13 -04:00
Antoine Reversat e22712d920 Replace hid_descs with unknown_descs 2026-05-07 12:20:07 -04:00
Antoine Reversat a43de9ea5d Run cargo fmt 2026-05-06 17:04:19 -04:00
bjorn3 7a08d30285 Rustfmt 2026-05-06 21:43:53 +02:00
bjorn3 8fdd5f3998 drivers/graphics/ihdgd: Replace DeviceFb with GpuBuffer for dumb buffers
Dumb buffers only have a size like GpuBuffer, not width, height and
stride like DeviceFb.
2026-05-06 21:32:32 +02:00
bjorn3 221d228f36 drivers/graphics/ihdgd: Support page flipping 2026-05-06 21:32:29 +02:00
Migue Magic e577bfc2ea Optimize console-draw write function 2026-05-03 09:06:37 -06:00
bjorn3 009ffe1dbc Fix compilation 2026-04-27 22:09:53 +02:00
Migue Magic 180bfe15a7 Fix typos across 3 drivers 2026-04-27 12:27:11 -06:00
Wildan M f2f834d412 Update ACPI crate 2026-04-27 15:57:46 +07:00
bjorn3 e217ff2c6a drivers/usb/xhcid: Load config files at runtime rather than compile time 2026-04-22 22:36:40 +02:00
bjorn3 daf726c30d scheme-utils: Have FpathWriter handle writing the scheme name 2026-04-19 19:07:41 +02:00
bjorn3 64d23e9e05 scheme-utils: Introduce FpathWriter helper 2026-04-19 19:07:41 +02:00
bjorn3 28900f7c49 scheme-utils: Introduce Blocking as counterpart to ReadinessBased for blocking schemes 2026-04-19 11:05:04 +02:00
bjorn3 6686c73d26 Implement on_close method of SchemeSync instead of using a separate method 2026-04-19 10:42:19 +02:00
bjorn3 a2bc1dd79c scheme-utils: Panic on scheme EOF
EOF used to be triggered by unmounting a scheme, but this is no longer
the case since namespaces got moved to userspace. Unmounting now only
closes the scheme root fd.
2026-04-18 16:49:21 +02:00
bjorn3 a5018ca37e scheme-utils: Merge read_requests and process_requests
And simplify some matches on the resulting method.
2026-04-18 16:49:21 +02:00
bjorn3 4ef2c7ad6f scheme-utils: Remove the need for RefCell wrappers around schemes for ReadinessBased 2026-04-18 16:49:21 +02:00
bjorn3 ca281c9395 scheme-utils: Copy ReadinessBased from redox-scheme to scheme-utils
To allow improving the implementation and interface in this repo and
move it back into redox-scheme later.
2026-04-18 16:49:03 +02:00
bjorn3 01183044a3 Workaround deadlock in initnsmgr 2026-04-18 12:58:41 +02:00
bjorn3 06af174ce6 drivers/virtio-core: Reduce log verbosity 2026-04-16 18:43:54 +02:00
Wildan M 9e7e04e3b8 Extend ided read timeout 2026-04-16 05:28:28 +07:00
bjorn3 feff62ba38 drivers/acpid: Couple minor cleanups 2026-04-14 21:54:25 +02:00
bjorn3 6311833765 drivers/graphics/bgad: Remove bgad
The only thing it does it changing the size of the region that the
graphics adapter sees as framebuffer. It doesn't actually tell vesad to
resize the framebuffer nor does it implement an actual full graphics
driver. For basic usage the bootloader setup framebuffer is sufficient
and for anything more advanced, virtio-gpu is a much better option that
we already have a full graphics driver for.
2026-04-14 21:18:43 +02:00
bjorn3 f80c51d2e1 drivers/audio: Minor code cleanups 2026-04-14 21:00:48 +02:00
bjorn3 317a0178b6 Introduce scheme-utils crate and HandleMap type
HandleMap deduplicates the id assignment for handles and unlike most
existing implementations handles overflow just fine.
2026-04-13 22:19:07 +02:00
Jeremy Soller 6deaaa71a7 Merge branch 'check-shadow-buf' into 'main'
drivers/graphics: Add API to check if shadow buffer present

See merge request redox-os/base!222
2026-04-12 06:49:51 -06:00