Opened 13 years ago

Closed 5 years ago

#35 closed enhancement (fixed)

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)

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 (19)

comment:1 Changed 13 years ago by maxim@…

Summary: Needs a TTY module layerNeeds to be a TTY module layer

comment:2 Changed 12 years ago by diver

Cc: diver added

comment:3 Changed 11 years ago by wkornewald

Summary: Needs to be a TTY module layerImplement a TTY module layer

comment:4 Changed 11 years ago by wkornewald

Type: bugenhancement

comment:5 Changed 11 years ago by jackburton

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

comment:6 Changed 11 years ago by axeld

Component: - ApplicationsDrivers

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 11 years ago by axeld

Owner: maxim@… deleted

comment:8 Changed 11 years ago by jonas.kirilla

Cc: jonas.kirilla added

comment:9 Changed 9 years ago by modeenf

Component: DriversDrivers/TTY
Version: R1 development

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 8 years ago by jonas.kirilla

Cc: jonas.kirilla removed

comment:11 Changed 8 years ago by mmadia

Description: modified (diff)
Milestone: R1R1/beta1
Priority: normalblocker

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

comment:12 Changed 8 years ago by siarzhuk

Cc: siarzhuk added

comment:13 Changed 8 years 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 8 years ago by diver

Version: R1/pre-alpha1R1/Development

comment:15 Changed 8 years 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 8 years ago by mmlr

Owner: set to mmlr
Status: newin-progress

Going to accept the ticket for now.

comment:17 Changed 7 years ago by andreasf

Cc: andreasf added

comment:18 Changed 7 years ago by andreasf

Blocking: 5754 added

comment:19 Changed 5 years ago by pulkomandy

Resolution: fixed
Status: in-progressclosed

As discussed on the ML, the only remaining part of this is #5754. Marking this as fixed.

Note: See TracTickets for help on using tickets.