| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
sync of the NetBSD code.
fix isochornous support for ohci. This gets webcams like my OV511
working on sparc64.
PR: kern/52589
Submitted by: Bruce R. Montague (isochonous support)
Reviewed by: joe among others
|
|
|
|
| |
Reviewed by: joe among others
|
|
|
|
|
|
| |
initalize itds
remove extra htole32. Things don't work to well when you do
htole32(htole32(var))
|
|
|
|
|
|
|
| |
MFNetBSD: revision 1.137
date: 2003/01/20 07:12:13; author: simonb;
Grrr. So much for my ability to use grep(1) effectively. Pointed out
by Stephen Degler in private mail.
|
|
|
|
|
| |
date: 2003/01/20 05:30:09; author: simonb;
The Double-Semi-Colon Police.
|
|
|
|
|
|
| |
date: 2002/12/10 14:07:37; author: toshii; state: Exp; lines: +6 -6
Add a couple of le32toh which were missing in the previous.
Pointed out by SOMEYA Yoshihiko.
|
|
|
|
|
|
|
|
| |
date: 2002/12/07 07:33:20; author: toshii; state: Exp; lines: +50 -29
Update xfer->frlengths for input isoc transfer. Based on patches from
SOMEYA Yoshihiko.
Also fix error handling for isoc transfer somewhat; usb_transfer_complete
shouldn't be called for more than once.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
date: 2002/12/07 07:14:28; author: toshii;
Fix several nits. Mostly from SOMEYA Yoshihiko.
- Call usbd_transfer_complete at splusb.
- Fix a botched for loop in ohci_rem_ed.
- In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race
condition.
The splusb change is non-functional on FreeBSD.
The botched loop and race condition changes came from us.
This patch is non-functional.
|
|
|
|
|
| |
date: 2002/12/07 06:52:11; author: toshii;
Remove junk at the end of a DPRINTF. From SOMEYA Yoshihiko.
|
|
|
|
|
|
|
|
| |
date: 2002/09/29 20:58:25; author: augustss;
Add some spl calls to protect critical regions. From kern/18440,
Takeshi Nakayama.
(No functional change on FreeBSD).
|
|
|
|
|
|
| |
date: 2003/05/13 04:41:59; author: gson;
Function names printed in debug messages did not always match the
actual name of the function.
|
|
|
|
|
| |
date: 2003/02/08 03:32:51; author: ichiro;
change URL pointers of USB[1,2] specification
|
|
|
|
|
|
| |
This brings us more in line with Net/OpenBSD
Obtained from: Net/OpenBSD
|
|
|
|
|
|
|
| |
Submitted by Hiroyuki Aizu <eyes@navi.org>
(refer to [FreeBSD-users-jp 65061])
Tested by Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp>
(refer to [bsd-usb:689])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the dataphysend calculation could only possibly work if the virtual buffer
is also physically contiguous. Calculate dataphysend by calculating the
ending virtual address first, then converting to a physical address.
The second bug applies only to NetBSD and OpenBSD and involves the curlen
calculation in the two-contiguous-physical-pages case (which we don't support).
Also cleanup the use of the OHIC_PAGE() macro on dataphysend and add a panic
if len goes negative (meaning we lost the physical page translation
representing the end of the buffer).
IMHO the dataphysend is still bokered since it might be misrepresented
by shared userland page mappings. The whole section needs to be rewritten
to use the virtual address range.
MFC after: 3 days
|
|
|
|
|
|
|
| |
- In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race
condition.
Approved by: re (rwatson)
|
|
|
|
|
|
|
| |
date: 2002/09/29 20:59:30; author: augustss; state: Exp; lines: +2 -7
Remove extra call to ohci_rem_ed(). From kern/18448, Takeshi Nakayama.
Approved by: re (rwatson)
|
|
|
|
|
| |
Submitted by: Bernd Walter <ticso@cicely8.cicely.de>
Approved by: re (rwatson)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
code path to fix a bug in the non USB_USE_SOFTINTR path that caused
the usb bus to hang and generally misbehave when devices were unplugged.
In the process though it also reduced the throughput of usb devices because
of a less than optimal implementation under FreeBSD.
This commit fixes the non USB_USE_SOFTINTR code in uhci and ohci
so that it works again, and switches back to using this code path.
The uhci code has been tested, but the ohci code hasn't. It's
essentially the same anyway and so I don't envisage any difficulties.
Code for uhci submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
|
|
|
|
|
|
|
| |
revision 1.127
date: 2002/08/07 20:03:19; author: augustss; lines: +4 -8
Fix some braindead calls to free memory (only encountered
under low memory conditions). From OpenBSD.
|
|
|
|
| |
Requested by: imp
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
sysctl tree for tweaking them real-time.
Reviewed by: iedowse
|
|
|
|
|
|
|
|
| |
date: 2002/05/28 12:42:39; author: augustss;
Change DMAADDR macro slightly.
Update the $NetBSD$ tags to reflect this and make slight changes to
usb_mem.h so that we're in sync with each other.
|
|
|
|
| |
didn't pick it up.)
|
|
|
|
|
|
|
| |
revision 1.124
date: 2002/05/26 03:10:02; author: minoura; state: Exp; lines: +3 -3
Clear done_head in the HCCA *before* acknoledging the interrupt.
Driver lost some completed transfers under heavy loads.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
and our version clear to see.
|
|
|
|
| |
<sys/endian.h>. This puts us in line with NetBSD and OpenBSD.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
revision 1.121
date: 2002/03/16 16:11:18; author: tsutsui; state: Exp; lines: +4 -4
Fix a couple of typo:
- s/ehci/ohci/ (in unused arg of macro)
- s/uhci/ohci/ (in debug message)
|
|
|
|
|
| |
date: 2001/12/31 12:20:35; author: augustss;
Change xfer abort to wait for the softintr to run.
|
|
|
|
|
|
| |
revision 1.118
date: 2001/12/27 18:48:28; author: augustss; state: Exp; lines: +24 -5
Add some DIAGNOSTIC stuf that I forgot. From Nate Williams.
|
|
|
|
|
|
| |
revision 1.117
date: 2001/12/27 11:27:11; author: augustss; state: Exp; lines: +5 -3
Update a comment.
|
|
|
|
|
|
| |
revision 1.116
date: 2001/11/21 08:18:40; author: augustss; state: Exp; lines: +30 -3
Pay more attention to if the HC is being unplugged.
|
|
|
|
|
|
| |
date: 2001/11/21 02:41:18; author: augustss;
Use a task to perform the timeout abort so we have a process context when
sleeping.
|
|
|
|
|
|
| |
revision 1.113
date: 2001/11/21 02:39:31; author: augustss; state: Exp; lines: +10 -4
Some more debug stuff.
|
|
|
|
|
| |
date: 2001/11/21 02:38:35; author: augustss;
Cast some args to bitmask_snprintf().
|
|
|
|
|
| |
date: 2001/11/20 21:12:46; author: augustss;
Don't bother with interrupts when being disconnected.
|
|
|
|
|
|
|
|
| |
revision 1.101
date: 2001/02/20 15:20:32; author: minoura;
Re-initialize some registers after resuming from suspend.
Some APM BIOSes do not restore them.
Reviewd by augustss.
|
|
|
|
|
|
|
| |
revision 1.97
date: 2000/12/31 14:29:54; author: augustss; state: Exp; lines: +17 -3
Make the controller survive suspend/resume. Thanks to Steve Woodford
<steve@mctavish.co.uk> for testing.
|
|
|
|
|
|
|
| |
revision 1.95
date: 2000/12/13 03:09:06; author: augustss; state: Exp; lines: +19 -3
Make the ohci driver not hang suspend/resume. It still doesn't resume
correctly. From itohy@netbsd.org (ITOH Yasufumi) PR kern/11714.
|
|
|
|
|
|
|
|
|
|
|
|
| |
ohci.c
revision 1.100
date: 2001/01/28 16:18:09; author: augustss; state: Exp; lines: +7 -2
Put a rate limiter on the scheduling overrun message.
ohcivar.h:
revision 1.25
date: 2001/01/28 19:01:20; author: augustss; state: Exp; lines: +4 -1
Commit second half of rate limit change.
|
|
|
|
|
|
| |
revision 1.110
date: 2001/11/20 16:08:10; author: augustss; state: Exp; lines: +5 -4
Use longer reset for root hubs (as told in the spec).
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
revision 1.107
date: 2001/11/10 17:09:28; author: augustss; state: Exp; lines: +31 -26
Improve dump routines.
|
|
|
|
|
|
|
|
| |
revision 1.106
date: 2001/11/09 15:01:57; author: augustss; state: Exp; lines: +73 -57
Fix a bug in xfer abort processing when the HC executes ahead of what
the driver aborts.
Don't block RHSC interrupts.
|
|
|
|
|
|
| |
revision 1.105
date: 2001/11/07 02:55:04; author: augustss; state: Exp; lines: +17 -3
Improve some debug messages.
|
|
|
|
|
|
| |
date: 2001/09/28 23:57:21; author: augustss;
Reenable RHSC interrupt after one second so hot plugging works.
(From OpenBSD.)
|