cvs commit: src/sys/sys tty.h src/sys/kern tty.c

Poul-Henning Kamp phk at FreeBSD.org
Tue Sep 28 12:33:49 PDT 2004


phk         2004-09-28 19:33:49 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              tty.h 
    sys/kern             tty.c 
  Log:
  Add functions to create and free the "tty-ness" of a serial port in a
  generic way.  This code will allow a similar amount of code to be
  removed from most if not all serial port drivers.
  
          Add generic cdevsw for tty devices.
  
          Add generic slave cdevsw for init/lock devices.
  
          Add ttypurge function which wakes up all know generic sleep
          points in the tty code, and calls into the hw-driver if it
          provides a method.
  
          Add ttycreate function which creates tty device and optionally
          cua device.  In both cases .init/.lock devices are created
          as well.
  
          Change ttygone() slightly to also call the hw driver provided
          purge routine.
  
          Add ttyfree() which will purge and destroy the cdevs.
  
          Add ttyconsole mode for setting console friendly termios
          on a port.
  
  Revision  Changes    Path
  1.233     +233 -6    src/sys/kern/tty.c
  1.95      +7 -0      src/sys/sys/tty.h


More information about the cvs-all mailing list