Skip to content

ADD: Serial TTY driver and TTY chardev registration#231

Draft
riblanc wants to merge 1 commit into
ri/tty/corefrom
ri/tty/serial
Draft

ADD: Serial TTY driver and TTY chardev registration#231
riblanc wants to merge 1 commit into
ri/tty/corefrom
ri/tty/serial

Conversation

@riblanc

@riblanc riblanc commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

New drivers/tty/serial_tty.zig:

  • Inlined UART 16550 I/O (probe, activate, read, write)
  • TtyDriver backend for serial ports (COM1-COM4)
  • IRQ-driven receive via drain_uart()
  • set_termios for baud rate / line parameter changes

New drivers/tty/tty_cdev.zig:

  • Register /dev/tty0..4 (VGA consoles, major 4, minor 0+)
  • Register /dev/ttyS0..3 (serial ports, major 4, minor 64+)

Deleted drivers/serial_port/serial.zig (replaced by serial_tty).

Rewired CI shell and logger to use serial_tty instead of the deleted Serial driver.


Depends-on: #230

@riblanc riblanc self-assigned this Feb 27, 2026
@riblanc riblanc added feature New feature or request tty labels Feb 27, 2026
@mergify

mergify Bot commented Feb 27, 2026

Copy link
Copy Markdown

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 ⛓️ Depends-On Requirements

Waiting for

This rule is failing.

Requirement based on the presence of Depends-On in the body of the pull request

New drivers/tty/serial_tty.zig:
- Inlined UART 16550 I/O (probe, activate, read, write)
- TtyDriver backend for serial ports (COM1-COM4)
- IRQ-driven receive via drain_uart()
- set_termios for baud rate / line parameter changes..

New drivers/tty/tty_cdev.zig:
- Register /dev/tty0..4 (VGA consoles, major 4, minor 0+)
- Register /dev/ttyS0..3 (serial ports, major 4, minor 64+)

Deleted drivers/serial_port/serial.zig (replaced by serial_tty).

Rewired CI shell and logger to use serial_tty instead of the
deleted Serial driver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request tty

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant