augustss
152efb1a0e
Make a typedef for struct proc to make portingeasier.
2001-12-31 12:15:21 +00:00
augustss
c01e71bac5
Plug a memory leak in an error case.
2001-11-29 11:07:12 +00:00
lukem
667807e40c
add RCSIDs
2001-11-13 06:24:53 +00:00
nathanw
48bdb0d067
Match printers that report their interface as IEEE 1284 in addition to
...
bidirectional.
2001-10-19 15:30:25 +00:00
augustss
bafbeaf802
Use the bi-directional protocol if the printer supports it.
...
This is the way that e.g. HP recommends (but then some of their printers
have a bug that makes the input pipe useless anyway).
Also try reset both the 1.0 and 1.1 ways.
2001-04-16 00:18:06 +00:00
augustss
5b6d98341e
Try both the old (wrong) and new SOFT_RESET request type.
2001-01-07 14:26:19 +00:00
augustss
79f0bd6e1f
Update many URLs.
2000-12-29 01:24:55 +00:00
augustss
f680fa762c
Make sure to increment reference count while the (lengthy) opening
...
operation is happening so we don't lose on disconnect.
2000-12-05 14:01:33 +00:00
augustss
ed9486e158
Bring the coding style into the 80s, i.e., get rid of __P and use
...
ANSI prototypes and declarations.
2000-06-01 14:28:57 +00:00
augustss
30c20f930f
Change my email address.
2000-04-27 15:26:44 +00:00
augustss
eaaf682603
Fix a typo in a comment.
2000-04-14 14:12:11 +00:00
augustss
a25e27e1eb
Some OpenBSD portability fixes.
2000-03-29 18:24:52 +00:00
augustss
fc72e72d7d
Change (almost) all static to Static. The symbol `Static' can then be defined
...
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
augustss
119a2a3a80
Remove irrelevant comment.
2000-03-06 20:58:39 +00:00
augustss
7d05674ba7
Distinguish between device and interface classes.
...
(I finally found a document that said that they were different.)
2000-02-29 21:37:00 +00:00
augustss
4b93911b25
Generate usb events on attach and detach.
2000-02-02 13:18:45 +00:00
augustss
3386c68b46
Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma.
1999-11-18 23:32:25 +00:00
augustss
cdaec29859
A few more purely stylistic changes that I missed in the last round.
1999-11-17 23:00:49 +00:00
augustss
0d2fabdf26
A number of stylistic changes to increase readability (many suggested
...
by Nick Hibma):
use NULL not 0
declare all local definitions static
rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
rename s/r/err/
use implicit test for no err
KNF
1999-11-12 00:34:57 +00:00
augustss
03a522d3c1
Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
...
the USB stack compiles on FreeBSD again.
1999-10-13 08:10:55 +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
80e09c28e9
Use a bigger buffer when transferring data.
1999-09-15 21:11:27 +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
ca8281fbcc
Pre-allocate the DMA buffer. This makes the driver slightly more efficient.
1999-09-11 10:40:07 +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
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
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
036a9c6974
Change some 'struct device' to 'bdevice'. From FreeBSD.
1999-08-28 21:42:35 +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
1de0531d8b
Simplify ulptwrite() by calling usbd_bulk_transfer(). This also makes
...
it interruptible.
1999-08-22 22:22:43 +00:00
augustss
b8b1e35ece
Some changes from FreeBSD (no functional differences).
1999-08-14 14:49:31 +00:00
augustss
021319d9b3
Avoid crashing if we are forced to close() before teh open() completed
...
(can happen on disconnect, probably due do dubious logic in vdevgone()).
1999-07-14 19:12:07 +00:00
augustss
b177c7a397
Totally redo the way device detach is done. It now uses a kernel event
...
thread and the config detach method.
Squish a number of space leaks on detach.
1999-06-30 06:44:22 +00:00
augustss
07e0165b97
Update/add URLs to relevant USB specs.
1999-01-10 11:13:36 +00:00
augustss
875aa92d2c
Various little fixes from the FreeBSD version.
1999-01-08 11:58:25 +00:00
augustss
3b9a669a7d
Remove #include that slipped in at FreeBSD merge.
1998-12-30 17:46:20 +00:00
augustss
e0c228ae9c
Merge changes to make the USB stack work with FreeBSD. The original
...
diffs from Nick Hibma <n_hibma@freebsd.org>, but with substantial
changes from me.
XXX Not tested on FreeBSD yet.
1998-12-26 12:53:00 +00:00
augustss
f8b9a417f0
Improvement to the ugen driver.
...
Better error checking.
Some code rearrengment.
1998-12-09 00:18:10 +00:00
augustss
dfff19e3d3
Take care of return code from uiomove().
1998-12-08 15:12:24 +00:00
augustss
cf75925c7f
Even shorter printfs at attach.
1998-12-02 22:54:52 +00:00
augustss
fd3af06364
Avoid wrapping lines in attach printfs.
1998-12-02 17:20:20 +00:00
augustss
ca707fcdf2
Make the copyright header conform to the NetBSD template.
1998-11-25 22:32:04 +00:00
augustss
2c5f27cf9d
Don't print device class in attach message.
1998-07-25 15:19:09 +00:00
augustss
deb00272b9
Add USB support. Supported so far:
...
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers
1998-07-12 19:51:55 +00:00