summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
Commit message (Collapse)AuthorAgeFilesLines
* Regenjoe2003-01-202-2/+9
|
* Support for the "Seiko Epson Perfection 1260 scanner".joe2003-01-202-0/+2
| | | | | Submitted by: Michael Lestinsky <michael@lestinsky.de> MFC After: 3 days
* Some USB devices are not prepared to deal with a single byte stringjoe2003-01-141-2/+8
| | | | | | | | | | | descriptor request, which usbd_get_string_desc() uses to get the length of a descriptor. One device for instance returns a full 8 byte long packet instead which confuses the rest of the stack and leads to the USB port being reset. The fix is to instead request two bytes, but not to complain if we only get one. Submitted by: kan MFC after: 3 days
* Make compile cleanly when USB_DEBUG is defined.imp2003-01-121-1/+2
|
* Merge from NetBSD and arrange for FreeBSD's slight differences inimp2003-01-092-817/+423
| | | | | | | | ucom. This gets my Sanyo SCP-4900 working. Approved by: joe
* Retry to get full device descriptor, this let my slow CD Tower device work.davidxu2003-01-081-1/+7
|
* Update to correct NetBSD Idimp2003-01-021-1/+1
|
* Sync to 1.104 of usbdevsimp2003-01-022-2/+18
|
* Add NEODIO TURBOCONNECT (from NetBSD)imp2003-01-021-0/+4
|
* MFNetBSD through 1.42 (to be committed in a moment by me).imp2003-01-021-3/+4
| | | | | o Whitespace nits o NEODIO added
* Do not print the value of sc pointer before is has been ininialized.kan2003-01-021-1/+2
|
* Create debug sysctl nodes if USB_DEBUG is defined.kan2003-01-021-1/+1
| | | | UBSA_DEBUG is inconsistent with other drivers.
* It appears that the SANYO SCP-4900 needs similar quirks to theimp2003-01-011-0/+2
| | | | | | | Metricom Ricochet GS modem. Add them here. # A new umodem appears to be needed to make the sanyo phone work, but that's # more extensive and will come after coordination.
* Sync to usbdevs 1.103imp2003-01-012-2/+18
|
* Add Sanyo SCP-4900 phone. It needs quirks.imp2003-01-011-0/+4
|
* Now that we've 'branched' 5.0, desupport FreeBSD 3.x in this driver. Itimp2003-01-011-29/+1
| | | | appears that NetBSD has already done this in their tree.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-013-3/+3
| | | | especially in troff files.
* When resuming after a system suspend, re-issue the UHCI_CMD_MAXPiedowse2002-12-261-0/+1
| | | | | | | | | | command in case this setting was not saved. Since bandwidth reclamation (-current only) often results in bus activity continuing to the end of every frame, most transfers would fail with IOERROR if this setting is missed. Reviewed by: n_hibma MFC after: 1 week
* Revert part of the last commit. Do not fake-up the cylinders to makedillon2002-12-221-2/+1
| | | | | the sectors fit (at least, don't fake them up any more then they are already faked up).
* Modify the fake cylinders calculation so it is >= the size of the device,dillon2002-12-201-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | not < the size of the device. This avoids geom complaints. Fix a serious bug in the handling of the RS_NO_CLEAR_UA quirk. When we go and insert the test-unit-ready command the umass_cam_quirk_cb() function sets the status as if the READ_CAPACITY command suceeded when, in fact, it did not. This leads to the CAM layer trying to use garbage in the return buffer and panicing the system (or doing other bad things). Add a quirk entry for MSYSTEMS DISK-ON-KEY, which is sold under the Sony brand as a solid state disk-on-key usb device. This device requires several quirks to work properly. Note that the disk-on-key device will not work properly until CAM also gets a quirk entry for it, which has been submitted to the CAM maintainer, and you may have to temporarily uncomment the DELAY() as well. -current does not properly wait for devices to power up so you may also have to temporarily uncomment the DELAY(300000) to make your device work. A solution must be found to that issue. MFC after: 3 days X-MFC note: the quirk support must MFCd before this patch can be
* Fix two bugs in the DMA chaining code for OHCI. The first bug is thatdillon2002-12-201-5/+9
| | | | | | | | | | | | | | | | | | | the dataphysend calculation could only possibly work if the virtual buffer is also physically contiguous. Calculate dataphysend by calculating the ending virtual address first, then converting to a physical address. The second bug applies only to NetBSD and OpenBSD and involves the curlen calculation in the two-contiguous-physical-pages case (which we don't support). Also cleanup the use of the OHIC_PAGE() macro on dataphysend and add a panic if len goes negative (meaning we lost the physical page translation representing the end of the buffer). IMHO the dataphysend is still bokered since it might be misrepresented by shared userland page mappings. The whole section needs to be rewritten to use the virtual address range. MFC after: 3 days
* Ignore IEEE1284 descriptors when looking for bidirectional mode. We don'tdes2002-12-161-2/+2
| | | | | | | really know how to talk IEEE1284, so attaching to that interface makes the printer unusable. Approved by: joe
* MFNetBSD: 1.52-1.55des2002-12-161-4/+17
| | | | | Mostly OpenBSD-related changes. Remove newline from panic string. Remove an unreachable break statement.
* The uftdi driver runs with multiple instances.ticso2002-12-121-5/+0
| | | | | | | | Remove a comment claiming the opposite. Approved by: re (rwatson) gallatin (Mentor) MFC after: 1 week
* MFNetBSD: (partial 1.133)joe2002-12-091-0/+2
| | | | | | | - In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race condition. Approved by: re (rwatson)
* MFNetBSD:joe2002-12-091-5/+0
| | | | | | | date: 2002/09/29 20:59:30; author: augustss; state: Exp; lines: +2 -7 Remove extra call to ohci_rem_ed(). From kern/18448, Takeshi Nakayama. Approved by: re (rwatson)
* Don't corrupt the ED list whilst removing an entry.joe2002-12-091-1/+1
| | | | | Submitted by: Bernd Walter <ticso@cicely8.cicely.de> Approved by: re (rwatson)
* Apply some fixups in the driver_t's.joe2002-11-173-3/+3
| | | | | Submitted by: akiyama MFC after: 3 days
* Use a sysctl for controlling the debugging output.joe2002-11-171-6/+19
| | | | Submitted by: akiyama
* Fix a typo in a console message.joe2002-11-171-1/+1
| | | | | Submitted by: akiyama MFC after: 3 days
* network interface driver changes:sam2002-11-147-37/+13
| | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re
* Reviewed by: n_hibmamr2002-11-081-8/+16
| | | | | | MFC after: 2 weeks fix XPT_CALC_GEOMETRY to fill in some reasonable values. Inspired by aic/sbp.
* Cast a ptrdiff_t value to an int to quiet a warning since we don't supportjhb2002-11-071-1/+2
| | | | %t in the kernel printf yet.
* Packed structures are defined differently in older gcc's, like the onejoe2002-11-061-0/+4
| | | | | currently in -stable. Put the exception into usb.h instead of having it hard coded in the sound code.
* There's no need for a locally defined usb_proc_t when we've gotjoe2002-11-061-10/+3
| | | | usb_proc_ptr that does the same thing.
* Specify the correct protocol for the Olympus C-1 camera. It appearsiedowse2002-11-011-1/+1
| | | | | | | | that this entry was accidentally given the wrong protocol in revision 1.61. PR: kern/42417 Submitted by: "Moriki, Toshiomi" <toshiomi@whi.m-net.ne.jp>
* Check for errors and zero-length transfers in the ulpt_input() inputiedowse2002-10-301-0/+6
| | | | | | | pipe callback function, and just return if these cases are detected. Without these checks, the ulpt driver may cause an infinite loop of failing USB transfers that can hang the whole machine. This makes printing work for me on a HP DJ950C printer.
* Whitespace fixes per style(9)kan2002-10-191-11/+10
| | | | Approved by: obrien
* Add device driver for Belkin F5U103 and compatible USB-to-serial adapters.kan2002-10-081-0/+739
| | | | | Reviewed by: n_hibma Approved by: obrien
* Regen after usbdevs rev. 1.102.kan2002-10-082-0/+30
| | | | | Reviewed by: n_hibma Approved by: obrien
* Add entries for:kan2002-10-081-0/+6
| | | | | | | | | | | Belkin F5U103 Belkin F5U120-PC Hub GoHubs GoCOM232 Peracom single port USB-to-serial adapters. Reviewed by: n_hibma Approved by: obrien
* Some kernel threads try to do significant work, and the default KSTACK_PAGESscottl2002-10-021-2/+2
| | | | | | | | | | | | | doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb
* Gremlins ate my comment!joe2002-09-301-1/+1
| | | | Submitted by: Clive Lin <clive@tongi.org>
* In rev 1.51 of usb_port.h I switched over to using the USB_USE_SOFTINTRjoe2002-09-305-0/+21
| | | | | | | | | | | | | | | code path to fix a bug in the non USB_USE_SOFTINTR path that caused the usb bus to hang and generally misbehave when devices were unplugged. In the process though it also reduced the throughput of usb devices because of a less than optimal implementation under FreeBSD. This commit fixes the non USB_USE_SOFTINTR code in uhci and ohci so that it works again, and switches back to using this code path. The uhci code has been tested, but the ohci code hasn't. It's essentially the same anyway and so I don't envisage any difficulties. Code for uhci submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
* MFNetBSD: Increasre the reset recovery time. (rev 1.69)joe2002-09-271-3/+3
|
* MFNetBSD: Update class codes. (rev 1.68)joe2002-09-271-5/+13
|
* MFNetBSD: Add Bluetooth related classes etc. (rev 1.67)joe2002-09-271-5/+12
|
* MFNetBSD: revision 1.66joe2002-09-271-6/+6
| | | | Get rid of trailing white space.
* s/__attribute__((__packed__))/__packed/galfred2002-09-231-1/+1
|
* Deprecate the USB_SETDEBUG IOCTL as debug levels can now be setjoe2002-09-151-13/+0
| | | | using sysctl.
OpenPOWER on IntegriCloud