[sane-devel] How to find out if USB is available for compilation

paul beard paulbeard at mac.com
Wed Mar 6 21:49:33 GMT 2002


I don't know if this is what you want to do, but dmesg would have 
that info (I'm no aware of the moral equivalent of /proc).

here's some examples from NetBSD and FreeBSD.

[/home/paul]# uname -a
NetBSD purple.paulbeard.org 1.5.2 NetBSD 1.5.2 (PURPLE) #0: Fri 
Feb 15 22:35:22 PST 2002 
root at purple.paulbeard.org:/opt/src/sys/arch/macppc/compile/PURPLE 
macppc
(root at purple.paulbeard.org)-(01:41 PM / Wed Mar  6)
[/home/paul]# grep -i usb /var/run/dmesg.boot
usb0 at ohci0: USB revision 1.0
uhub0 at usb0

[/usr/home/paul]:: uname -a
NetBSD green.paulbeard.org 1.5.2 NetBSD 1.5.2 (GREEN) #8: Wed Feb 
13 14:32:22 PST 2002 
root at green.paulbeard.org:/usr/src/sys/arch/i386/compile/GREEN i386
(paul at green.paulbeard.org)-(01:47 PM / Wed Mar  6)
[/usr/home/paul]:: grep -i usb /var/run/dmesg.boot
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller 
(PIIX4) (rev. 0x01)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0

(paul at blue.paulbeard.org)-(01:47 PM / Wed Mar  6)
[/home/paul]:: grep -i usb /var/run/dmesg.boot
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 
0xfce0-0xfcff irq 11 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, 
addr 2
ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.10, addr 3, iclass 3/1

[/home/paul]:: uname -a
FreeBSD red.PAULBEARD.ORG 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri 
Feb  1 21:15:55 GMT 2002 
root at red.PAULBEARD.ORG:/usr/src/sys/compile/RED  i386
(paul at red.PAULBEARD.ORG)-(01:50 PM / Wed Mar  6)
[/home/paul]:: grep -i usb /var/run/dmesg.boot
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 10 at 
device 4.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 10 at 
device 4.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0

Oliver Rauch wrote:

> 
> How is USB identified for openBSD and other systems?
> 
> Bye
> Oliver
> 
> 





More information about the sane-devel mailing list