From owner-freebsd-current Tue Oct 30 19: 7:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 6073337B406; Tue, 30 Oct 2001 19:07:06 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id f9V373144119; Wed, 31 Oct 2001 06:07:03 +0300 (MSK) (envelope-from ache) Date: Wed, 31 Oct 2001 06:07:03 +0300 From: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= To: Nickolay Dudorov Cc: current@FreeBSD.ORG, sos@FreeBSD.ORG, peter@FreeBSD.ORG, mi@aldan.algebra.com Subject: Re: ouch -- the second controller on Promise-66 is not detected! Message-ID: <20011031060702.A44053@nagual.pp.ru> References: <200110310037.f9V0bSW65011@aldan.algebra.com> <200110310254.f9V2sZv04739@wint.itfs.nsk.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200110310254.f9V2sZv04739@wint.itfs.nsk.su> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 31, 2001 at 08:54:35 +0600, Nickolay Dudorov wrote: > With the following patch I can now use all > the channels on the HPT366 controller in my ABIT's BP6 mobo. > else { > - if (!(child = device_add_child(dev, "ata", 2))) > + if (!(child = device_add_child(dev, "ata", -1))) > return ENOMEM; Yes, that way (don't use wired slots) looks acceptable too. (BTW, why ENOMEM only here? device_add_child() can fail for _various_ reasons). -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message