<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/usb/ums.c, branch release/4.6.2_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F4.6.2_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F4.6.2_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2002-08-14T06:57:09Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2002-08-14T06:57:09Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2002-08-14T06:57:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=72b7f92e6edf4375820f765b41697b3208ce7fe7'/>
<id>urn:sha1:72b7f92e6edf4375820f765b41697b3208ce7fe7</id>
<content type='text'>
'RELENG_4_6_2_RELEASE'.

This commit was manufactured to restore the state of the 4.6.2-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</content>
</entry>
<entry>
<title>MFC: Remove the use of the __P() macro</title>
<updated>2000-10-31T23:23:30Z</updated>
<author>
<name>Nick Hibma</name>
<email>n_hibma@FreeBSD.org</email>
</author>
<published>2000-10-31T23:23:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c5eb68505f7d993f7c693ba2690280efbe2f0f6f'/>
<id>urn:sha1:c5eb68505f7d993f7c693ba2690280efbe2f0f6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: Update Lennart's e-mail address.</title>
<updated>2000-07-02T11:44:00Z</updated>
<author>
<name>Nick Hibma</name>
<email>n_hibma@FreeBSD.org</email>
</author>
<published>2000-07-02T11:44:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2282bcf521d487f9f824f8637de3e4e191fffe16'/>
<id>urn:sha1:2282bcf521d487f9f824f8637de3e4e191fffe16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: static -&gt; Static in order to be more OpenBSD friendly.</title>
<updated>2000-05-07T14:22:47Z</updated>
<author>
<name>Nick Hibma</name>
<email>n_hibma@FreeBSD.org</email>
</author>
<published>2000-05-07T14:22:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bfaaf3763588905a5f69274d7ffcaefa99e1ce76'/>
<id>urn:sha1:bfaaf3763588905a5f69274d7ffcaefa99e1ce76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More USB ethernet tweaks:</title>
<updated>2000-01-20T07:38:33Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>2000-01-20T07:38:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a6d9a40e8163f779fb153df81631a6ab9f441bb4'/>
<id>urn:sha1:a6d9a40e8163f779fb153df81631a6ab9f441bb4</id>
<content type='text'>
- Sync ohci, uhci and usbdi modules with NetBSD in order to obtain the
  following improvements:
        o New USBD_NO_TSLEEP flag can be used in place of UQ_NO_TSLEEP
          quirk. This allows drivers to specify busy waiting only for
          certain transfers (namely control transfers for reading/writing
          registers and stuff).
        o New USBD_FORCE_SHORT_XFER flag can be used to deal with
          devices like the ADMtek Pegasus that sense the end of bulk OUT
          transfers in a special way (if a transfer is exactly a multiple
          of 64 bytes in size, you need to send an extra empty packet
          to terminate the transfer).
        o usbd_open_pipe_intr() now accepts an interval argument which
          can be used to change the rate at which the interrupt callback
          routine is invoked. Specifying USBD_DEFAULT_INTERVAL uses the
          value specified in the device's config data, but drivers can
          override it if needed.
- Change if_aue to use USBD_FORCE_SHORT_XFER for packet transmissions.
- Change if_aue, if_kue and if_cue to use USBD_NO_TSLEEP for all
  control transfers. We no longer force the non-tsleep hack for
  bulk transfers since these are done asynchronously anyway.
- Removed quirk entry fiddling from if_aue and if_kue since we don't
  need it anymore now that we have the USBD_NO_TSLEEP flag.
- Tweak ulpt, uhid, ums and ukbd drivers to use the new arg to
  usbd_open_pipe_intr().
- Add a flag to the softc struct in the ethernet drivers to indicate
  when a device has been detached, and use this flag to perform
  tests to prevent the drivers from trying to do control transfers
  if this is the case. This is necessary because calling if_detach()
  with INET6 enabled will eventually result in a call to the driver's
  ioctl() routine to delete the multicast groups on the interface,
  which will result in attempts to perform control transfers. (It's
  possible this also happens even without INET6 support enabled.) This
  is pointless since we know that if the detach method has been called,
  the hardware has been unplugged.
- Changed watchdog timeout routines to just call the driver init routines
  to initialize the device states without trying to close and re-open the
  pipes. This is partly because we don't want to frob things at interrupt
  context, but also because this doesn't seem to work right and I don't
  want to panic the system just because a USB device may have stopped
  responding.
- Fix aue_rxeof() to be a little smarter about detecting when a double
  transfer is needed. Unfortunately, the design of the chip makes it hard
  to get this exactly right. Hopefully, this will go away once either
  Nick or Lennart finds the bug in the uhci driver that makes this ugly
  hack necessary.
- Also sync usbdevs with NetBSD.
</content>
</entry>
<entry>
<title>Revoke the vnodes on detach. This avoids the crashes people have seen</title>
<updated>1999-11-21T17:25:30Z</updated>
<author>
<name>Nick Hibma</name>
<email>n_hibma@FreeBSD.org</email>
</author>
<published>1999-11-21T17:25:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=88ea580e343e33a62cd5847bf1c379064f6c5421'/>
<id>urn:sha1:88ea580e343e33a62cd5847bf1c379064f6c5421</id>
<content type='text'>
when moused was still running when the mouse was detached.

Convert uhid to use make_dev while I am there. Ugen still needs to be
converted.
</content>
</entry>
<entry>
<title>Synchronisation with NetBSD as of 1999/11/16:</title>
<updated>1999-11-17T22:33:51Z</updated>
<author>
<name>Nick Hibma</name>
<email>n_hibma@FreeBSD.org</email>
</author>
<published>1999-11-17T22:33:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3241be755096a340cd6ba126b6d88e362ad03b71'/>
<id>urn:sha1:3241be755096a340cd6ba126b6d88e362ad03b71</id>
<content type='text'>
Cleaning up the code:
- Declare many functions static
- Change variable names to make them more self explanatory
- Change usbd_request_handle -&gt; usbd_xfer_handle
- Syntactical changes
- Remove some unused code
- Other KNF changes

Interrupt context handling
- Change delay to usbd_delay_ms were possible (takes polling mode into
  account)
- Change detection mechanism for interrupt context

Add support for pre-allocation DMA-able memory by device driver

Add preliminary support for isochronous to the UHCI driver (not for OHCI
yet).

usb.c, uhci.c, ohci.c
- Initial attempt at detachable USB host controllers
- Handle the use_polling flag with a lttle more care and only set it if
we are cold booting.

usb.c, uhci.c ohci.c, usbdi.c usbdi_util.c usb_subr.c
- Make sure an aborted pipe is marked as not running.
- Start queued request in the right order.
- Insert some more DIAGNOSTIC sanity checks.
- Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN.

usb.c, usb_subr.c
- Add an event mechanism so that a userland process can watch devices
  come and go.

ohci.c
- Handle the case when a USB transfer is so long that it crosses two
  page (4K) boundaries.  OHCI cannot do that with a single TD so we make
  a chain.

ulpt.c
- Use a bigger buffer when transferring data.
- Pre-allocate the DMA buffer.  This makes the driver slightly more
  efficient.
- Comment out the GET_DEVICE_ID code, because for some unknown reason it
  causes printing to fail sometimes.

usb.h
- Add a macro to extract the isoc type.
- Add a macro to check whether the routine has been entered after splusb
  and if not, complain.

usbdi.c
- Fix a glitch in dequeueing and aborting requests on interrupt pipes.
- Add a flag in the request to determine if the data copying is done by
  the driver or the usbdi layer.
</content>
</entry>
<entry>
<title>The Qtronix keyboard has a built in PS/2 port for a mouse.</title>
<updated>1999-11-08T23:58:33Z</updated>
<author>
<name>Nick Hibma</name>
<email>n_hibma@FreeBSD.org</email>
</author>
<published>1999-11-08T23:58:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0b0f3f6c3d53f48cf165b02ec19a85ed73a13c90'/>
<id>urn:sha1:0b0f3f6c3d53f48cf165b02ec19a85ed73a13c90</id>
<content type='text'>
It however posts a bogus button up event once in a while. Whenever
we receive dx=dy=dz=buttons=0 we postpone adding it to the queue for
50msecs with a timeout. If in the meantime something else is posted
the event is ignored.

This avoids the problem Nik Sayer reported. He noticed that X windows
would drop and pick up a window once in a while.

Thanks, Nik, for supplying me with the keyboard to fix the problem!
</content>
</entry>
<entry>
<title>Rename remove_dev() to destroy_dev().</title>
<updated>1999-11-08T07:44:01Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>1999-11-08T07:44:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=44d1184e81b347d864ad05c21b5c56b1a2f27376'/>
<id>urn:sha1:44d1184e81b347d864ad05c21b5c56b1a2f27376</id>
<content type='text'>
Nagged about by:        msmith
</content>
</entry>
<entry>
<title>ulpt.c and ums.c already uses make_dev(), so there's no need to use the</title>
<updated>1999-11-08T07:10:48Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-11-08T07:10:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bda20b64e4cecefbaa90ecea08a7897a6d351362'/>
<id>urn:sha1:bda20b64e4cecefbaa90ecea08a7897a6d351362</id>
<content type='text'>
(presently broken) DEV_DRIVER_MODULE().  Use DRIVER_MODULE() directly.
</content>
</entry>
</feed>
