Commit Graph

305 Commits

Author SHA1 Message Date
Connor-GH ddd6c4f3ac ptyd: implement TIOCGPTN and TIOC{S,G}PTLCK
This functionality is needed according to POSIX. Additionally, some
logic had to be changed in order for the ptsname to be correct for the
manager terminal (ptmx). If you want to obtain a pty, you must go
through the `posix_openpt`-`grantpt`-`unlockpt`-`ptsname`-`open`
process. Alternatively, relibc as a function called `openpty`.

This is part of my ptyd series. This can be safely merged once the MRs
for relibc/ and userutils/ are merged at the same time.
2026-06-03 19:33:09 -05:00
4lDO2 2272746215 Run rustfmt. 2026-06-03 10:38:36 +02:00
4lDO2 4a34c3251e Use simplified kernel ACPI interface. 2026-06-02 15:40:28 +02:00
bjorn3 24fb66e144 Fix warnings for updated rustc
And move away from an internal feature now that there is a proper
(unstable) function for it.
2026-05-27 21:11:53 +02:00
bjorn3 5701459db4 drivers/graphics/console-draw: Use font height rather than width where necessary
This fixes major corruption of the drawn text.
2026-05-24 20:36:18 +02:00
bjorn3 54b2697a6d drivers/graphics/console-draw: Missed change 2026-05-24 20:31:51 +02:00
bjorn3 5e800afd1b drivers/graphics: Couple of misc fbcond/fbbootlogd cleanups 2026-05-24 20:23:05 +02:00
Wildan M b70f565ec5 fbbootlogd: Fix build 2026-05-16 15:26:38 +07:00
Jeremy Soller a0e34b92e5 Merge branch 'console-font-support' into 'main'
Implement font support

See merge request redox-os/base!261
2026-05-15 17:21:18 -06:00
Migue Magic ae77a4f0ad Implement font support 2026-05-15 17:21:18 -06:00
bjorn3 fc2d098f70 drivers/graphics/driver-graphics: Move property ioctls to a separate module 2026-05-14 18:37:55 +02:00
bjorn3 3e7b757f0b drivers/graphics/driver-graphics: Deduplicate code between MODE_CURSOR and MODE_CURSOR2 2026-05-14 17:40:43 +02:00
bjorn3 798ef0738e drivers/graphics/driver-graphics: Move cursor ioctls to a separate module 2026-05-14 17:36:55 +02:00
bjorn3 df845d6566 drivers/graphics/driver-graphics: Move framebuffer ioctls to a separate module 2026-05-14 17:32:39 +02:00
bjorn3 2ac2182caa drivers/graphics/driver-graphics: Move ioctl impls to a new module 2026-05-14 17:25:02 +02:00
bjorn3 22060149c2 drivers/graphics/driver-graphics: Extract ioctl implementations into a function 2026-05-14 17:22:15 +02:00
bjorn3 241bae84e7 drivers/graphics/driver-graphics: Fix leftover of dummy planes 2026-05-14 17:13:31 +02:00
bjorn3 c66c9e95fa drivers/graphics/driver-graphics: Introduce DrmHandle 2026-05-14 17:05:47 +02:00
bjorn3 a53777050c drivers/graphics/driver-graphics: Expose a bunch of properties on planes 2026-05-14 16:43:10 +02:00
bjorn3 607906de28 Rustfmt 2026-05-14 16:19:10 +02:00
bjorn3 b0d7b6135e Restore some FIXMEs 2026-05-14 16:09:07 +02:00
bjorn3 6a039c29fe drivers/graphics/ihdgd: Don't access CRTC in set_plane 2026-05-14 16:05:57 +02:00
bjorn3 5d6faacfb3 drivers/graphics/driver-graphics: Couple of fixups 2026-05-14 16:00:30 +02:00
bjorn3 0ee128ad8d drivers/graphics: Make everything work 2026-05-14 15:50:15 +02:00
bjorn3 ab8bfb9d5d drivers/graphics/driver-graphics: Report actual planes from MODE_GET_PLANE 2026-05-14 15:33:17 +02:00
bjorn3 76d6398473 drivers/graphics/driver-graphics: Add primary plane for every CRTC 2026-05-14 15:29:58 +02:00
Meijlen 835be6f654 drivers/graphics: Implement support for planes 2026-05-14 15:29:56 +02:00
bjorn3 53da1b0dc4 drivers/graphics/driver-graphics: Fix ioctl order 2026-05-14 15:29:24 +02:00
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