cvs commit: src/sys/dev/usb ucom.c ucomvar.h

Poul-Henning Kamp phk at
Tue Sep 28 13:23:49 PDT 2004

phk         2004-09-28 20:23:49 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          ucom.c ucomvar.h 
  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

More information about the cvs-src mailing list