Date: Tue, 29 Dec 1998 17:32:52 +0100 (MET) From: Nick Hibma <nick.hibma@jrc.it> To: brian@worldcontrol.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: SANE, USB, -current step 2 Message-ID: <Pine.GSO.3.95q.981229173144.574N-100000@elect8> In-Reply-To: <19981222144525.A334@top.worldcontrol.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Lennart Augustsson (NetBSD) is at the moment writing a much improved and flexible Generic driver for USB. That one should give you more of a plain access to the device from user land. No date on its release though. Haven't checked his current either. Nick On Tue, 22 Dec 1998 brian@worldcontrol.com wrote: > Ok I plugged my wife's HP 4100cxi and booted with the USB extensions. > The last line look promising: > > Dec 22 22:28:40 top /kernel: ugen0: Hewlett-Packard HP ScanJet 4100C (rev 1.00/1.00) addr 2 (device class 0/0) > > Now does anyone have a primer on using the ugen device to talk to the > device? > > Perhaps /dev/ugen0 is dynamically created and I can talk serially to the > device via read/write? > > Dec 22 22:28:39 top /kernel: usbd_match > Dec 22 22:28:39 top /kernel: usb0: <Intel 82371AB/EB USB Host Controller> > Dec 22 22:28:39 top /kernel: usbd_attach > Dec 22 22:28:39 top /kernel: usbd_new_device bus=0xf07ba000 depth=0 lowspeed=0 > Dec 22 22:28:39 top /kernel: usbd_setup_pipe: dev=0xf05ac780 iface=0 ep=0xf05ac79c pipe=0xf05ac788 > Dec 22 22:28:39 top /kernel: uhci_open: pipe=0xf05ac700, addr=0, endpt=0 (0) > Dec 22 22:28:39 top /kernel: usbd_new_device: adding unit addr=1, rev=100, class=9, subclass=1, protocol=0, maxpacket=64, ls=0 > Dec 22 22:28:39 top /kernel: usbd_new_device: new dev (addr 1), dev=0xf05ac780, parent=0xf07b8780 > Dec 22 22:28:39 top /kernel: usb1 at usb0 > Dec 22 22:28:39 top /kernel: usb1: Intel UHCI root hub (class 9/1) (rev 1.00/1.00) addr 1 > Dec 22 22:28:39 top /kernel: usbd_set_config_no: (addr 1) attr=0x40, selfpowered=1, power=0, powerquirk=0 > Dec 22 22:28:39 top /kernel: usbd_set_config_no: setting new config 1 > Dec 22 22:28:39 top /kernel: usb_init_hub: getting hub descriptor > Dec 22 22:28:39 top /kernel: usbhub_init_hub: selfpowered=1, parent=0, parent->selfpowered=0 > Dec 22 22:28:39 top /kernel: usbd_setup_pipe: dev=0xf05ac780 iface=0xf07b6da0 ep=0xf07b7ea0 pipe=0xf0283a14 > Dec 22 22:28:39 top /kernel: uhci_open: pipe=0xf05ac600, addr=1, endpt=129 (1) > Dec 22 22:28:39 top /kernel: usbd_init_port: adding hub port=1 status=0x0100 change=0x0000 > Dec 22 22:28:39 top /kernel: usbd_init_port: adding hub port=2 status=0x0101 change=0x0001 > Dec 22 22:28:39 top /kernel: uhub_explore: st > Dec 22 22:28:39 top /kernel: atus change hub=1 port=2 > Dec 22 22:28:39 top /kernel: usbd_reset_port: port 2 reset done, error=0 > Dec 22 22:28:39 top /kernel: usbd_new_device bus=0xf07ba000 depth=1 lowspeed=0 > Dec 22 22:28:39 top /kernel: usbd_setup_pipe: dev=0xf05ac500 iface=0 ep=0xf05ac51c pipe=0xf05ac508 > Dec 22 22:28:39 top /kernel: uhci_open: pipe=0xf05ac480, addr=0, endpt=0 (1) > Dec 22 22:28:39 top /kernel: usbd_new_device: adding unit addr=2, rev=100, class=0, subclass=0, protocol=0, maxpacket=8, ls=0 > Dec 22 22:28:39 top /kernel: usbd_new_device: new dev (addr 2), dev=0xf05ac500, parent=0xf07b7eb0 > Dec 22 22:28:39 top /kernel: usbd_new_device: no device driver found > Dec 22 22:28:39 top /kernel: usbd_set_config_no: (addr 2) attr=0x60, selfpowered=1, power=0, powerquirk=0 > Dec 22 22:28:39 top /kernel: usbd_set_config_no: setting new config 1 > Dec 22 22:28:39 top /kernel: usbd_set_config_no: free old config > Dec 22 22:28:40 top /kernel: usbd_set_config_no: (addr 2) attr=0x60, selfpowered=1, power=0, powerquirk=0 > Dec 22 22:28:40 top /kernel: usbd_set_config_no: setting new config 1 > Dec 22 22:28:40 top /kernel: usbd_new_device: no interface drivers found > Dec 22 22:28:40 top /kernel: ugen0 > Dec 22 22:28:40 top /kernel: ugen0: Hewlett-Packard HP ScanJet 4100C (rev 1.00/1.00) addr 2 (device class 0/0) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -- ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95q.981229173144.574N-100000>
