summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ukbd.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support SUN TYPE 6 USB KEYBOARDsanpei2004-01-031-4/+11
| | | | Submitted by: <schley@cf-wnd.de>
* Make it easier to run this code on RELENG_4.joe2003-10-041-0/+4
| | | | Submitted by: luoqi
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* WARNING: white space diffjmg2003-07-041-21/+21
| | | | | | This code reduces the number of trailing white space to be more in line w/ NetBSD. I don't regenerate usbdevs, saving that for when it really changes.
* Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-291-1/+1
| | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-2/+2
|
* 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-5/+5
| | | | | | 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
* MFNetBSD: ukbd.c (1.52), usbdi.c (1.54), usbdi.h (1.35)joe2002-04-071-2/+4
| | | | | | date: 2000/01/16 09:37:18; author: augustss; Let usbd_set_polling() work on a usbd_device_handle instead of a usbd_interface_handle.
* MFNetBSD: Update many URLs.joe2002-04-011-1/+1
|
* Sync with NetBSD:joe2002-01-021-2/+2
| | | | | | 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.)
* Only clear endpoint stall if status was USBD_STALLED.n_hibma2001-09-021-1/+2
| | | | | This avoids panicing the system by unplugging a hub. The interrupt transfer would sometimes arrive after the driver had been removed.
* First check whether the USB transfer was cancelled before starting ton_hibma2001-09-011-9/+12
| | | | use the data structures related to that keyboard.
* Return consistent key action codes at key press and releaseyokota2001-07-201-1/+1
| | | | | | | | | | events. Otherwise you would see unexpected results if shift or locking keys are defined to give different actions depending on other shift/locking keys' state. Please keep the ukbd module and the kernel in sync, otherwise the USB keyboard won't work after this change. MFC after: 10 days
* Add the device resume method to keyboard drivers.yokota2001-06-301-1/+14
| | | | MFC after: 4 weeks
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-0/+4
|
* Remove unneeded #include <sys/proc.h> lines.phk2000-10-291-1/+0
|
* Remove unneeded #include <machine/clock.h>phk2000-10-151-2/+0
|
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-081-1/+1
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* OpenBSD has a broken debugger that does not grok static. Use an_hibma2000-04-031-62/+62
| | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like.
* Do not include `ukbd.h'; it's not used.yokota2000-01-201-1/+0
| | | | Pointed out by: bde
* More USB ethernet tweaks:wpaul2000-01-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Sync ohci, uhci and usbdi modules with NetBSD in order to obtain the following improvements: o New USBD_NO_TSLEEP flag can be used in place of UQ_NO_TSLEEP quirk. This allows drivers to specify busy waiting only for certain transfers (namely control transfers for reading/writing registers and stuff). o New USBD_FORCE_SHORT_XFER flag can be used to deal with devices like the ADMtek Pegasus that sense the end of bulk OUT transfers in a special way (if a transfer is exactly a multiple of 64 bytes in size, you need to send an extra empty packet to terminate the transfer). o usbd_open_pipe_intr() now accepts an interval argument which can be used to change the rate at which the interrupt callback routine is invoked. Specifying USBD_DEFAULT_INTERVAL uses the value specified in the device's config data, but drivers can override it if needed. - Change if_aue to use USBD_FORCE_SHORT_XFER for packet transmissions. - Change if_aue, if_kue and if_cue to use USBD_NO_TSLEEP for all control transfers. We no longer force the non-tsleep hack for bulk transfers since these are done asynchronously anyway. - Removed quirk entry fiddling from if_aue and if_kue since we don't need it anymore now that we have the USBD_NO_TSLEEP flag. - Tweak ulpt, uhid, ums and ukbd drivers to use the new arg to usbd_open_pipe_intr(). - Add a flag to the softc struct in the ethernet drivers to indicate when a device has been detached, and use this flag to perform tests to prevent the drivers from trying to do control transfers if this is the case. This is necessary because calling if_detach() with INET6 enabled will eventually result in a call to the driver's ioctl() routine to delete the multicast groups on the interface, which will result in attempts to perform control transfers. (It's possible this also happens even without INET6 support enabled.) This is pointless since we know that if the detach method has been called, the hardware has been unplugged. - Changed watchdog timeout routines to just call the driver init routines to initialize the device states without trying to close and re-open the pipes. This is partly because we don't want to frob things at interrupt context, but also because this doesn't seem to work right and I don't want to panic the system just because a USB device may have stopped responding. - Fix aue_rxeof() to be a little smarter about detecting when a double transfer is needed. Unfortunately, the design of the chip makes it hard to get this exactly right. Hopefully, this will go away once either Nick or Lennart finds the bug in the uhci driver that makes this ugly hack necessary. - Also sync usbdevs with NetBSD.
* Rework shifta/ctla/alta key handling. It appears that there wasyokota2000-01-111-0/+3
| | | | | misunderstanding between the PR originator and me. I hope I got it right this time.
* - Add a module event function to the ukbd driver and make the ukbd KLDyokota1999-12-131-4/+22
| | | | | module work. - Delete unnecessary #include.
* Synchronisation with NetBSD as of 1999/11/16:n_hibma1999-11-171-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove last bits and pieces of NetBSD porting.n_hibma1999-10-071-34/+20
| | | | | | | Remove the use of ukbd_disconnect and replace it with direct calls to disable. Change printf to DPRINTF Remove the use of usbd_lock, change it to splusb()/splx()
* We use device_set_desc_copy, so we do not need to free the copied textn_hibma1999-08-281-2/+0
| | | | manually.
* - Remove cdevsw entry points in individual keyboard drivers;yokota1999-08-221-130/+26
| | | | | | | | instead, use generic entry points for all drivers. - Eliminate bogus makedev(). - Eliminate softc in the lower drivers, as it is no longer necessary. Submitted (95%) by: phk
* Change 'device' to 'self', to be more like the rest of the coden_hibma1999-06-261-2/+2
|
* 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.
* Change '#if UKBD_DEBUG' to '#ifdef...'n_hibma1999-05-031-8/+5
| | | | Remove freeing of description on detach. Is done by subr_bus.c.
* 1) Make debugging more selective.n_hibma1999-04-111-9/+11
| | | | | | | 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)
* Applied patch for ukbd disconnect. Disconnect not fully functionaln_hibma1999-04-111-66/+99
| | | | | | yet however. Supplied by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Implementation of the keyboard driver.n_hibma1999-03-221-438/+1259
| | | | Done by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* 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-3/+3
| | | | | the usb device class instead of the uhub devclass. Only a problem with more than one USB host controller.
* Changed 'xxxdebug = 0' to '...= 1' (Brian Feldman)n_hibma1999-01-131-2/+2
|
* Sync with NetBSD sources. Almost there. Mostly style fixes.n_hibma1999-01-101-4/+2
|
* Major synchronisation with NetBSD USB coden_hibma1999-01-071-113/+155
|
* Added Id to all filesn_hibma1998-12-141-0/+2
|
* Updated USB kernel sources to NetBSD sources of 1998-12-09.n_hibma1998-12-131-13/+0
| | | | | 1 bug fix and several textual changes. Preparing to feed back changes for port into NetBSD to create one source base.
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-0/+651
OpenPOWER on IntegriCloud