From owner-freebsd-hackers Thu Jan 4 14:36:19 2001 From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 4 14:36:16 2001 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (unknown [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 1FB2937B404 for ; Thu, 4 Jan 2001 14:36:11 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.1/8.11.0) with ESMTP id f04Ma9l08982; Thu, 4 Jan 2001 15:36:09 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.8.3) with ESMTP id f04Ma5147356; Thu, 4 Jan 2001 15:36:09 -0700 (MST) Message-Id: <200101042236.f04Ma5147356@harmony.village.org> To: "Matthew C. Forman" Subject: Re: Allocating an IRQ on PCI Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Thu, 04 Jan 2001 15:59:57 GMT." References: Date: Thu, 04 Jan 2001 15:36:05 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message "Matthew C. Forman" writes: : Thing is, here the BIOS hasn't allocated an IRQ, so I'll need to : bus_set_resource in my probe to get one. To complicate matters, the : device's interrupt generator is pretty flexible, and can generate an : interrupt on (almost) any IRQ line. I have to tell it which IRQ to use : when I know which one has been allocated. No. You don't want to use bus_set_resource() since it won't do what you want. What version of FreeBSD are you failing with? Newer versions of current just do the right thing. Otherwise you will have to turn plug and play OFF. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message