Commit Graph

435 Commits

Author SHA1 Message Date
augustss
42d6f8a8b9 Regen. 1999-10-13 03:01:52 +00:00
augustss
736c5dc95e Add Kodak DC240. 1999-10-13 03:01:37 +00:00
augustss
ea503f0b6c Regen. 1999-10-13 02:25:26 +00:00
augustss
86911423eb Add SIIG DigiFilm-Combo Reader 1999-10-13 02:24:59 +00:00
augustss
11403b6ec1 Fix some bugs in USB controller detach code. 1999-10-12 20:02:47 +00:00
augustss
df435c83b2 Add an event mechanism so that a userland process can watch devices come
and go.
1999-10-12 11:54:56 +00:00
augustss
3887698369 Regen. 1999-10-12 11:27:52 +00:00
augustss
e202d5a5c2 Add another device. 1999-10-12 11:25:13 +00:00
augustss
6628b9be8a Stylistic changes. 1999-10-12 11:24:22 +00:00
augustss
b14b78dfc9 Deallocate resources (bus space and interrupts) when detaching from
the bus.
1999-10-12 11:21:24 +00:00
augustss
2f9a41c5e7 Regen. 1999-10-11 09:17:22 +00:00
augustss
bd08192b30 Add more devices. 1999-10-11 09:16:59 +00:00
augustss
740ae27d5a Add a quirk for devices that lie about how they are powered. 1999-10-11 09:16:39 +00:00
augustss
d0bbed5169 Remove an obsolete comment. 1999-10-11 09:15:34 +00:00
nathanw
88a4e0db3c Regen. 1999-10-05 20:09:44 +00:00
nathanw
d05fd19adc Add In-Systems ISD-110 IDE adapter. 1999-10-05 20:03:49 +00:00
augustss
ef0ba32b7d Regen. 1999-10-04 19:05:42 +00:00
augustss
7a8b326ba9 Add Activewire IO boards. 1999-10-04 19:05:13 +00:00
thorpej
6d0137c519 Update for SCSIPI changes. 1999-09-30 23:13:41 +00:00
augustss
fb7795c908 Make sure the HC deactivation is propagated. 1999-09-18 11:25:50 +00:00
augustss
97a24aa488 Make defines follow the standard. 1999-09-16 21:53:58 +00:00
augustss
a4457e18b3 More DIAGNOSTIC paranoia. 1999-09-16 19:20:34 +00:00
augustss
09774ca21c Remove one, add none! 1999-09-15 21:14:44 +00:00
augustss
2557320246 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.
1999-09-15 21:14:03 +00:00
augustss
7fcc1703ff Cosmetic change: s/xfer/data/ 1999-09-15 21:12:29 +00:00
augustss
80e09c28e9 Use a bigger buffer when transferring data. 1999-09-15 21:11:27 +00:00
augustss
58c7de99c1 Move the code around a little and clearly mark how to delay attachment
(during cold boot) until the interrupts are on.
1999-09-15 21:10:11 +00:00
augustss
5260cadff2 Add a sanity check to the computed actual transfer length. 1999-09-15 21:08:59 +00:00
augustss
d4f0eac72e Change SPLUSBCHECK diagnostic macro a little. 1999-09-15 21:08:19 +00:00
augustss
e54df1b10c Handle the use_polling flag with a lttle more care and only set it if
we are cold booting.
1999-09-15 14:17:14 +00:00
augustss
60199e09b6 Regen. 1999-09-15 13:57:26 +00:00
augustss
df70e460db Make vendor names more consistent. 1999-09-15 13:57:09 +00:00
augustss
adc55421b4 Regen. 1999-09-15 12:31:28 +00:00
augustss
f14a3915b3 Add a number of devices and rename a few. From a Linux web site. 1999-09-15 12:30:59 +00:00
augustss
7049e8eb1b Add preliminary (untested) code for detaching the USB host controller
(needed for CardBus based controllers).
1999-09-15 10:25:30 +00:00
augustss
5486205b69 Regen. 1999-09-14 22:06:44 +00:00
augustss
ed9b74f17a Sort out some confusion about which vendor is really Belkin. 1999-09-14 22:06:21 +00:00
augustss
c4d6d6b991 Put a reference counter in the softc. Without this the driver might access
data that has been freed because the detach() routine returns to early.
1999-09-13 21:35:08 +00:00
augustss
ba2c2e2ade * Make sure an aborted pipe is marked as not running.
* Start queued request in the right order.
* Insert some more DIAGNOSTIC sanity checks.
1999-09-13 21:33:25 +00:00
augustss
bc5da9a8da Make sure timeouts count as interrupt context too. 1999-09-13 19:49:41 +00:00
augustss
ff6a476e6c Rearrange the code a little so we can decide if we are in process
or interrupt context in a reliable way.  Mainly used for DIAGNOSTIC.
1999-09-13 19:18:17 +00:00
augustss
eadd0f76da Add needs-flag to ukbd. Fixes PR 8385 from Izumi Tsutsui
<tsutsui@ceres.dti.ne.jp>.
1999-09-12 17:40:57 +00:00
augustss
b1a719a6cc Add a flag in the request to determine if the data copying is done by the
driver or the usbdi layer.
1999-09-12 08:23:42 +00:00
augustss
305998532f Dot't forget to deactivate subdevices. 1999-09-12 08:21:49 +00:00
thorpej
febf7ffb86 Display more verbose information about the command protocol and wire
protocol used by the device, e.g.:

umass0 at uhub0 port 1 configuration 1 interface 0
umass0: Iomega USB Zip 100, rev 1.00/1.00, addr 2
umass0: SCSI over Bulk-Only (iclass 8/6/80)
1999-09-12 02:40:59 +00:00
thorpej
f696794a34 Hot-unplug works now. 1999-09-11 21:45:28 +00:00
thorpej
f7c20484b6 - If a command fails, assume the device returned CHECK CONDITION status,
and issue a REQUEST SENSE.  This fixes the media change problems I was
  having w/ my USB ZIP drive.
- Clean up some debugging code.
- Implement more hot-unplug stuff.
1999-09-11 20:52:07 +00:00
augustss
ca8281fbcc Pre-allocate the DMA buffer. This makes the driver slightly more efficient. 1999-09-11 10:40:07 +00:00
augustss
98b6524413 * Move DMA buffer allocation to HC independent code.
* Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN.
1999-09-11 08:19:26 +00:00
augustss
90daa4736b Comment out the GET_DEVICE_ID code, because for some unknown reason it
causes printing to fail sometimes.
1999-09-10 19:28:26 +00:00
augustss
6b9aae738e Update doc URLs and fix a typo in umass_bulk_get_max_lun(). 1999-09-09 17:12:03 +00:00
augustss
9bebdb616f Remove some and add some. 1999-09-09 13:05:05 +00:00
augustss
8c655e84f2 An EXPERIMENTAL audio driver. It still needs work, e.g., in the mixer
part to give reasonable names to the mixer controls.
1999-09-09 12:28:25 +00:00
augustss
2aadcb5f47 Change the internal API to allow DMA buffers to be pre-allocated by
the device driver instead of happening automagically in the HC driver.
This affects both the HC-USBD interface as well as the USBD-device
interface.
This change will allow DMA buffers to be reused e.g. in isochronous
traffic.

Add isochronous support to the UHCI driver (not for OHCI yet).
1999-09-09 12:26:43 +00:00
augustss
977c927d44 Do a brain dump of items to do. 1999-09-07 14:58:12 +00:00
augustss
6e6d511cf0 Add USUBCLASS_MIDISTREAM definition, per request from MAEKAWA Masahide
<bishop@rr.iij4u.or.jp>.
1999-09-06 17:16:47 +00:00
augustss
2425433ff6 Change some printf to DPRINTF for consistency. From Nick Hibma, FreeBSD. 1999-09-05 21:22:38 +00:00
augustss
24251055bc Change the way the `struct device' base part of all driver softc are
declared and accessed to make it more portable.  Idea from Nick Hibma, FreeBSD.
No functional changes.
1999-09-05 19:32:18 +00:00
augustss
f3421bec94 Change the way the direction is extracted from the endpoint descriptor.
No functional changes to the drivers.  From Nick Hibma, FreeBSD.
1999-09-04 22:26:11 +00:00
augustss
d7a4829d27 Regen. 1999-09-02 22:07:43 +00:00
augustss
1fed6ca851 Add Logitech QuickCam. 1999-09-02 22:07:29 +00:00
augustss
ba551e0c6a Regen. 1999-09-02 19:17:57 +00:00
augustss
f6ae3ac6a9 Add some Entrega and Belkin serial adapters. 1999-09-02 19:13:43 +00:00
augustss
60179e2a13 Avoid null reference, from Nick Hibma, FreeBSD. 1999-09-02 18:13:50 +00:00
augustss
46fd81350a Rewrite interrupt routine from clarity. From Nick Hibma, FreeBSD. 1999-09-02 18:11:41 +00:00
thorpej
dea48ccdf9 Oops, back out stuff I didn't mean to commit. 1999-08-30 01:05:08 +00:00
thorpej
a138de1eb5 Add detach goo; still needs work in the `scsibus' and further layers. 1999-08-30 01:04:31 +00:00
augustss
7a3bd0ab27 Add some missing request codes. 1999-08-29 22:45:41 +00:00
thorpej
dd611fa302 Set openings to 1; only one command may be queued with the device at
a time.
1999-08-29 20:41:12 +00:00
thorpej
54f6a91c01 Issue a Get Max Lun request to determine the max lun. 1999-08-29 19:58:55 +00:00
thorpej
04cd1cc8ee Make usbd_errstr() always return a useful error message; it's not like
the strings are that big.
1999-08-29 19:41:27 +00:00
thorpej
d1088a5081 One more TODO item; sub-classes other than SCSI. 1999-08-29 18:58:03 +00:00
thorpej
59e86c6637 Correct typo in URL. From Bill Sommerfeld. 1999-08-29 18:57:15 +00:00
thorpej
f88e157ddb Update the match routine to reflect that the driver actually matches
"Mass Storage/SCSI/Bulk".
1999-08-29 18:56:24 +00:00
thorpej
e01cef341e Update documentation references. 1999-08-29 18:13:26 +00:00
thorpej
f91881f24a Since we poll around the `done' member of a usbd_request, make it volatile. 1999-08-29 17:57:25 +00:00
thorpej
cbd1c08a2c Note a few TODO items. 1999-08-29 17:34:11 +00:00
thorpej
246ab7936d One item off this list done! 1999-08-29 16:53:04 +00:00
thorpej
cbb4401dfd Port the FreeBSD `umass' driver to NetBSD. This is still a work-in-progress
since a few things don't yet work properly:
- Sense data isn't reported properly (err, at all).
- It doesn't work with anything other than the Iomega USB Zip drive.
- Hot-unplug doesn't work yet.

...but this is enough to make my shiny new USB Zip drive go.
1999-08-29 00:30:08 +00:00
augustss
036a9c6974 Change some 'struct device' to 'bdevice'. From FreeBSD. 1999-08-28 21:42:35 +00:00
augustss
1aa63c9fab Add some comments. 1999-08-28 10:04:01 +00:00
augustss
103e304a84 Add to the growing list. 1999-08-28 10:03:38 +00:00
augustss
2126f7df24 Change a type name. 1999-08-28 10:01:59 +00:00
augustss
598999e482 Fix from FreeBSD. 1999-08-28 10:01:42 +00:00
augustss
e470b13e28 Regen. 1999-08-28 10:01:19 +00:00
augustss
4b398d8f1b Fixes/updates from FreeBSD. 1999-08-28 10:00:56 +00:00
augustss
65845c9e2a Regen. 1999-08-25 23:23:33 +00:00
augustss
7529455612 Add a PS2 to Mac USB Adapter from P.I. Eng. 1999-08-25 23:23:17 +00:00
augustss
e0e1fbbe36 Regen. 1999-08-25 20:34:56 +00:00
augustss
02a79dc13e Add Multitech MT5634ZBA. From FreeBSD. 1999-08-25 16:28:12 +00:00
soren
205c3f5a73 Regenerate. 1999-08-24 21:25:52 +00:00
soren
82cb092b79 Fix typo in comment. 1999-08-24 21:25:22 +00:00
augustss
1f2661798f Make sure to mark the device as dying already in the (de)activate routine.
This avoids access to it before the detach routine has blown it away.
1999-08-23 22:55:14 +00:00
augustss
007da22e55 At attach time, get and print (parts of) the IEEE 1284 device id. 1999-08-23 22:35:19 +00:00
augustss
70020635c3 Regen. 1999-08-23 16:54:13 +00:00
augustss
c206e4ab37 Add a Kawatsu mouse. 1999-08-23 16:53:32 +00:00
augustss
592de98a19 Remove some unneeded needs-flag. 1999-08-23 07:07:47 +00:00
augustss
4c217fdaf8 Merge the soft_{td,ed} with the real {td,ed}. This saves time and space.
(And fix typo in corresponding uhci change.)
1999-08-22 23:41:00 +00:00
augustss
cc8b61583c Merge the soft_{td,qh} with the real {td,qh}. This saves time and space. 1999-08-22 23:19:56 +00:00
augustss
be7e2fac07 More things to do... 1999-08-22 22:24:25 +00:00