From owner-freebsd-hackers Fri Dec 10 17: 3:17 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id E08FC14F46 for ; Fri, 10 Dec 1999 17:02:32 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id RAA01817; Fri, 10 Dec 1999 17:04:36 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199912110104.RAA01817@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Alex" Cc: freebsd-hackers@freebsd.org Subject: Re: Interrupt handler for PCI In-reply-to: Your message of "Wed, 08 Dec 1999 13:24:23 PST." <199912082124.NAA30695@www.geocrawler.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 10 Dec 1999 17:04:36 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > This message was sent from Geocrawler.com by "Alex" > Be sure to reply to that address. > > Hello, > > I'm writting driver for PCI board. > Is't possible to set interrupt handler for PCI > device not in attach function? If yes, how? > For ISA is possible to do by calling > reconfig_isadev(dev, &imask) for one device. That's the hard way of doing it. Much better just to register one interrupt handler and then vector inside that handler to the correct local function. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message