imp
de171ef203
Prefer device_printf to printf("%s: ...", device_get_nameunit()). On
...
amd64, we save about 240 bytes (this is about 20 per instance).
Approved by: re (blanket)
2007-07-05 06:42:14 +00:00
imp
d4fd7053d4
Latest round of usb cleanups:
...
o Consistently use device_foo_t and bus_foo_t for functions implementing
device_foo and bus_foo respectively. Adjust those routines that were wrong
(we should do this throughout the tree).
o make all the modules depend on usb. Otherwise these modules won't
load.
o ucycom doesn't need usb_port.h
o Minor unifdefing
o uhub, umass, ums, urio, uscanner conversion complete.
o ukbd: Remove the NO_SET_PROTO quirk (fixes a PR 77940). NetBSD removed
their check and setting the proto a long time ago.
o umodem panic fixed. UQ_ASSUME_CM_OVER_DATA quirk removed because I've never
seen a umodem that needed this rejection for proection (this gets rid of
~20% of the quirks).
Approved by: re@ (kensmith)
PR: 77940
2007-06-21 14:42:34 +00:00
imp
84d4dbb618
s/logprintf/printf/g
...
Approved by: re@
2007-06-20 05:11:37 +00:00
imp
458cfea006
Finish removal of usb_port.h macros.
2007-06-18 22:27:57 +00:00
imp
3df4a89c17
Expand USB_MATCH_START
2007-06-17 16:24:49 +00:00
imp
6e9a478638
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
imp
e834ae963f
Remove USBDEV() macro. We do not need a macro that is defined as its
...
only argument. It was used inconsistently in the tree, so remove it.
2007-06-12 16:52:07 +00:00
imp
d4a700c2dc
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
imp
582ec1f8d6
Kill devinfo stuff. It is no longer needed.
...
Kill bogus bzero as necessary.
Minor tidy.
Expand USB_ATTACH_SETUP inline where needed.
2007-06-09 06:39:43 +00:00
netchild
f2e6b7856f
Make it obvious that we don't care about the return value of
...
usbd_endpoint_count(), the failure case is handled implicit in the
following code.
Found by: Coverity Prevent (tm)
CID: 56
2007-04-01 13:46:39 +00:00
imp
28b388f478
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
imp
443562c936
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
ticso
c5417f9f33
Remove spl.
...
Restart request on USBD_IOERROR.
MFC after: 2 weeks
2005-11-05 17:17:57 +00:00
phk
2853ff590d
Eliminate two unused arguments to ttycreate().
2005-10-16 20:22:56 +00:00
ticso
691cfe03b0
initialize pp->p_sc so it can be referenced later.
...
dynamicaly allocate the per port array.
allow up to 32 serials per USB device.
ask the device for correct pipe sizes.
2005-03-17 22:47:18 +00:00
imp
4b319958e7
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +00:00
phk
e8e6e088ca
Use generic tty code instead of local copies.
...
New devicename is ttyy{unit}{port}
No callout devices created as there is no modemcontrol on these ports.
Add data structure to represent each port to avoid excessive array use.
2004-10-12 09:18:37 +00:00
phk
e107a6f140
Use ttyalloc() instead of ttymalloc(NULL)
2004-09-17 07:28:07 +00:00
imp
0c243144c1
Tweak the compatibility macros a little so that the device printing is
...
moved into them.
2004-08-15 23:39:18 +00:00
phk
f00200d8a4
Preparation commit for the tty cleanups that will follow in the near
...
future:
rename ttyopen() -> tty_open() and ttyclose() -> tty_close().
We need the ttyopen() and ttyclose() for the new generic cdevsw
functions for tty devices in order to have consistent naming.
2004-07-15 20:47:41 +00:00
imp
f9dd4765eb
MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.
2004-06-27 12:41:44 +00:00
le
35fc8cf52c
Catch up with usbd_get_string_desc() change.
2004-06-26 13:21:31 +00:00
phk
dfd1f7fd50
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
phk
06049d3eaf
Manual edits to change linesw[]-frobbing to ttyld_*() calls.
2004-06-04 20:04:52 +00:00
phk
ba3920e2a2
Machine generated patch which changes linedisc calls from accessing
...
linesw[] directly to using the ttyld...() functions
The ttyld...() functions ar inline so there is no performance hit.
2004-06-04 16:02:56 +00:00
phk
9bb2c2f2d2
Make the remaining serial drivers call ttyioctl() rather than calling
...
the linedisc directly.
2004-06-04 08:02:37 +00:00
phk
b59eec9a5a
There is no need to explicitly call ttwakeup() and ttwwakeup() after
...
ttyclose() has been called. It's already been done once by ttyclose,
and probably once by the line-discipline too.
2004-06-01 11:38:06 +00:00
phk
d4a4e27cd4
ttyclose() increments t_gen. Remove redundant increments in drivers.
2004-06-01 10:15:56 +00:00
phk
9d102d7d5a
Add missing <sys/module.h> includes
2004-05-30 20:08:47 +00:00
ticso
fe22b3cc39
add driver for BWCT console management serials
2004-03-01 02:34:49 +00:00