Commit Graph

47 Commits

Author SHA1 Message Date
riastradh 1509380101 usbdevs(8): Misc KNF.
- Fix whitespace and braces.
- malloc(n * sizeof(...)) -> calloc(n, sizeof(...))
2022-09-13 08:34:37 +00:00
christos 81bb75a321 Use strtoi instead of atoi() to catch bad input (Alexander Kuleshov) 2019-11-27 17:56:08 +00:00
mrg 8f0a47505d dynamically calculate the list of usb hubs from drvctl if available. 2019-11-12 07:41:50 +00:00
kamil 77a1ad5f00 Switch the iconv(3) prototype to the POSIX conformant variation
Remove const from the 2nd argument.

const char ** and char ** are incompatible types and it was a cost to keep
the technically incompatible form for a more purist variation. NetBSD was
almost the last alive OS to still keep the const argument (known leftovers:
Minix and Illumos).

Keep the const form for the internal purposes inside citrus and rump.

Address the build breakage fallout in the same change.

There are no ABI changes.

Change accepted by core@.
2019-10-24 18:17:14 +00:00
gson a9987ef8b8 Look for up to 16 USB controllers, to match the number of device nodes
now created by MAKEDEV.
2019-09-21 16:22:25 +00:00
jmcneill 81f085d69d Print USB_SPEED_SUPER_PLUS capability if present 2018-07-05 19:46:58 +00:00
skrll 643b0f021f Fix previous... handle hub ports 2016-09-07 08:09:59 +00:00
skrll acf2328b3d Don't read beyond the end of the array when given a overly large number
of ports on a hub.
2016-09-07 08:05:02 +00:00
skrll 7c0631bd92 Add __RCDIS 2016-09-02 05:59:04 +00:00
mlelstv b66056e8a0 Print release also in hex.
Print device class information if -v is used twice.
2016-06-26 07:10:24 +00:00
skrll 46ef4b0409 Report super speed devices. From Takahiro HAYASHI. 2014-08-12 13:40:07 +00:00
jakllsch f042e00fb6 Try to dump device at address 0. Allows dumping of xhci(4) root hub. 2013-09-14 14:07:56 +00:00
jakllsch 767644da8b Use symbolic constants EXIT_SUCCESS, EXIT_FAILURE, and NULL where appropriate. 2013-07-08 14:47:18 +00:00
joerg 30469ad85e static + __dead 2011-08-30 20:51:29 +00:00
wiz d91834d02d Sync usage with SYNOPSIS. 2011-08-15 14:31:58 +00:00
wiz 8579c851c4 Sort options in SYNOPSIS. From Snader_LB. 2011-08-15 14:31:24 +00:00
tnn c908dc3b47 Use proper capitalization. Reported on IRC. 2011-08-15 14:20:08 +00:00
drochner 6d0b625409 The structure returned by USB_DEVICEINFO has the vendor/device strings
UTF-8 encoded now. We can't simply print this to a terminal, so
convert it to the current codeset first.
2010-02-02 16:25:30 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
augustss 56cfb488eb Print serial number if there is one. 2005-05-08 08:12:45 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
itojun d9f2774c1e use bounded string op 2003-07-13 12:08:28 +00:00
simonb 46f45ff547 KNF- blank line at start of a function with local variable declarations. 2003-01-20 01:14:35 +00:00
christos 3e5a9a9d41 Forgot to update this one for the structure prefix changes. 2002-02-21 00:34:31 +00:00
augustss 2e3aacf23d Adapt to small ioctl(USB_DEVICEINFO) change. 2001-11-17 01:52:56 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
augustss 54f9960ad3 Update usage message. 2001-01-09 17:35:45 +00:00
augustss 26ebe4297f Add a flag to show the device driver(s) associated with each device. 2000-12-30 13:57:44 +00:00
augustss 7f426f36c1 ANSIfy. 2000-12-30 13:50:43 +00:00
bjh21 95066d7f25 Put usage message in KNF order. 2000-10-15 12:46:31 +00:00
bjh21 b0c5636424 Canonicalize SYNOPSIS.
Widen left column of option list.
Add FILES section, so the possible values of <dev> are clearer.
2000-10-15 12:44:11 +00:00
simonb fd4ede242b Don't declare 'extern opt*' getopt variables. 2000-04-14 06:26:52 +00:00
augustss fda1b1b26f Make output a little less confusing if run without root priviliges.
From "Soren S. Jorvang" <soren@wheel.dk>
1999-09-08 02:39:36 +00:00
augustss 895c141c35 Improve messages in case of error. 1999-06-30 06:23:28 +00:00
tron bf63a3160b Back out last commit, local includes were out of sync. 1999-05-16 18:00:35 +00:00
tron 0f70bcd711 Adapt for changes in "src/sys/dev/usb/usb.h". 1999-05-16 17:18:41 +00:00
augustss 041a8536ac s/revision/release/ 1999-05-16 12:05:10 +00:00
augustss caf9aabb3e Make opyrights conform. 1999-04-13 20:50:48 +00:00
augustss 0a52ae7e58 Update for the ioctl(USB_DEVICEINFO) API change. 1998-12-29 15:29:41 +00:00
augustss 9726cfd1fb Make the copyright header conform to the NetBSD template. 1998-11-25 22:17:06 +00:00
augustss cf835b8a8d Update man page.
Be a little more verbose with -v when no controllers were found.
1998-07-23 13:57:51 +00:00
augustss 6b7023e319 Fix some typos. 1998-07-13 11:01:50 +00:00
augustss 3ac7469e03 Remove some Makefile cruft and improve an error message. 1998-07-12 20:40:44 +00:00
augustss 81565845ef Add missing copyright notice. 1998-07-12 20:32:30 +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