Nick Hibma
04f5d6d7a2
Added vendor OmniVision and camera
1999-05-01 13:16:35 +00:00
Nick Hibma
63b6d959ae
Forgot one.
...
Original log message:
Remove feature creep: STAILQ_REMOVE_HEAD_UNTIL added it for convenience
but we can do without it.
Obtained from: Peter Wemm
1999-04-21 12:08:07 +00:00
Nick Hibma
38a3a046fc
Remove feature creep: STAILQ_REMOVE_HEAD_UNTIL added it for convenience
...
but we can do without it.
1999-04-20 22:37:18 +00:00
Nick Hibma
42b8d61161
1) Change printf's into DPRINTF.
...
2) rename variables to be more conclusive.
3) fix a problem in uhci_ii_done. Avoid collecting all the status's of the
TD's, we only need to one from the last inactive one.
4) Change the errorcount from 2 to 3 (see UHCI spec.).
1999-04-20 21:35:27 +00:00
Nick Hibma
272bc74e12
Add defines for Mass Storage Bulk-Only and COmmun. Class devices.
1999-04-20 21:25:29 +00:00
Nick Hibma
157ddd9539
Enclose .hcidebug in '#ifdef N.HCI'
1999-04-20 21:10:43 +00:00
Nick Hibma
49ae25e811
1) Add Rockfire vendor and gamepad product (MAEKAWA Masahide)
...
2) Sort the list again (Roger Hardiman)
3) Reinstate a piece of code to look for a name for a device
if none is found in the device itself.
1999-04-19 20:25:18 +00:00
Nick Hibma
921a038ad5
UHCI_DEBUG should of course be OHCI_DEBUG
...
Reported by: MAEKAWA Masahide <bishop@rr.iij4u.or.jp>
1999-04-17 21:48:03 +00:00
Peter Wemm
6182fdbda8
Bring the 'new-bus' to the i386. This extensively changes the way the
...
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
1999-04-16 21:22:55 +00:00
Nick Hibma
67aa00a71b
1) Make debugging more selective.
...
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)
1999-04-11 20:50:33 +00:00
Nick Hibma
91fe4c07fa
Applied patch for ukbd disconnect. Disconnect not fully functional
...
yet however.
Supplied by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1999-04-11 16:49:15 +00:00
Nick Hibma
49de1dd30d
USBD_STALLED bit checking was inconsistent. Mixed use of == and &
...
Patch provided by: Kazutaka YOKOTA
1999-04-11 16:43:48 +00:00
Nick Hibma
2115c3404f
Remove unit from struct. Not used anymore.
1999-04-11 16:22:57 +00:00
Nick Hibma
f6f5fdd730
Reenable the recursive disconnection from a hub. Stop gap solution
...
until the newbus version of uhub.c is ready.
Submitted by: Kazutaka YOKOTA
1999-04-11 14:24:43 +00:00
Nick Hibma
5e36e2fe52
Changed pci_config_read() to pci_map_port(). Pointed out by Doug Rabson.
1999-04-11 14:24:20 +00:00
Nick Hibma
948d2900b2
1) Add Lucent USS-720 eval kit
...
2) Rename Epson printer cable to proper name
1999-04-08 23:26:50 +00:00
Nick Hibma
95b1c9ac5d
1) Add AKS USB-HASP 0.6
...
2) Rename Lucent -> Epson
(Undoes previous commit, Mike agrees)
1999-04-08 23:13:17 +00:00
Mike Smith
0858cc98d3
Add the Lucent USS-720 ISD Smart Cable.
1999-04-08 20:50:51 +00:00
Nick Hibma
7ae8132edd
Added macro logprintf
1999-04-07 17:07:07 +00:00
Nick Hibma
61f973056b
fix typo
1999-04-06 23:09:58 +00:00
Nick Hibma
7b9e192e28
1) Add the defines for the Mass Storage class
...
2) Add comments
3) Add UE_DIR to replace the querying of UE_IN directly
1999-04-05 17:23:54 +00:00
Nick Hibma
ff0ccda34e
change wrong names in prototypes (pipe to dev)
1999-04-05 17:19:48 +00:00
Nick Hibma
5163f215e0
Add the defines for the Iomega Zip 100 drive
1999-04-05 17:12:46 +00:00
Nick Hibma
1294cd03e1
bugfix: initialise timeout for usbd_device_request as well.
...
moved statements around to reflect sequence in the struct, to make
finding these discrepancies easier.
1999-04-05 17:01:52 +00:00
Nick Hibma
44e361fd80
added vision camera
1999-03-31 23:53:48 +00:00
Nick Hibma
e1c81f1d94
Cleaning up of code, remove unneeded cruft and make
...
code more compact.
1999-03-27 23:08:44 +00:00
Nick Hibma
acf3654412
Added a number of device names: Konica, Microsoft, Macally
1999-03-24 07:46:53 +00:00
Nick Hibma
d0ef08ba15
Check whether the PIRQD enable bit is set in LegSup and if not, set it.
...
On my PIIX4 chip rev 1 this is required. Have not had any complaints from
other people so it might be a problem with this stepping.
1999-03-23 21:37:45 +00:00
Nick Hibma
7dfd509563
1) clean up debugging output
...
2) remove erroneous querying of PCI LegSup register while it should be
fetched from PCI config space
3) change name of define for this register
1999-03-23 21:35:57 +00:00
Nick Hibma
83fac6ab3f
Cosmetical changes.
1999-03-22 19:58:59 +00:00
Nick Hibma
86df1e04cc
Implementation of the keyboard driver.
...
Done by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1999-03-22 19:55:30 +00:00
Nick Hibma
5e294a20cf
Moved timeout initialisation a bit earlier in the process. The
...
untimeout function triggered panics once in a while.
1999-03-22 19:52:28 +00:00
Nick Hibma
ab18313bcb
Move untimeout up before call to uhci_ii_done, avoids panic in
...
untimeout.
Submitted by Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
and gehenna@jp.FreeBSD.org .
1999-03-08 22:27:07 +00:00
Nick Hibma
88cac66373
Bug fix: Trap 12 when ugen not present and therefore unattached physical
...
device removed.
1999-02-21 16:53:35 +00:00
Nick Hibma
f96f6ae5d8
Device unload code is broken, disabled. Requires a bit of redesign on the
...
part of the uhub driver to be able to fix it. Modules should not be
unloaded as they unload partially. Not easy to fix either.
1999-02-21 16:36:30 +00:00
Nick Hibma
6b769ffb36
make ums look like a Mouse Systems or Sysmouse mouse. Remove PS/2 interf.
...
Supplied by MAEKAWA Masahide <bishop@rr.iij4u.or.jp>. Thanks!
USB Mouse now supports up to 7 buttons and X,Y,Z (wheel) directions.
1999-02-21 16:20:19 +00:00
Nick Hibma
7d0d9122c9
Bug fix: devcount was running from [count..0], should be [count-1..0]
1999-02-20 19:22:00 +00:00
Nick Hibma
d894d5dedb
1) In polling mode (during boot) the callout_handle wasn't
...
initialised (PR1).
Thanks to "Louis A. Mamakos" <louie@TransSys.COM> for his patient
testing of my mods.
2) Removed some debugging output (PR1)
1999-02-19 22:48:28 +00:00
Nick Hibma
fe5ba84529
Moved [uo]hci_pci.c from /sys/dev/pci to /sys/pci after Soren
...
threatened to send Bruce. These files are no longer shared
with NetBSD anyway.
Requires a config and make depend.
1999-02-18 21:42:19 +00:00
Nick Hibma
e99cd85d69
Moved busreset in uhci_init up to avoid clearing of FLBASE in Via 83572
...
(PR1)
1999-02-18 21:03:10 +00:00
Nick Hibma
fe7627280b
Applied patch from MAEKAWA Masahide <bishop@rr.iij4u.or.jp>. (PR2)
...
Seems to solve a problem with a mouse not responding to movements in the
X direction. Problem description is still rather vague and solution is
not exactly clear. Problem might be a compiler optimisation.
1999-02-15 21:41:43 +00:00
Nick Hibma
48f79d0e5c
Added more verbose debugging output to uhci_run
1999-02-15 20:43:17 +00:00
Nick Hibma
aa11c7f9d1
Added UHCI_LEGSUP to uhcireg.h
1999-01-31 16:22:35 +00:00
Matthew Dillon
0a5e03dda5
Fix warnings in preparation for adding -Wall -Wcast-qual to the
...
kernel compile
1999-01-28 01:59:53 +00:00
Matthew Dillon
8aef171243
Fix warnings in preparation for adding -Wall -Wcast-qual to the
...
kernel compile
1999-01-28 00:57:57 +00:00
Nick Hibma
7613dbd346
add LEGSUP to uhci_dumpregs
1999-01-22 21:52:46 +00:00
Nick Hibma
1f7b3fe5be
forgotten in previous commit: Lowered default debug level
1999-01-22 01:02:24 +00:00
Nick Hibma
ab521a755e
Fixed disconnect for umouse
1999-01-22 00:59:52 +00:00
Nick Hibma
235dddd4ea
Textual changes
1999-01-22 00:51:12 +00:00
Nick Hibma
5602b5091c
Fixed bug in disconnect handling in uhub.c
1999-01-22 00:44:31 +00:00
Nick Hibma
cf4e36da61
Fixed bug that made UHCI controllers fail to start.
1999-01-21 23:31:58 +00:00
Nick Hibma
88a610db55
Cleaning up, improving _detach, removing ominous warning (msmith)
1999-01-21 23:06:02 +00:00
Nick Hibma
f8c31e6fac
Added ioctl interface
1999-01-21 22:56:10 +00:00
Nick Hibma
5f2848a953
Removal unneccessary definitions
1999-01-14 01:35:12 +00:00
Nick Hibma
1c8fa23724
Corrected the latent fact that the uhub driver was providing a driver for
...
the usb device class instead of the uhub devclass. Only a problem with more
than one USB host controller.
1999-01-14 01:28:15 +00:00
Nick Hibma
86d7ad019e
Added Entrega Parallel and Serial Connectors to the information
...
file.
1999-01-14 01:18:44 +00:00
Nick Hibma
bc2093747f
Changed 'xxxdebug = 0' to '...= 1' (Brian Feldman)
1999-01-13 01:09:14 +00:00
Nick Hibma
796a3c0d00
1) Bug fix: Interrupt transfers worked only for the first packet.
...
The second packet was not seen as finished.
2) Textual changes
1999-01-13 00:50:02 +00:00
Eivind Eklund
037e944431
Cast argument to avoid warning.
...
Reviewed by: Nick Hibma <n_hibma>
1999-01-12 12:46:36 +00:00
Eivind Eklund
26ccf6d24a
%b takes ints, not u_longs.
1999-01-12 02:22:59 +00:00
Nick Hibma
fa99797979
Take cdev major # 114 for ugen
1999-01-12 01:31:13 +00:00
Nick Hibma
627246f4dc
1) textual changes
...
2) bug fix in handling of select (or presumed bug)
3) trigger a mouse packet on the Z direction as well (but Z still not
working)
1999-01-12 01:21:15 +00:00
Nick Hibma
991a64f7ba
Changed DRIVER_MODULE to CDEV_DRIVER_MODULE
1999-01-12 01:18:38 +00:00
Nick Hibma
34dced2c1a
Added file handling to ulpt (USB printer) driver
1999-01-11 00:03:59 +00:00
Nick Hibma
53809e8652
Sync with NetBSD sources. Almost there. Mostly style fixes.
1999-01-10 18:42:54 +00:00
Eivind Eklund
95ddc5daa5
USUBCLASS_MODEM -> USUBCLASS_ABSTRACT_CONTROL_MODEL
...
Matches the header file change, and makes this compile.
1999-01-08 17:25:37 +00:00
Nick Hibma
a73f7cf01f
Major synchronisation with NetBSD USB code
1999-01-07 23:07:57 +00:00
Nick Hibma
f21bc50cc2
queue.h has taken over this functionality
1999-01-06 23:16:45 +00:00
Nick Hibma
3523e1b5a7
Big oops, wrong major number in source
1999-01-05 09:33:23 +00:00
Nick Hibma
0d3c3d3942
Corrected the major number for usb and added ums as major 111
1999-01-03 16:48:03 +00:00
Nick Hibma
fd3ae282c5
Added UCLASS_CDC definitions to usb.h
1998-12-15 07:06:51 +00:00
Julian Elischer
6384b0f1bb
The OHCI interfaces I have access to map their control regs etc. into
...
memory address space rather than IO space.. reflect this when looking for the
interface revision register.
If this is not true for them all then we probably need some smarter code.
1998-12-14 21:14:11 +00:00
Nick Hibma
6fef2c2c27
Added Id to all files
1998-12-14 09:32:25 +00:00
Nick Hibma
f287ad3471
Added Id
1998-12-14 09:31:41 +00:00
Nick Hibma
680a2f48d9
Added comment
1998-12-14 09:15:19 +00:00
Nick Hibma
def348d45a
Added copyright and Id
1998-12-14 09:13:29 +00:00
Nick Hibma
1806e812ae
small oops on previous bug fix, it's late...
1998-12-13 23:53:42 +00:00
Nick Hibma
67aabdd8b7
small bug fix
1998-12-13 23:26:41 +00:00
Nick Hibma
9501b6d6b8
Removed unneeded definition
1998-12-13 23:16:20 +00:00
Nick Hibma
eca58e5e00
dded the stubs for umodem and ucom (communications class driver). They are nothing other than
...
the ugen driver with different variable names.
1998-12-13 23:04:35 +00:00
Nick Hibma
3e041e6116
Updated USB kernel sources to NetBSD sources of 1998-12-09.
...
1 bug fix and several textual changes.
Preparing to feed back changes for port into NetBSD to create one source base.
1998-12-13 22:27:42 +00:00
Nick Hibma
da3ff61390
Fixed warning in usr.sbin/usbd
1998-12-12 11:57:59 +00:00
Julian Elischer
8cbe8a3ebf
If we failed to probe/attach somehow, we never have a sc->sc_hcca
...
but the present PCI probe code still thinks we are there as the pci attach
can't return an error code.
This means we are in the shared interrupt list, but have not been set up.
If we are sharing ints with another device, ohci_intr will be called and will
coredump on a NULL reference. So just return if it is called when not set up.
This fixes the symptom and not the cause.
The right answer is to let the PCI system know that the attach failed,
or to fail earlier (in the PCI probe).
The attach() is a void fn() so it can't return failure..
1998-12-11 06:02:06 +00:00
Nick Hibma
97797dc959
Various bug fixes:
...
1) Removed 'emulation' of bitmaps in printfs, FreeBSD seems to have caught
up on that one
2) Fixed a few bugs in the timeout/timo timeout variables
3) First attempt at fixing a bug mentioned by Kazu: uhci_run is not able
start/stop his USB host on his motherboard.
1998-12-09 23:36:15 +00:00
Nick Hibma
a48e33e094
Preliminary support for OHCI motherboards
1998-12-09 23:28:43 +00:00
Nick Hibma
0cec007c5f
Initial commit of ported NetBSD USB stack
1998-11-26 23:13:13 +00:00