From owner-freebsd-new-bus Tue May 9 12:12:37 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by hub.freebsd.org (Postfix) with ESMTP id 8F45437BED7; Tue, 9 May 2000 12:12:27 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by finch-post-11.mail.demon.net with esmtp (Exim 2.12 #1) id 12pFQd-000HuS-0B; Tue, 9 May 2000 19:12:23 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id UAA48011; Tue, 9 May 2000 20:15:40 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Tue, 9 May 2000 20:17:09 +0100 (BST) From: Doug Rabson To: "John H. Baldwin" Cc: freebsd-new-bus@freebsd.org, jhb@freebsd.org, n_hibma@freebsd.org Subject: Re: Alpha USB difficulties... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 9 May 2000, John H. Baldwin wrote: > On Tue, 9 May 2000, Doug Rabson wrote: > > > To make interrupt delivery work, you also need to hook pci_setup_intr and > > pci_teardown_intr and vector them to the isa functions too. > > Ok, I added in alpha_platform_pci_{setup,teardown}_intr(), stuck them > in machine/md_var.h, and then used them as the DEV_METHOD() for > bus_{setup,teardown}_intr for the pci device in /sys/pci/pci.c. This > worked for the most part. I can now use the USB keyboard and mouse fine, > and the floppy drive I have to test with is recognized, but only as a > generic ugen0 instead of a umass0: > > ugen0: Y-E DATA FlashBuster-U, rev 1.00/3.04, addr 5 > > The patch for all this ugliness is at > www.freebsd.org/~jhb/patches/alpha.usb.patch. As I just mentioned in another reply, perhaps a cleaner place to hook the setup/teardown_intr bits is in the chipset drivers, probably making them call some generic code in alpha/pci/pcibus.c to do the work. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message