From owner-freebsd-current Tue Mar 16 18:54:21 1999 Delivered-To: freebsd-current@freebsd.org Received: from gjp.erols.com (alex-va-n008c079.moon.jic.com [206.156.18.89]) by hub.freebsd.org (Postfix) with ESMTP id 1623214D6A for ; Tue, 16 Mar 1999 18:54:18 -0800 (PST) (envelope-from gjp@gjp.erols.com) Received: from gjp.erols.com (localhost.erols.com [127.0.0.1]) by gjp.erols.com (8.9.1/8.8.7) with ESMTP id VAA55122 for ; Tue, 16 Mar 1999 21:53:59 -0500 (EST) (envelope-from gjp@gjp.erols.com) To: current@freebsd.org From: "Gary Palmer" Subject: usb/ugen problem? Date: Tue, 16 Mar 1999 21:53:59 -0500 Message-ID: <55118.921639239@gjp.erols.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Output from dmesg: usbd_match usb0: usbd_attach usbd_new_device bus=0xc09b9000 depth=0 lowspeed=0 usbd_new_device: adding unit addr=1, rev=100, class=9, subclass=0, protocol=0, maxpacket=64, ls=0 usbd_new_device: new dev (addr 1), dev=0xc09b7b00, parent=0xc09b5040 uhub0 at usb0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 usbd_set_config_index: (addr 1) attr=0x40, selfpowered=1, power=0, powerquirk=0 usbd_set_config_index: set config 1 usbd_set_config_index: setting new config 1 uhub0: 2 ports with 2 removable, self powered usbd_init_port: adding hub port=1 status=0x0101 change=0x0001 usbd_init_port: adding hub port=2 status=0x0100 change=0x0000 uhub_explore: status change hub=1 port=1 usbd_new_device bus=0xc09b9000 depth=1 lowspeed=0 usbd_new_device: adding unit addr=2, rev=100, class=0, subclass=0, protocol=0, maxpacket=8, ls=0 usbd_new_device: new dev (addr 2), dev=0xc09b7800, parent=0xc09b4d00 usbd_probe_and_attach: no device specific driver found usbd_set_config_index: (addr 2) attr=0x40, selfpowered=1, power=0, powerquirk=0 usbd_set_config_index: set config 1 usbd_set_config_index: setting new config 1 usbd_probe_and_attach: no interface drivers found ugen0 ugen0: Microsoft Microsoft Digital Sound System 80, rev 1.00/1.00, addr 2 If I cat /dev/ugen0, I get ugenread: no edesc splatted across the console (if I enable DIAGNOSTIC), otherwise I get a panic. Personally, I'd prefer that the tests in ugen.c that are currently behind DIAGNOSTIC (i.e. checking for null pointers basically) are made the default. How does a device end up with no edesc? Do you have to set the config first? Is there any docs on our USB stuff apart from the src code? Thanks, Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message