summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Add a temporary workaround to the panic on boot with hub attached andimp2004-09-221-0/+1
| | | | | | | | | | | | | | | | | | | | | panic on hub detach bugs that have been reported. This work around detaches the device before deleting it. This changes the detach order from in-order to pre-order. This avoids uhub's deleting the children after its subdevs has been deleted. This is only a workaround. This leads to a strange condition in the device tree where attached devices are children of detached ones. I really don't know what that's supposed to mean, but does violate my sense of POLA. Fortunately, the violation is short lived, which is why I'm going ahead and committing the work around. # We really need to consider life w/o the multiple nested layers of # compatibility macros. They make finding bugs like this *MUCH* # harder. Patch by: iadowse MT5 before: next_release(5.3-BETA5) (unless someting better comes along)
* add '/* Panasonic products */' line(I removed it)sanpei2004-09-201-0/+1
|
* Add Sitecom's LN-029 USB 2.0 Ethernet adapter.iedowse2004-09-182-0/+5
|
* Fix compilation again.phk2004-09-171-3/+0
|
* Overhaul ucom serial driver by using generic stuff instead of homerolledphk2004-09-175-440/+154
| | | | all over the place.
* Use ttyalloc() instead of ttymalloc(NULL)phk2004-09-171-1/+1
|
* Add comments about why we're freeing subdevs (which is completelyimp2004-09-091-8/+11
| | | | | | | | | | redundant at this point and should be retired). Don't free subdevs if we don't attach any devices. This was leaving stale device_t's around. Don't touch the device if it isn't attached since the name isn't meaningful then. Switch from strncpy (properly used) to strlcpy. From a patch submitted by Peter Pentchev
* We don't need a uhub_child_detached() routine now that we don't detachimp2004-09-091-34/+2
| | | | | | | | | | | | | | device_t instances when no driver attaches. They are left around, and we need to remember them. # The usbd_device_handle->subdevs[] array likely is completely bogus # at this point, but one change at a time, since its removal will need # to have similar code replace it extracted from newbus. Part of the patch submitted by Peter Pentchev after an excellent analysis of the underlying problems. MFC After: 1 week
* For the moment, back out my back out of green's 1.87 commit. While itimp2004-09-091-11/+9
| | | | | | | | produced better results for a test program I had here, it didn't substantially change the number of crashes that I saw. Both the old code and the new code seemed to produce the same crashes from the usb layer. Since the new code also solves a close() crash, go with it until the underlying issues wrt devices going away can be addressed.
* Back out 1.88.imp2004-09-081-9/+11
| | | | | | | | | | | | | The reference counts are there to block detach until the sleepers in read/write/ioctl have gotten out, not to prevent the open device from going away. Restore the old behavior so that we have a chance to wake up sleepers when the usb device goes away, so they can properly return EIO back to the caller when this happens. Otherwise, we have a guarnateed panic waiting to happen when a device detaches with an active read channel. This should be merged to 5 asap.
* Use %zu to format size_t.des2004-09-051-2/+2
|
* Device driver for the Cypress CY7C637xx and CY7C640/1xx families of USBdes2004-09-051-0/+634
| | | | | | | | | | | | | | | | to RS232 bridges, such as the one found in the DeLorme Earthmate USB GPS receiver (which is the only device currently supported by this driver). While other USB to serial drivers in the tree rely heavily on ucom, this one is self-contained. The reason for that is that ucom assumes that the bridge uses bulk pipes for I/O, while the Cypress parts actually register as human interface devices and use HID reports for configuration and I/O. The driver is not entirely complete: there is no support yet for flow control, and output doesn't seem to work, though I don't know if that is because of a bug in the code, or simply because the Earthmate is a read- only device.
* Add support Western Digital External USB HDDsanpei2004-09-042-1/+10
| | | | | | | | ONSPEC entry are sorted PR: kern/71031 Submitted by: Johann Hugo <jhugo@icomtek.csir.co.za> MFC after: 1 week
* Add support Nikon CoolScan LS40 EDsanpei2004-09-032-1/+4
| | | | | | PR: kern/71139 Submitted by: Pierre DAVID <Pierre.David@crc.u-strasbg.fr> MFC after: 1 week
* Add support Qualcomm CDMA modemsanpei2004-09-032-0/+3
| | | | | | PR: kern/71043 Submitted by: Tomas Krivanek <tom@atack.cz> MFC after: 1 week
* add support ELECOM UC-SGT(minor change version)sanpei2004-09-032-0/+2
| | | | | | | | http://www2.elecom.co.jp/products/UC-SGT.html PR: [FreeBSD-users-jp 80725] Submitted by: NAKAMURA Kazushi <kaz@kobe1995.net> MFC after: 1 week
* Fix two cases where a successful return from usbd_transfer() wouldiedowse2004-08-291-2/+2
| | | | | | be treated as an error and cause a transfer to be freed twice. This can probably only happen at boot time when transfers are processed synchronously.
* Correct capitalization of DeLorme Publishing.des2004-08-261-1/+1
|
* 86 new vendor ID's from USB.org, and 3 corrections of existing vendor ID's.obrien2004-08-192-9/+88
|
* Tweak the compatibility macros a little so that the device printing isimp2004-08-1515-28/+29
| | | | moved into them.
* Use the USBD_FORCE_SHORT_XFER flag when setting up transmit transfers.iedowse2004-08-151-1/+2
| | | | | | | | | Without this, the device cannot detect the end of ethernet packets whose size is a multiple of the USB packat size. PR: kern/70474 Submitted by: Andrew Thompson <andy@fud.org.nz> MFC after: 1 week
* Next step in making usb more newbus:imp2004-08-143-64/+50
| | | | | | | | | | | | | o reprobe children when a new driver is added to uhub o fix the usbd_probe_and_attach to set the ivars to a malloc'd area, as well as freeing the ivars on child destruction. o Don't delete children that don't attach. Evidentally, the need to do this is a common misconception. o minor formatting foo that may violate style(9) at the moment, but keeps the diffs against my p4 tree smaller. This does not solve the ugen gobbling things up problem, but the fixes I have for that expose bugs in other parts of the tree...
* add support for SanDisk Cruzer Mini 256MB USB 2.0 Flash Drivesanpei2004-08-122-0/+5
| | | | | | PR: kern/65438 Submitted by: Peter D. Quilty <pdquilty@adelphia.net> MFC after: 1 week
* add support Sitecom CN-311 usb flash reader(aka SIIG_WINTERREADER)sanpei2004-08-122-0/+5
| | | | | | PR: kern/64722 Submitted by: Thiemo Nordenholz <nz@thiemo.net> MFC after: 1 week
* Mark USB ethernet devices as IFF_NEEDSGIANT, since the USB frameworkrwatson2004-08-116-6/+12
| | | | | | | | | if_start routines cannot currently be entered without Giant. When the kernel is running with debug.mpsafenet != 0, this will defer if_start execution to a task queue thread holding Giant, which may introduce additional latency, but avoid incorrect execution. Suggested by: dfr
* Add support Sony Handycam TRV-30 memory stick slotsanpei2004-08-082-0/+5
| | | | | | PR: kern/69915 Submitted by: Christian Gusenbauer <c47g@gmx.at> MFC after: 1 week
* Add support to Sony Ericsson USB Cable(Susteen USB Data Cable)sanpei2004-08-082-0/+6
| | | | | | PR: kern/66416 Submitted by: Fredrik Lindberg <fliREMOVEME@shapeshifter.se> MFC after: 1 week
* Add support for Belkin F5U409 serial-usb adaptersanpei2004-08-072-1/+3
| | | | | PR: kern/69804 Submitted by: Dan Nelson <dnelson@allantgroup.com>
* Reinstate a usb_transfer_complete() call that got lost in theiedowse2004-08-021-0/+1
| | | | previous revision.
* Make the USB subsystem unloadable and detachable, though currentlyiedowse2004-08-0211-76/+158
| | | | | a significant amount of memory may be leaked each time a host controller is detached.
* When searching for a suitable block of memory on the free list,iedowse2004-08-021-1/+2
| | | | | | | | skip blocks that are too big by a factor of two or greater. This avoids some cases of extremely inefficient memory use that can occur when large (e.g. 64k) blocks on the free list get used when allocating a 4k chunk of 64-byte fragments. Because fragments have their own free list, the 60k difference got lost forever every time.
* Attempt to follow the correct procedure for synchronising with theiedowse2004-08-024-7/+83
| | | | | | | system BIOS to disable legacy device emulation as per the "EHCI Extended Capability: Pre-OS to OS Handoff Synchronisation" section of the EHCI spec. BIOSes that implement legacy emulation using SMIs are supposed to disable the emulation when this procedure is performed.
* Implement basic support for EHCI interrupt pipes. This is unlikelyiedowse2004-08-012-11/+283
| | | | | | | | to be particularly correct or optimal, but it seems to be enough to allow the attachment of USB2 hubs and USB2 devices connected via USB2 hubs. None of the split transaction support is implemented in our USB stack, so USB1 peripherals will definitely not work when connected via USB2 hubs.
* Remove redundant inclusion of bus_if.h. It isn't needed in this file, asimp2004-07-221-1/+0
| | | | sys/bus.h includes it.
* MFp4:imp2004-07-221-30/+29
| | | | | | | Improve child_detached a little and make it conform better to style(9). Also, improve comment about what we'll be doing in the future about driver_added. Soon it will be possible to kldload usb drivers and have them attach w/o a need to disconnect/reconnect them.
* Identify VIA EHCI root hubs and at least one VIA USB2.0 controller.benno2004-07-191-0/+9
|
* Diff reduction to NetBSD.le2004-07-191-5/+6
| | | | | | | usbdi.c rev. 1.104, author: mycroft ugen_isoc_rintr() may recycle the xfer immediately. Therefore, we avoid touching the xfer after calling the callback in usb_transfer_complete(). From PR 25960.
* Diff reduction to NetBSD.le2004-07-192-4/+2
| | | | | | | | ehci.c rev. 1.69, author: mycroft uhci.c rev. 1.179, author: mycroft hcpriv is not actually used here. Remove references to it. Obtained from: NetBSD
* Add support System TALKS Inc. SGC-X2ULsanpei2004-07-182-0/+5
| | | | | PR: FreeBSD-users-jp/80137 Submitted by: HORIO Shinsuke <shin@happynet.co.jp>
* Preparation commit for the tty cleanups that will follow in the nearphk2004-07-152-6/+6
| | | | | | | | | future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming.
* MFNetBSD.le2004-07-151-6/+6
| | | | | | | | | | | rev. 1.67, author: mycroft Fix a byte order error. rev. 1.68, author: mycroft Adjust some silliness that was causing us to do extra work for "frame list rollover" interrupts, which we pretty much ignore. Obtained from: NetBSD
* Remove even more references to generating usbdevs_data.h, et al.imp2004-07-121-9/+9
| | | | Noticed by: njl
* Remove the instructions for regenerating usbdevs.h: that's now noimp2004-07-121-13/+0
| | | | longer necessary.
* Add device ID for atuwi USB wlan driver, Linksys WUSB11 v2.8 wireless adapter.sanpei2004-07-041-1/+3
| | | | | | | (Atmel at76c503a http://vitsch.net/bsd/atuwi) PR: kern/68465 Submitted by: Suihong Liang <s2liang@uwaterloo.ca>
* Unbreak -O2 build: initialize nstatus to avoid uninitialized warning.marcel2004-07-031-1/+3
|
* MFNetBSD.le2004-07-011-2/+3
| | | | | | | rev 1.66, author: mycroft Fix an endianness problem (EHCI_NULL was being double-swapped). Obtained from: NetBSD
* MFNetBSD.le2004-07-011-2/+5
| | | | | | | | rev. 1.68, author: mycroft Ignore a port error that happens to come in at the same time as a connect status change. Some root hubs seem to report both. Obtained from: NetBSD
* Add support to the uftdi driver for Intrepid Control Systems' vehiclebrooks2004-07-013-1/+27
| | | | | | | | | | | | | | | bus interfaces. These interfaces use the FTDI chipset with different Vendor and Product IDs. Add two additional baud rate enumerations. The vehicle bus interfaces use a baud rate of 2000000. Also add 3000000 as it is the other FTDI baud divisor special case. I've commited a slightly different patch from that provided in the PR as I changed the matching code a bit yesterday. Submitted by: Mike Durian <durian at shadetreesoftware.com> PR: kern/67357
* Product and vendor ids for SIIG US2308 USB to Serial adaptor.brooks2004-07-012-17/+41
| | | | Tested against: rwatson's laptop
* It's not very useful to set a softc refcount around blocking read/writegreen2004-07-011-11/+9
| | | | | | operations when the refcount doesn't protect the opens and closes. Fix this, and don't actually let a time out happen: now ugen(4) devices do not get freed out from under the programs with them open.
OpenPOWER on IntegriCloud