summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umodem.c
Commit message (Collapse)AuthorAgeFilesLines
* Use a taskqueue to handle port status changes.akiyama2005-01-311-1/+18
| | | | | | Calling ucom layer directly from interrupt context make a panic. MFC after: 1 week
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* We don't need vnode.h, but do need uio.h in these files. vnode.himp2004-12-131-1/+1
| | | | | | shouldn't be included in drivers, generally, so remove them. OK'd by: phk
* Overhaul ucom serial driver by using generic stuff instead of homerolledphk2004-09-171-3/+4
| | | | all over the place.
* MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.imp2004-06-271-2/+2
|
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* check interface numbersanpei2004-05-301-3/+5
| | | | | | | | Kyocera AH-K3001V has 2 data interface. But we could use only one interface(id = 0) PR: kern/66779 Submitted by: Togawa Satoshi <toga@puyo.org>
* add support Kyocera AH-K3001V (cellular phone in Japan)sanpei2004-05-211-6/+32
| | | | | | PR: kern/66779 Submitted by: Togawa Satoshi <toga@puyo.org> MFC after: 1 week
* MFNetBSD (umodem.c 1.46):sanpei2004-05-141-2/+2
| | | | URL updates
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* Fix duplicate sc_dying usage.akiyama2003-03-091-5/+2
| | | | | All drivers which depend on ucom interfaces should use only one sc_dying.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* 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-091-817/+411
| | | | | | | | ucom. This gets my Sanyo SCP-4900 working. Approved by: joe
* Use the hw.usb sysctl tree instead of debug.usb.joe2002-08-081-1/+2
| | | | Requested by: imp
* Replace the FOO_DEBUG definitions with USB_DEBUG, and switch thejoe2002-07-311-2/+2
| | | | | | debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the different usb parts to produce debug data.
* Get bored with hard coded debug level variables and introduce a debug.usbjoe2002-07-311-0/+3
| | | | | | sysctl tree for tweaking them real-time. Reviewed by: iedowse
* Make this compile again after the recent NetBSD mergeimp2002-04-021-2/+2
|
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-1/+1
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* MFNetBSD: Update many URLs.joe2002-04-011-1/+2
|
* Use ANSI prototypes and declarations.joe2002-04-011-69/+22
| | | | Update $NetBSD$ idents to better reflect reality.
* Be more specific about when block major numbers disappeared fromjoe2002-03-111-1/+1
| | | | the cdev switch.
* Re-add bmaj to the cdevsw's, but don't compile it in on -current.joe2002-02-151-0/+3
| | | | | This makes the code more portable between -current, -stable and the other BSDs.
* Sync with NetBSD:joe2002-01-021-3/+3
| | | | | | date: 2000/02/29 21:37:01; author: augustss; state: Exp; Distinguish between device and interface classes. (I finally found a document that said that they were different.)
* NetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)joe2002-01-021-9/+9
| | | | to hide the distinction between struct proc and struct thread.
* KSE Milestone 2julian2001-09-121-9/+9
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Only clear endpoint stall if status was USBD_STALLED.n_hibma2001-09-021-2/+4
| | | | | This avoids panicing the system by unplugging a hub. The interrupt transfer would sometimes arrive after the driver had been removed.
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* Extend kqueue down to the device layer.jlemon2001-02-151-2/+3
| | | | Backwards compatible approach suggested by: peter
* Use suser(9) instead of checking p->p_ucred->cr_uid directly.jhb2001-01-231-1/+1
|
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-0/+4
|
* Make the Ricochet modems work through the USB interface.n_hibma2000-11-011-9/+9
| | | | | Tested by: jim Obtained from: NetBSD
* Bugfix: The data is not stored only in the first cblock, calculate then_hibma2000-10-201-1/+8
| | | | | | | | | | length of the data properly. This should be moved into a tty_subr function. Also, disanle the setting of the CDC_CM_OVER_DATA flag. It breaks some modems. I don't think that ther actually is a modem that needs this. Submitted by: Brad Karp <bkarp@ICSI.Berkeley.EDU>
* Unbreak LINT.n_hibma2000-08-201-1/+1
|
* The modem driver for Communication Device Class, ACM compliant devices.n_hibma2000-07-171-25/+1114
| | | | | | | | | | There is a number of devices that are compliant, of which the 3Com 5605 is has been verified to work. The driver is not perfect yet, but should be able to get you somewhere. The driver was originally written by Lennart Augustsson, but Mike Smith and Mike Meyer <mwm@mired.org> did the porting.
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* Remove 42 unneeded #include <sys/ioccom.h>.phk2000-05-031-1/+0
| | | | | | ioccom.h defines only implementation detail, and should therefore only be included from the #include which defines the ioctl tags, in other words: never include it from *.c
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* OpenBSD has a broken debugger that does not grok static. Use an_hibma2000-04-031-1/+1
| | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like.
* Missed a name change.n_hibma1999-11-181-1/+1
|
* Move the include of device.h into the NetBSD specific section.n_hibma1999-10-081-1/+1
| | | | Submitted by: Guy Helmer <ghelmer@scl.ameslab.gov>
* Make the umodem stub compilen_hibma1999-10-071-1/+1
|
* Major synchronisation with the NetBSD USB stack:n_hibma1999-10-071-0/+1
| | | | | | | | | | | - Some cleanup and improvements in the uhci and ohci drivers - Support for plugging and unplugging devices improved - Now available is bulk transport over OHCI controllers - Resume and suspend have been temporarily been disabled again. Proper support for it is available in the uhci.c and ohci.c files but I have not yet spent the brain cycles to use it. - OpenBSD now uses the USB stack as well - Add FreeBSD tags
* We use device_set_desc_copy, so we do not need to free the copied textn_hibma1999-08-281-1/+0
| | | | manually.
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-6/+1
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* 1) Make debugging more selective.n_hibma1999-04-111-3/+3
| | | | | | | 2) create function usbd_errstr which turns a usbd_status into a sensible error message 3) Change the printf in DPRINTF to logprintf which is a define for log(KERN_DEBUG, x)
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-281-2/+2
| | | | kernel compile
* Textual changesn_hibma1999-01-221-0/+1
|
* Corrected the latent fact that the uhub driver was providing a driver forn_hibma1999-01-141-1/+1
| | | | | the usb device class instead of the uhub devclass. Only a problem with more than one USB host controller.
OpenPOWER on IntegriCloud