From owner-freebsd-new-bus Tue May 9 13: 0:41 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from server.baldwin.cx (jobaldwi.campus.vt.edu [198.82.67.146]) by hub.freebsd.org (Postfix) with ESMTP id 9C21237C22F; Tue, 9 May 2000 12:46:41 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx (john [10.0.0.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id PAA05232; Tue, 9 May 2000 15:46:20 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-Id: <200005091946.PAA05232@server.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 09 May 2000 15:46:19 -0400 (EDT) From: John Baldwin To: Doug Rabson Subject: Re: Alpha USB difficulties... Cc: n_hibma@FreeBSD.org, freebsd-new-bus@FreeBSD.org, "John H. Baldwin" Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 09-May-00 Doug Rabson wrote: > 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. Ok, I'll update it to do that, then. > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 20 8442 9037 -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message