Warner Losh
96e0645dd4
Prefer device_printf to printf("%s:...", device_get_nameunit(),...);
...
This saves ~300 bytes for uvscom.c and ~100 for uvisor.c
Approved by: re (blanket)
2007-07-05 06:28:46 +00:00
Warner Losh
7bd250d818
s/logprintf/printf/g
...
Approved by: re@
2007-06-20 05:11:37 +00:00
Warner Losh
70f16d924f
Finish removal of usb_port.h macros.
2007-06-18 22:27:57 +00:00
Warner Losh
fc5d431363
Expand USB_MATCH_START
2007-06-17 16:24:49 +00:00
Warner Losh
778e5b6687
Expand USB_DETACH, USB_ATTACH and USB_MATCH inline. No functional
...
change, and MD5's appear to be the same.
2007-06-13 05:37:59 +00:00
Warner Losh
9ab3a4add1
First pass at removing __OtherBSD__. We can't blindly remove all of
...
them in bulk because there is at least one feature that's
unimplemented on FreeBSD that needs to be done and these are good
placeholders.
2007-06-12 19:40:20 +00:00
Warner Losh
4f9929e80f
Eliminate usb_thread_t.
2007-06-12 17:30:54 +00:00
Warner Losh
645016c0e4
Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate from
...
usb_port.h. They aren't needed, and are a legacy of this code's past.
2007-06-12 15:37:19 +00:00
Warner Losh
a5b1cb0cd0
Remove devinfo junk.
...
Remove bogus bzero/memset
Expand USB_ATTACH_SETUP
Minor nits
2007-06-09 06:42:19 +00:00
Christian Brueffer
578e607926
Remove compat ifdefs for version < 500014 from the rest of the USB files.
...
Approved by: rwatson (mentor)
MFC after: 1 week
2007-06-07 09:29:37 +00:00
David Malone
041b706b2f
Despite several examples in the kernel, the third argument of
...
sysctl_handle_int is not sizeof the int type you want to export.
The type must always be an int or an unsigned int.
Remove the instances where a sizeof(variable) is passed to stop
people accidently cut and pasting these examples.
In a few places this was sysctl_handle_int was being used on 64 bit
types, which would truncate the value to be exported. In these
cases use sysctl_handle_quad to export them and change the format
to Q so that sysctl(1) can still print them.
2007-06-04 18:25:08 +00:00
John Baldwin
4d70511ac3
Use pause() rather than tsleep() on stack variables and function pointers.
2007-02-27 17:23:29 +00:00
Warner Losh
2deae8fa2f
More removing compatibility macros.
...
md5 still the same.
"Dave, stop. I feel my mind slipping away." -- hal
2006-09-07 00:06:42 +00:00
Warner Losh
56635f6bd3
s/Static/static/g
...
s/device_ptr_t/device_t/g
No md5 changes in the .o's
# Note to the md5 tracking club: $FreeBSD$ changes md5 after every commit
# so you need to checkout -kk to get $FreeBSD$ instead of the actual value
# of the keyword.
2006-09-06 23:44:25 +00:00
Ruslan Ermilov
3238c6bd33
Fix -Wundef from compiling the amd64 LINT.
2005-12-04 10:06:06 +00:00
Warner Losh
c82f53f61d
'PC Card' instead of other variants
2005-09-22 06:01:44 +00:00
Shunsuke Akiyama
4b6cd0347a
Use a taskqueue to handle port status changes.
...
Calling ucom layer directly from interrupt context make a panic.
MFC after: 1 week
2005-01-31 13:58:10 +00:00
Poul-Henning Kamp
d75207f145
Overhaul ucom serial driver by using generic stuff instead of homerolled
...
all over the place.
2004-09-17 11:53:45 +00:00
Warner Losh
d1458cfdf4
MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.
2004-06-27 12:41:44 +00:00
Poul-Henning Kamp
fe12f24bb0
Add missing <sys/module.h> includes
2004-05-30 20:08:47 +00:00
MIHIRA Sanpei Yoshiro
a62da76023
Add support SUNTAC U-Cable type A4 (AS144L4)
...
http://www.sun-denshi.co.jp/scc/products/mobile/as144l4/as144l4.htm (in Japanese)
PR: kern/66144
Submitted by: KURASHINA Hideyuki <rushani@FreeBSD.org>
2004-05-02 13:21:28 +00:00
Warner Losh
65a690ef74
It appears that we don't need sys/vnode.h, which is a layering violation...
2004-01-02 05:16:01 +00:00
Shunsuke Akiyama
565f53bbaa
Make interrupt pipe interval time configurable.
...
- Add kernel options: {UPLCOM,UVSCOM}_INTR_INTERVAL
- Add sysctl variables: 'hw.usb.{uplcom,uvscom}.interval'
MFC after: 1 week
2003-11-16 12:26:10 +00:00
David E. O'Brien
aad970f1fe
Use __FBSDID().
...
Also some minor style cleanups.
2003-08-24 17:55:58 +00:00
John-Mark Gurney
c97325b0c8
WARNING: white space diff
...
This code reduces the number of trailing white space to be more in line
w/ NetBSD. I don't regenerate usbdevs, saving that for when it really
changes.
2003-07-04 01:50:39 +00:00
Shunsuke Akiyama
20280807ca
Fix device freeze to reduce output packet size.
...
And make this value configurable by kernel config or sysctl.
2003-03-09 11:50:27 +00:00
Shunsuke Akiyama
5ce609f75b
Add missing module dependency.
2003-03-09 11:14:34 +00:00
Warner Losh
a163d034fa
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
MIHIRA Sanpei Yoshiro
f3e45b4bdc
Add support SUNTAC Ir-Trinity IS96U
...
PR: 48212
Submitted by: Masaharu FUJITA <m@fjts.org>
2003-02-13 12:55:18 +00:00
MIHIRA Sanpei Yoshiro
a109b1c786
Add support SUNTAC U-Cable TypeD2 (DS96L)
...
PR: kern/47547
Submitted by: Kazu TAKAMUNE <takamune@mail.com>
2003-02-11 00:15:01 +00:00
Alfred Perlstein
44956c9863
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
Josef Karthauser
11f314d4cb
Apply some fixups in the driver_t's.
...
Submitted by: akiyama
MFC after: 3 days
2002-11-17 14:22:37 +00:00
Josef Karthauser
3b7efc56d0
Use the hw.usb sysctl tree instead of debug.usb.
...
Requested by: imp
2002-08-08 12:05:51 +00:00
Josef Karthauser
528d1a7fbc
Replace the FOO_DEBUG definitions with USB_DEBUG, and switch the
...
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.
2002-07-31 14:34:36 +00:00
Josef Karthauser
0e6b196686
Get bored with hard coded debug level variables and introduce a debug.usb
...
sysctl tree for tweaking them real-time.
Reviewed by: iedowse
2002-07-31 13:33:55 +00:00
Josef Karthauser
04b401aa8a
It's not "usio" anymore, it's "ucom".
...
Submitted by: nsayer
2002-07-10 01:42:25 +00:00
Josef Karthauser
f411925536
Improve detach operation.
...
Submitted by: akiyama
2002-07-10 00:52:16 +00:00
Josef Karthauser
990e9fea48
Use usb_lookup instead of rolling our own.
...
Suggested by: Lennart Augustsson <lennart@augustsson.net>
2002-03-28 12:22:58 +00:00
Josef Karthauser
fed2df0509
Remove some surplus whites.
2002-03-28 12:06:29 +00:00
Josef Karthauser
c465d35466
Move some includes around to make it more *BSD compliant.
...
Suggested by: Lennart Augustsson <augustss@netbsd.org>
2002-03-27 13:32:42 +00:00
Josef Karthauser
916e6e02e5
Add a USB comm driver.
...
Ported from NetBSD by: akiyama
2002-03-18 18:23:42 +00:00