summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/serial/uvisor.c
Commit message (Collapse)AuthorAgeFilesLines
* Style change.hselasky2011-11-121-1/+2
| | | | | | | | | | | | - Make it easier to port the USB code to other platforms by only using one set of memory functions for clearing and copying memory. None of the memory copies are overlapping. This means using bcopy() is not required. - Fix a compile warning when USB_HAVE_BUSDMA=0 - Add missing semicolon in avr32dci. - Update some comments. MFC after: 1 week
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-1/+1
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-241-1/+1
| | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days
* Remove unneeded includes of <sys/linker_set.h>. Other headers that usejhb2011-01-111-1/+0
| | | | | | it internally contain nested includes. Reviewed by: bde
* Implement ucom_set_pnpinfo_usb() providing ttyname and port numbern_hibma2010-11-051-0/+2
| | | | | | | | | | | | | | information through devd. My E220 now produces the notification (1 line): +u3g0 at bus=1 hubaddr=1 port=0 devaddr=2 interface=0 \ vendor=0x12d1 product=0x1003 devclass=0x00 devsubclass=0x00 \ sernum="" release=0x0000 intclass=0xff intsubclass=0xff \ ttyname=U0 ttyports=2 on uhub0 Note: serial/ufoma and net/uhso still provide port number and tty name (uhso only) information through sysctls, which should now be removed. Reviewed by: hpselasky
* - Simplify the way unit/subunit allocation is done in ucom.n_hibma2010-11-031-1/+1
| | | | | | | | | | | | | | | | | | - hw.usb.ucom.cons_unit is now split into hw.usb.ucom.cons_unit/...cons_subunit. Note: The tunable/sysctl hw.usb.ucom.cons_unit needs to be reviewed if a) a console was defined a USB serial devices, and a USB device with more than 1 subunit is present, and this device is attached before the device functioning as a console or b) a console was defined on a USB device with more than 1 subunit Reviewed by: hps MFC after: 2 weeks
* Add missing MODULE_VERSION() definitions, this resolves problems aroundthompsa2010-09-011-0/+1
| | | | | | | | duplicate module loads. PR: usb/125736 Submitted by: danger, mm Reviewed by: hselasky
* Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this hadthompsa2010-04-221-2/+2
| | | | | | the illusion of a tunable setting but was always turned on regardless. MFC after: 1 week
* Add new uvisor(4) device ID.thompsa2010-03-111-0/+1
| | | | PR: usb/144201
* It appears that some UVISOR devices do not handle when the clear stall commandthompsa2010-03-111-5/+0
| | | | | | | | | is issued at the beginning of the initial IN/OUT data transfers. Reason unknown, probably firmware fault. Now the stall is only cleared on data transfer errors. PR: usb/144199 Submitted by: Hans Petter Selasky
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-031-7/+0
| | | | | | their software. Obtained from: NetBSD
* Use macros to strip off USB_VENDOR_ and USB_PRODUCT_ from some id tables to makethompsa2009-12-261-26/+28
| | | | them more compact and readable.
* - fix uvisor support, mostly correct buffer sizes used.alfred2009-08-241-11/+35
| | | | | | | - correct device info flag for SONY Cli NR70V Reported by: Marc Fonvieille Submitted by: hps
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-25/+44
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.thompsa2009-06-151-32/+32
|
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-291-6/+6
|
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-281-29/+29
|
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-211-2/+2
| | | | Submitted by: Hans Petter Selasky
* - rename usb2_mode to usb_mode [1]thompsa2009-05-211-1/+1
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* MFp4 //depot/projects/usb@159909thompsa2009-04-051-6/+6
| | | | | | | | | | | | | - make usb2_power_mask_t 16-bit - remove "usb2_config_sub" structure from "usb2_config". To compensate for this "usb2_config" has a new field called "usb_mode" which select for which mode the current xfer entry is active. Options are: a) Device mode only b) Host mode only (default-by-zero) c) Both modes. This change was scripted using the following sed script: "s/\.mh\././g". - the standard packet size table in "usb_transfer.c" is now a function, hence the code for the function uses less memory than the table itself. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb @159375,159376,159377thompsa2009-03-201-6/+6
| | | | | | Further remove dependancy towards Giant. Submitted by: Hans Petter Selasky
* Rename the ushub device class back to uhub as it was in the old usb stack,thompsa2009-03-021-1/+1
| | | | | | moused(8) looks for "uhub/ums" to decide if needs to load the module. Reported by: Garrett Cooper
* Move the serial drivers from Giant to using their own mutexs.thompsa2009-03-021-3/+8
| | | | Tested with: u3g, ubser, uplcom
* Move the new USB stack into its new home.thompsa2009-02-231-0/+610
OpenPOWER on IntegriCloud