Ticket #35 (in-progress enhancement)

Opened 7 years ago

Last modified 11 months ago

Implement a TTY module layer

Reported by: maxim@… Owned by: mmlr
Priority: blocker Milestone: R1/beta1
Component: Drivers/TTY Version: R1/Development
Keywords: Cc: diver, siarzhuk, andreasf
Blocked By: Blocking: #5754
Has a Patch: no Platform: All

Description (last modified by mmlr) (diff)

TTY Layer

  1. Rework our current TTY layer into a module
  2. Create an API that fulfills the need of a serial port
    • traditional RS232
    • serial over USB.
  3. Integrate the new API into the serial drivers that are already in our repository,
  4. Make sure everything works as expected.
  5. Until now the serial port was reserved for kernel debugging, but it is now time for proper userland support.

Additional information may be at the haiku ML thread  Drivers on TTY Layer

Change History

comment:1 Changed 7 years ago by maxim@…

  • Summary changed from Needs a TTY module layer to Needs to be a TTY module layer

comment:2 Changed 6 years ago by diver

  • Cc diver added

comment:3 Changed 5 years ago by wkornewald

  • Summary changed from Needs to be a TTY module layer to Implement a TTY module layer

comment:4 Changed 5 years ago by wkornewald

  • Type changed from bug to enhancement

comment:5 Changed 5 years ago by jackburton

Will our tty busmanager be compatible with be's one ?

comment:6 Changed 5 years ago by axeld

  • Component changed from - Applications to Drivers

If it easily can, I would think it should. But it depends a bit on who is going to work on this, of course :-)

comment:7 Changed 5 years ago by axeld

  • Owner maxim@… deleted

comment:8 Changed 5 years ago by jonas.kirilla

  • Cc jonas.kirilla added

comment:9 Changed 3 years ago by modeenf

  • Version set to R1 development
  • Component changed from Drivers to Drivers/TTY

Don't know what a TTY are but there are a component called TTY in tracker. Moving this to that one. This didn't answer my questions.  http://en.wikipedia.org/wiki/Tty

comment:10 Changed 2 years ago by jonas.kirilla

  • Cc jonas.kirilla removed

comment:11 Changed 18 months ago by mmadia

  • Priority changed from normal to blocker
  • Description modified (diff)
  • Milestone changed from R1 to R1/beta1

Setting this as a blocker for entering R1/Beta's.

comment:12 Changed 18 months ago by siarzhuk

  • Cc siarzhuk added

comment:13 Changed 18 months ago by Disreali

FreeBSD recently re-wrote their tty system. Is it worthwhile to borrow code from that?

 http://wiki.freebsd.org/TTYRedesign

comment:14 Changed 18 months ago by diver

  • Version changed from R1/pre-alpha1 to R1/Development

comment:15 Changed 18 months ago by mmlr

  • Description modified (diff)

I've implemented a generic tty module based on the tty driver in hrev39760 and ported over usb_serial to it in hrev39762. The pc_serial (RS232) driver still needs to be ported and the tty driver should now be reworked to use the tty module and only provide the driver specific code that was left out in the generic module. I'm going to work on the tty driver but will leave the pc_serial driver alone. François still wanted to keep backwards compatibility for now and I myself don't have any real serial ports where I could test it on anymore.

comment:16 Changed 18 months ago by mmlr

  • Status changed from new to in-progress
  • Owner set to mmlr

Going to accept the ticket for now.

comment:17 Changed 11 months ago by andreasf

  • Cc andreasf added

comment:18 Changed 11 months ago by andreasf

  • Blocking 5754 added
Note: See TracTickets for help on using tickets.