Re: [REVIEW] move tty lock/initial up in the stack

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 06/20/04

  • Next message: Poul-Henning Kamp: "Re: [REVIEW] move tty lock/initial up in the stack"
    Date: Sun, 20 Jun 2004 10:50:00 -0600 (MDT)
    To: phk@phk.freebsd.dk
    
    

    In message: <82937.1087721102@critter.freebsd.dk>
                "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
    : In an ideal world the hardware driver would be reduced to just that,
    : a few simple primitives, "start", "config", "open", "close" and a
    : backcall "rint" with received data and modem status changes. This
    : is not too unlike what Marcel have done with uart(4)

    I guess I'm curious how the tty/cua split would be done in this
    scheme.

    Of course I'm reimplementing the Cyclades Z driver to try to use
    uart, which is why I'm getting curious. I don't know if this will
    wind up working or not, but since 95% of the hardware interface is two
    circular buffers in memory, which does seem to map mostly onto
    Marcel's model. Time will tell... I also have porting the stallion
    driver to current. I can do this by a simple hack on the old driver,
    or a rewrite. I'll use my Z experience to decide.

    : The major difference is that serial ports are rapidly headed into
    : the sunset whereas disks are very much a hot topic.

    I suspect that the decline will last for a long time. Many of the usb
    devices that I've seen are really usb to rs232 to thing, so I suspect
    that it is a case of 'Serial ports are dead, long live the serial
    ports'

    : The pty driver is the only really interesting tty driver these days
    : as most terminal access is through sshd, telnetd or xterm.

    There's still a lot of people using ppp for dialup connections, even
    in the day of broadband. I suspect that will be the other large area
    of heavy use.

    : Currently I see two ways to get ptys out form under giant:
    :
    : 1) write an entirely new pty driver which is totally separate
    : from the rest of the tty code (We don't need slip/ppp/netgraph
    : support on ptys anyway).
    :
    : 2) clean up the tty code enough that the pty can be deGiantized,
    : paving the road for the rest of the tty drivers to get the
    : same treatment, should somebody else care enough.

    Are you looking for help on the latter?

    : I havn't quite made up my mind yet, and have resorted to some general
    : polishing while I try to make sense of this stuff. To some extent I
    : already regret getting my fingers dirty over here.

    OK.

    Warner
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Poul-Henning Kamp: "Re: [REVIEW] move tty lock/initial up in the stack"

    Relevant Pages

    • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
      ... opens the "internet" driver...BUT the user installed a "personal firewall"...and what happens is that the "firewall" presents the same "interface" that the "internet driver" presents to applications...so, applications program this no differently...and the OS provides the application with the "firewall", in fact...and the "firewall" passes things onto the real "internet driver"... ... firewall be the executed program and the hardware driver the called item from the firewall? ... It'll have infinite extensibility, perfectly able to accept a GUI shell, other FSs, more DDs, and other extensions, but it'll be shipped with only a text-mode shell and a minimal system. ...
      (alt.lang.asm)
    • Re: FBA driver install order
      ... > If this was hardware driver then PnP would install it by default only after parallel driver was starter and enumerated device ... > Also if this is hardware driver let us see inf file and give us more info about the device it handle. ... installed during FBA, its device key in enum\root was not created. ...
      (microsoft.public.windowsxp.embedded)
    • Re: Epox EP-8RDA3+ motherboard
      ... One quick question - when we talk of a "driver" ... as in 'hardware driver for linux', ... things that require the linux kernel to be ...
      (comp.os.linux.hardware)
    • Re: FBA driver install order
      ... If this was hardware driver then PnP would install it by default only after parallel driver was starter and enumerated device ... At end phase of FBA you can change Start value to 3 or some other required ... Also if this is hardware driver let us see inf file and give us more info about the device it handle. ...
      (microsoft.public.windowsxp.embedded)
    • Re: Accessing peripherals from a managed application
      ... You call the Win32 APIs for serial ports. ... beitman AT applieddata DOT net ... Maybe you open the driver with CreateFile, ... Call on the imported functions to access the hardware. ...
      (microsoft.public.windowsce.app.development)