jdolecek
0f4abac044
use nopoll() instead of empty uriopoll() for NetBSD
...
rename former uriopoll() to urioselect() and provide it only for OpenBSD -
FreeBSD uses nopoll() for urio too
g/c no longer needed uriopoll define for OpenBSD
2002-10-11 20:29:30 +00:00
thorpej
90c48d2563
Use CFATTACH_DECL().
2002-10-01 01:25:25 +00:00
thorpej
bf97c13c6c
Declare all cfattach structures const.
2002-09-27 20:41:46 +00:00
augustss
86650920c9
Get rid of trailing white space.
2002-07-11 21:14:24 +00:00
lukem
06de426449
SIMPLEQ rototill:
...
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
ichiro
b66fc78bc0
URL_DEBUG was related to usb_port.h
2002-03-28 21:49:19 +00:00
augustss
ab875c9c5c
Some minor fixes from FreeBSD.
2002-02-26 02:00:16 +00:00
augustss
306aa99ff8
Some portability improvement.
...
Add define for usb.h version.
2002-02-25 00:46:37 +00:00
augustss
f1ee77f0c3
Add USTIR_DEBUG.
2002-01-03 18:57:36 +00:00
augustss
1d26d9e5fd
Move debug define.
...
Remove some cruft.
Update with some stuff from Warner Losh's driver.
2002-01-02 03:44:56 +00:00
augustss
152efb1a0e
Make a typedef for struct proc to make portingeasier.
2001-12-31 12:15:21 +00:00
augustss
0df9b7654d
ANSIfy.
2001-12-27 11:28:01 +00:00
augustss
0228f218d3
Add UISDATA_DEBUG.
2001-12-24 21:37:52 +00:00
augustss
c6107a12f8
Add UIRDA_DEBUG.
2001-12-20 17:41:32 +00:00
augustss
02186d8353
Small portability improvement.
2001-11-10 16:53:32 +00:00
bouyer
bc980d7eba
Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define
...
functions to send theses commands in scsipi_base.c and use them instead
of ad-hoc commands setups.
2001-05-14 20:35:27 +00:00
thorpej
5274818efc
Switch to USB_USE_SOFTINTR. The callout hack does indeed work
...
fine for systems without generic soft interrupts, even if it is
a little sub-optimal. Consider it a penalty for ports not
implementing a kernel API.
Addresses kern/11957. The PR has been open for 4 months, and
I have work blocked on the continued existence of splimp() in
the networking code.
2001-04-12 01:39:04 +00:00
ichiro
718d1ed83c
add UMCT_DEBUG option
2001-03-28 19:00:39 +00:00
ichiro
2ef094d072
add UPLCOM_DEBUG
2001-03-26 12:40:39 +00:00
augustss
a88f037c70
MAke USB_DEBUG turn on UVISOR_DEBUG.
2001-01-23 17:03:19 +00:00
augustss
e8db629494
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.
2001-01-21 02:39:52 +00:00
augustss
35e36fee18
Add USSCANNER_DEBUG
2001-01-11 06:33:51 +00:00
augustss
0a739c7166
A portability define.
2000-12-04 03:38:56 +00:00
augustss
9a10107274
Some OpenBSD defines. From aaron@monkey.org
2000-11-10 13:52:28 +00:00
augustss
e832785e4b
Add USB scanner driver.
...
XXX Not tested yet.
2000-09-23 04:32:23 +00:00
augustss
cf4250b7f3
Add UKBD_DEBUG.
2000-08-24 14:13:38 +00:00
augustss
5218e2a490
Improve some portability items.
2000-06-01 14:37:51 +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
219f3c9ccf
More debug.
2000-04-14 14:41:35 +00:00
augustss
d3908431bb
Turn on UVISOR_DEBUG with USB_DEBUG.
2000-03-30 17:04:47 +00:00
augustss
4fe9287221
Two more OpenBSD fixes.
2000-03-30 08:53:30 +00:00
augustss
dd7160dcba
Afew more OpenBSD portability fixes.
2000-03-30 00:18:17 +00:00
augustss
a25e27e1eb
Some OpenBSD portability fixes.
2000-03-29 18:24:52 +00:00
augustss
8456fa4709
Add a flag for umass debugging.
2000-03-27 22:40:48 +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
0069eba19b
Some cleanup and renaming of the callouts used in USB drivers.
2000-03-24 22:03:28 +00:00
thorpej
fc96443d15
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.
2000-03-23 07:01:25 +00:00
augustss
481e8339dc
Change the USB event mechanism to include more information about devices
...
and drivers. Partly from FreeBSD.
2000-02-02 07:33:59 +00:00
augustss
36987ec1cc
Enable AUE_DEBUG the usual way.
2000-01-16 15:36:28 +00:00
augustss
f17d5fe839
Change compat defines a little for power hooks.
2000-01-16 10:38:58 +00:00
augustss
5a91238d5f
Turn on more debugguing flags with USB_DEBUG.
2000-01-16 09:42:36 +00:00
augustss
9647c5b871
Another compat define.
2000-01-16 09:34:18 +00:00
augustss
3386c68b46
Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma.
1999-11-18 23:32:25 +00:00
augustss
b019d68caa
Some minor changes from OpenBSD.
1999-11-16 12:04:28 +00:00
augustss
708b8c75d1
Give uaudio its own debug flag.
1999-10-14 01:18:39 +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
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
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