summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.c
Commit message (Collapse)AuthorAgeFilesLines
* MFNetBSD: ohci.c (1.124), uhci.c (1.159), usbdi.c (1.100)Josef Karthauser2002-05-261-1/+1
| | | | | | | | | | | | date: 2002/05/19 06:24:31; author: augustss; state: Exp; Update dma memory access API a little. NetBSD have adopted our way of using the KERNADDR macro. Update the revision tags to show that we're in sync, and remove the casts that they did in their adaptation. Notes: svn path=/head/; revision=97321
* Sync with NetBSD. (Non functional changes).Josef Karthauser2002-05-221-9/+9
| | | | Notes: svn path=/head/; revision=97143
* Fix a bug: Use USBD_DEFAULT_INTERVAL instead of USBD_DEFAULT_TIMEOUTJosef Karthauser2002-05-221-1/+1
| | | | | | | in a call to usbd_open_pipe_ival. Notes: svn path=/head/; revision=97142
* MFNetBSD: ugen.c (1.57), ulpt.c (1.48), usb.c (1.67), usbdi.c (1.96),Josef Karthauser2002-05-061-8/+10
| | | | | | | | | | | usbdi.h (1.60) (and local changes compatibility changes to ufm.c and urio.c) date: 2002/02/11 15:11:49; author: augustss; Give usbd_do_request_flags() an extra argument for the timeout. Notes: svn path=/head/; revision=96121
* MFNetBSD:Josef Karthauser2002-05-021-1/+4
| | | | | | | | | | | revision 1.94 date: 2001/12/30 20:26:59; author: augustss; state: Exp; lines: +5 -2 Make sure we don't have any pending softintrs when entering polling mode. Thanks to Darrin for finding and fixing this problem when using USB keyboards in DDB. Notes: svn path=/head/; revision=95964
* MFNetBSD: ukbd.c (1.52), usbdi.c (1.54), usbdi.h (1.35)Josef Karthauser2002-04-071-3/+3
| | | | | | | | | 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. Notes: svn path=/head/; revision=94087
* MFNetBSD: usbdi.c (1.93), usbdi.h (1.59)Josef Karthauser2002-04-071-2/+21
| | | | | | | | | date: 2001/12/24 21:36:15; author: augustss; Add some more DIAGNOSTIC tests. Make usb_match_device() match on USB_PRODUCT_ANY. Notes: svn path=/head/; revision=94083
* MFNetBSD:Josef Karthauser2002-04-071-2/+6
| | | | | | | | | revision 1.92 date: 2001/12/12 15:38:58; author: augustss; state: Exp; lines: +7 -3 Some more paranoia checks when DIAGNOSTIC. Notes: svn path=/head/; revision=94082
* Move a function to a different place in the source so that we matchJosef Karthauser2002-04-071-17/+17
| | | | | | | NetBSD. Notes: svn path=/head/; revision=94081
* MFNetBSD:Josef Karthauser2002-04-071-2/+2
| | | | | | | | | revision 1.88 date: 2001/11/22 04:31:01; author: augustss; state: Exp; lines: +3 -3 Improve dump routine slightly. Notes: svn path=/head/; revision=94079
* MFNetBSD:Josef Karthauser2002-04-071-2/+2
| | | | | | | | | revision 1.87 date: 2001/11/21 15:37:41; author: augustss; state: Exp; lines: +5 -5 Fix indentation and typos. Notes: svn path=/head/; revision=94078
* MFNetBSD: usbdi.c (1.80), usbdi.h (1.51)Josef Karthauser2002-04-071-23/+2
| | | | | | | | date: 2001/04/13 11:19:58; author: augustss; Finally get rid of the UGLY and EVIL hack for avoiding tsleep(). Notes: svn path=/head/; revision=94076
* MFNetBSD: usbdi.c (1.63), usbdi.h (1.41)Josef Karthauser2002-04-071-0/+17
| | | | | | | | | | | | date: 2000/03/02 12:37:51; author: augustss; Use ratecheck() to limit error messages on disconnect. Break out some common functionality. We don't have ratecheck() in our kernel yet, so I've hardcoded usb_ratecheck() to return true always. Notes: svn path=/head/; revision=94073
* MFNetBSD: ohci.c (1.109), uhci.c (1.144), uhub.c (1.56), usb.c (1.57),Josef Karthauser2002-04-071-2/+3
| | | | | | | | | | | usbdi.c (1.86), usbdivar.h (1.66) [Some partial, because most of this was merged in a while ago] date: 2001/11/20 13:48:03; author: augustss; Keep track of device speed for USB 2.0. Notes: svn path=/head/; revision=94068
* MFNetBSD: usbdi.c (1.85), usbdi.h (1.54), usbdi_util.c (1.37)Josef Karthauser2002-04-071-2/+1
| | | | | | | | date: 2001/11/15 15:15:59; author: augustss; usbd_interface2device_handle() cannot fail. Notes: svn path=/head/; revision=94064
* MFNetBSD: usbdi.c (1.82), usbdivar.h (1.64)Josef Karthauser2002-04-071-1/+50
| | | | | | | | date: 2001/11/10 16:54:56; author: augustss; Add some dump routines for debugging. Notes: svn path=/head/; revision=94063
* MFNetBSD:Josef Karthauser2002-04-071-0/+6
| | | | | | | | | revision 1.81 date: 2001/04/17 00:05:33; author: augustss; state: Exp; lines: +7 -1 Add a DIAGNOSTIC. Notes: svn path=/head/; revision=94060
* MFNetBSD: usb_subr.c (1.90), usbdi.c (1.83), usbdivar.h (1.65)Josef Karthauser2002-04-071-6/+0
| | | | | | | | date: 2001/11/10 17:11:38; author: augustss; state: Exp; lines: +1 -2 Get rid of unused abort_handle. Notes: svn path=/head/; revision=94059
* Back the last commit out. The network drivers need reworking first. :(Josef Karthauser2002-04-021-2/+23
| | | | Notes: svn path=/head/; revision=93670
* MFNetBSD: usbdi.c (1.80), usbdi.h (1.51)Josef Karthauser2002-04-021-23/+2
| | | | | | | | date: 2001/04/13 11:19:58; author: augustss; Finally get rid of the UGLY and EVIL hack for avoiding tsleep(). Notes: svn path=/head/; revision=93666
* MFNetBSD: ohci.c (1.99), uhci.c (1.133), usb.c (1.49), usb_port.hJosef Karthauser2002-04-011-1/+5
| | | | | | | | | | | | (1.39), usbdi.c (1.79), usbdi.h (1.47), usbdivar.h (1.62) date: 2001/01/21 02:39:52; author: augustss; Add code to use soft interrupt to handle USB interrupt processing. Don't enable the code since it doesn't work with the kludgy Ethernet drivers. Notes: svn path=/head/; revision=93594
* MFNetBSD: Update many URLs.Josef Karthauser2002-04-011-1/+1
| | | | Notes: svn path=/head/; revision=93591
* Merge from NetBSD: usbdi.c rev 1.77, usbdi.h rev 1.44Josef Karthauser2002-04-011-2/+11
| | | | | | | | date: 2000/09/23 21:02:04; author: augustss; Add a way to do control transfers on other pipes than the default pipe. Notes: svn path=/head/; revision=93553
* Use ANSI prototypes and declarations.Josef Karthauser2002-04-011-155/+65
| | | | Notes: svn path=/head/; revision=93552
* Merge from NetBSD: Make it compile with USB_DEBUG.Josef Karthauser2002-04-011-9/+6
| | | | Notes: svn path=/head/; revision=93551
* Merge from NetBSD:Josef Karthauser2002-04-011-6/+20
| | | | | | | | | | | | ---------------------------- revision 1.73 date: 2000/05/31 16:14:42; author: augustss; state: Exp; lines: +19 -6 Be more careful when setting the alternate interface so we don't end up with nothing set at all if it fails. ---------------------------- Notes: svn path=/head/; revision=93535
* Huge merge from NetBSD:Josef Karthauser2002-03-161-8/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usbdi.c (1.61): =================================================================== revision 1.61 date: 2000/01/31 20:13:07; author: augustss; lines: +20 -4 Change the way the HC done method is invoked a little. =================================================================== usbdi.c (1.65): =================================================================== revision 1.65 date: 2000/03/08 15:34:10; author: augustss; lines: +4 -2 Get the status right when a polled transfer times out. =================================================================== ohci.c (1.79), uhci.c (1.89), uhcivar.h (1.24), usb_port.h (1.22), usbdivar.h (1.48): =================================================================== date: 2000/03/23 07:01:46; author: thorpej; New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel. =================================================================== uhci.c (1.80), usbdi.c (1.66): =================================================================== date: 2000/03/23 18:59:10; author: thorpej; Shake out some bugs from the callout changes. =================================================================== ohci.c (1.80), uhci.c (1.91), uhcivar.h (1.25), usb_port.h (1.23), usbdi.c (1.67), usbdivar.h (1.49): =================================================================== date: 2000/03/24 22:03:30; author: augustss; Some cleanup and renaming of the callouts used in USB drivers. =================================================================== uhci.c (1.92), uhcivar.h (1.26): =================================================================== date: 2000/03/24 22:57:58; author: augustss; Two major changes: Make each xfer have its own intr_info. This is necessary if we want to queue multiple xfers on an endpoint. This should get rid of the (mostly harmless) DIAGNOSTICs about intr_infos (not) being done. Change (again!) how xfers are aborted. Aborting a TD is a nightmare on the braindead UHCI controller. (Unless you stop the HC, thereby losing isoc traffic.) Hopefully I got it right this time. =================================================================== usbdivar.h (1.50): =================================================================== revision 1.50 date: 2000/03/25 00:10:19; author: augustss; lines: +4 -2 GC an unsued field and add some DIAGNOSTIC in xfer. =================================================================== ums.c: Use the callout functions instead of the timeout ones. uhci.c (1.93): =================================================================== revision 1.93 date: 2000/03/25 00:11:21; author: augustss; lines: +26 -1 Add more DIAGNOSTIC when aborting isoc. =================================================================== uhci.c (1.94), usbdivar.h (1.51): =================================================================== date: 2000/03/25 07:13:05; author: augustss; More DIAGNOSTIC. Initialize a callout handle I forgot. =================================================================== uhci.c (1.95): =================================================================== revision 1.95 date: 2000/03/25 07:23:12; author: augustss; Exp; lines: +24 -7 Improve uhci_dump_ii(). =================================================================== ohci.c (1.81), uhci.c (1.96), uhcivar.h (1.27), usb_subr.c (1.68), usbdi.c (1.68), usbdivar.h (1.52): =================================================================== date: 2000/03/25 18:02:33; author: augustss; Rename and move around callout handles to make it more sane. Add some DIAGNOSTIC. Fix buglet in isoc abort on UHCI. =================================================================== uhci.c (1.98): =================================================================== revision 1.98 date: 2000/03/27 07:39:48; author: augustss; lines: +12 -4 Make it compile without DIAGNOSTIC. =================================================================== uhci.c (1.99): =================================================================== revision 1.99 date: 2000/03/27 08:01:09; author: augustss; lines: +1 -5 Remove some debug nonsense. =================================================================== uhci.c (1.100): =================================================================== revision 1.100 date: 2000/03/27 09:41:36; author: augustss; lines: +13 -3 Don't mess with QH in bulk abort for the moment. =================================================================== uhci.c (1.102): =================================================================== revision 1.102 date: 2000/03/27 22:42:57; author: augustss; lines: +66 -26 Be a little more careful when aborting. Preallocate some TDs for large buffers. =================================================================== uhci.c (1.103): =================================================================== date: 2000/03/28 09:47:10; author: augustss; lines: +11 -1 Another patch for xfer abort... XXX The current xfer queueing and aborting semantics should really XXX be changed. It cannot be implemented in a sane way on UHCI. XXX One day when I have lots of time I'll redesign it... =================================================================== uhci.c (1.104): Correct a debug message. uhci.c (1.105): Be more defensive in a DIAGNOSTIC test. uhci.c (1.106): =================================================================== revision 1.106 date: 2000/03/29 01:49:13; author: augustss; lines: +14 -309 *SIGH* Revert back to the old method of aborting xfers. I had tested the new stuff for two months now, but as soon as I commited it the problems started to appear. Murphy, no doubt... =================================================================== usb_subr.c (1.70), usbdi.c (1.71), usbdivar.h (1.53): =================================================================== revision 1.70 date: 2000/03/29 01:45:20; author: augustss; lines: +2 -1 Do not accept new xfers for queuing while a pipe is aborting. =================================================================== Notes: svn path=/head/; revision=92404
* Prefix structure members to protect them against clashes with eg.Alfred Perlstein2002-02-201-1/+1
| | | | | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard Notes: svn path=/head/; revision=90996
* Merge from NetBSD: revs 1.89 and 1.90.Josef Karthauser2002-02-111-0/+16
| | | | | | | | | | | | | | | | | | | Also, add some 'const's to supress warnings. (Submitted back to NetBSD). The original logs from NetBSD: ---------------------------- revision 1.90 date: 2001/12/03 01:47:12; author: augustss; lines: +4 -4 Handle vendor/product lookup with a common routine. ---------------------------- revision 1.89 date: 2001/12/02 23:25:25; author: augustss; lines: +18 -2 Add a subroutine to search for a vendor/product pair. ---------------------------- Notes: svn path=/head/; revision=90526
* KSE Milestone 2Julian Elischer2001-09-121-1/+1
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=83366
* Pull in the most recent version of usb_quirks.h and propagate the necessaryNick Hibma2001-07-051-1/+1
| | | | | | | | | changes to the various files. Also, pull in most of the current usb_subr.c file. Notes: svn path=/head/; revision=79309
* Make intr_nesting_level per-process, rather than per-cpu. SetupJake Burkholder2001-01-211-1/+1
| | | | | | | | | | | interrupt threads to run with it always >= 1, so that malloc can detect M_WAITOK from "interrupt" context. This is also necessary in order to context switch from sched_ithd() directly. Reviewed By: peter Notes: svn path=/head/; revision=71337
* Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variablesJake Burkholder2001-01-101-1/+1
| | | | | | | other then curproc. Notes: svn path=/head/; revision=70861
* Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ingPoul-Henning Kamp2000-10-291-1/+0
| | | | | | | | | | | | | the offending inline function (BUF_KERNPROC) on it being #included already. I'm not sure BUF_KERNPROC() is even the right thing to do or in the right place or implemented the right way (inline vs normal function). Remove consequently unneeded #includes of <sys/proc.h> Notes: svn path=/head/; revision=67885
* Undo previous commit. <machine/clock.h> is needed for the prototypeNick Hibma2000-10-161-0/+1
| | | | | | | for DELAY(). Notes: svn path=/head/; revision=67218
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDNick Hibma2000-07-171-10/+10
| | | | | | | versions. Notes: svn path=/head/; revision=63319
* Change Lennart's e-mail address.Nick Hibma2000-05-141-1/+1
| | | | Notes: svn path=/head/; revision=60545
* Remove unneeded #include <sys/kernel.h>Poul-Henning Kamp2000-04-291-1/+0
| | | | Notes: svn path=/head/; revision=59760
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-1/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* OpenBSD has a broken debugger that does not grok static. Use aNick Hibma2000-04-031-8/+8
| | | | | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like. Notes: svn path=/head/; revision=58986
* Never stop the control pipeNick Hibma2000-03-151-3/+4
| | | | Notes: svn path=/head/; revision=58116
* Correctly handle the conversion from virtual to physical addresses. TheNick Hibma2000-02-101-4/+4
| | | | | | | | | | | | | | | problem was basically (for offset > 4096): vtophys(addr) + offset != vtophys(addr + offset) Also, use TD's with a maximum size of 4k instead of 8kb for OHCI controllers. This problem occurs in drivers that use large transfer sizes: umass, host2host and ethernet with jumbo frames. Notes: svn path=/head/; revision=57118
* Add usbd_clear_endpoint_toggle(pipe) function.Nick Hibma2000-01-251-0/+8
| | | | | | | | This is needed to implement a asynchronous callback for clear endpoint stall, needed for the umass driver. Notes: svn path=/head/; revision=56603
* More USB ethernet tweaks:Bill Paul2000-01-201-41/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=56318
* Fix a couple of bugs:Bill Paul2000-01-191-4/+7
| | | | | | | | | | | | - The busy wait hack in usbdi.c was doing its timeout in microseconds instead of milliseconds. - if_aue.c:aue_intr() is creating a bitmask by and'ing two bits when it should be or'ing them. Submitted by: Lennart Augustsson Notes: svn path=/head/; revision=56260
* This commit adds device driver support for the ADMtek AN986 PegasusBill Paul1999-12-281-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB ethernet chip. Adapters that use this chip include the LinkSys USB100TX. There are a few others, but I'm not certain of their availability in the U.S. I used an ADMtek eval board for development. Note that while the ADMtek chip is a 100Mbps device, you can't really get 100Mbps speeds over USB. Regardless, this driver uses miibus to allow speed and duplex mode selection as well as autonegotiation. Building and kldloading the driver as a module is also supported. Note that in order to make this driver work, I had to make what some may consider an ugly hack to sys/dev/usb/usbdi.c. The usbd_transfer() function will use tsleep() for synchronous transfers that don't complete right away. This is a problem since there are times when we need to do sync transfers from an interrupt context (i.e. when reading registers from the MAC via the control endpoint), where tsleep() us a no-no. My hack allows the driver to have the code poll for transfer completion subject to the xfer->timeout timeout rather that calling tsleep(). This hack is controlled by a quirk entry and is only enabled for the ADMtek device. Now, I'm sure there are a few of you out there ready to jump on me and suggest some other approach that doesn't involve a busy wait. The only solution that might work is to handle the interrupts in a kernel thread, where you may have something resembling a process context that makes it okay to tsleep(). This is lovely, except we don't have any mechanism like that now, and I'm not about to implement such a thing myself since it's beyond the scope of driver development. (Translation: I'll be damned if I know how to do it.) If FreeBSD ever aquires such a mechanism, I'll be glad to revisit the driver to take advantage of it. In the meantime, I settled for what I perceived to be the solution that involved the least amount of code changes. In general, the hit is pretty light. Also note that my only USB test box has a UHCI controller: I haven't I don't have a machine with an OHCI controller available. Highlights: - Updated usb_quirks.* to add UQ_NO_TSLEEP quirk for ADMtek part. - Updated usbdevs and regenerated generated files - Updated HARDWARE.TXT and RELNOTES.TXT files - Updated sysinstall/device.c and userconfig.c - Updated kernel configs -- device aue0 is commented out by default - Updated /sys/conf/files - Added new kld module directory Notes: svn path=/head/; revision=55162
* Synchronisation with NetBSD 1999/11/27Nick Hibma1999-11-281-35/+36
| | | | | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=53853
* Synchronisation with NetBSD as of 1999/11/16:Nick Hibma1999-11-171-294/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=53313
* Remove superfluous header file includes.Nick Hibma1999-11-081-3/+1
| | | | | | | Pushed-By: phk Notes: svn path=/head/; revision=53027