Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 20:23:49 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/usb ucom.c ucomvar.h
Message-ID:  <200409282023.i8SKNnx8007168@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2004-09-28 20:23:49 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          ucom.c ucomvar.h 
  Log:
  Use generic infrastructure for the ucom driver instead of local stuff.
  
  This changes the naming of USB serial devices to: /dev/ttyU%d and
  /dev/cuaU%d for call-in and call-out devices respectively.  (Please
  notice: capital 'U')
  
  Please also note that we now have .init and .lock devices for USB
  serial ports.  These are not persistent across device removal.  devd(8)
  can be used to configure them on attachment time.
  
  These changes also improve the chances of the system surviving if
  the USB device is unplugged at an inconvenient time.  At least we
  do not rip things apart while there are any threads in the device
  driver anymore.
  
          Remove cdevsw, rely on the tty generic one.
  
          Don't make_dev(), use ttycreate() which does all the magic.
  
          In detach, do close procesing if we ripped things apart
          while the device was open.  Call ttyfree() once we're done
          cleaning up.
  
  Revision  Changes    Path
  1.54      +5 -37     src/sys/dev/usb/ucom.c
  1.6       +0 -2      src/sys/dev/usb/ucomvar.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409282023.i8SKNnx8007168>