summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ulpt.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDn_hibma2000-07-171-6/+6
| | | | versions.
* Sync with NetBSD:n_hibma2000-05-141-3/+3
| | | | Textual changes.
* 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
* OpenBSD has a broken debugger that does not grok static. Use an_hibma2000-04-031-5/+5
| | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like.
* Synchronisation with NetBSD 1999/11/27n_hibma1999-11-281-4/+4
| | | | | | | | | | | | | | | | | - more req[uest]->xfer changes. - get the corresponding NetBSD Id's right ohci.c - move untimeout above print statement - remove usb_delay that panics the system (tsleep in intr context) when ohcidebug > 5. ugen.c - create the devices for endpoints with make_dev. uhub.c - change from using usbdebug to uhubdebug - add more debugging statements
* Revoke the vnodes on detach. This avoids the crashes people have seenn_hibma1999-11-211-1/+10
| | | | | | | 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.
* Synchronisation with NetBSD as of 1999/11/16:n_hibma1999-11-171-37/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleaning up the code: - Declare many functions static - Change variable names to make them more self explanatory - Change usbd_request_handle -> 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.
* Rename remove_dev() to destroy_dev().phk1999-11-081-2/+2
| | | | Nagged about by: msmith
* ulpt.c and ums.c already uses make_dev(), so there's no need to use thepeter1999-11-081-2/+1
| | | | (presently broken) DEV_DRIVER_MODULE(). Use DRIVER_MODULE() directly.
* Major synchronisation with the NetBSD USB stack:n_hibma1999-10-071-68/+202
| | | | | | | | | | | - 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
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+0
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* We use device_set_desc_copy, so we do not need to free the copied textn_hibma1999-08-281-1/+1
| | | | manually.
* Remove cmaj and bmaj args from DEV_DRIVER_MODULE.phk1999-07-041-2/+1
|
* This commit should be a extensive NO-OP:phk1999-05-301-5/+20
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* 1) Add URL for printer class specificationn_hibma1999-05-301-12/+8
| | | | | | 2) Change name of UE_IN to UE_DIR 3) Enable printing of the Printer Id string 4) Clean up debugging output while we are at it.
* Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference betweenphk1999-05-091-1/+1
| | | | a major number for a dev_t.
* Continue where Julian left off in July 1998:phk1999-05-071-2/+2
| | | | | | | | | | | | | | Virtualize bdevsw[] from cdevsw. bdevsw() is now an (inline) function. Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention to the order of the cmaj/bmaj arguments!) Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE (ditto!) (Next step will be to convert all bdev dev_t's to cdev dev_t's before they get to do any damage^H^H^H^H^H^Hwork in the kernel.)
* 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-4/+4
| | | | | | | 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)
* Cosmetical changes.n_hibma1999-03-221-4/+4
|
* 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.
* Changed DRIVER_MODULE to CDEV_DRIVER_MODULEn_hibma1999-01-121-3/+4
|
* Added file handling to ulpt (USB printer) drivern_hibma1999-01-111-2/+39
|
* Sync with NetBSD sources. Almost there. Mostly style fixes.n_hibma1999-01-101-3/+2
|
* Major synchronisation with NetBSD USB coden_hibma1999-01-071-133/+44
|
* Added Id to all filesn_hibma1998-12-141-0/+1
|
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-0/+502
OpenPOWER on IntegriCloud